cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1568
Views
0
Helpful
2
Replies

get the interface index on ios based switch

p.ruester
Level 1
Level 1

hi,

how could I get the "interface index" on ios based switch like 3550 over cli?

thanks,

peter

2 Replies 2

owillins
Level 6
Level 6

It's easier to get the Interface Index on the switches running CatOS which have the CLI command 'sh port ifindex'.

For IOS based devices, you will have to poll the SNMP MIB object ifIndex (.1.3.6.1.2.1.2.2.1.1) which will tell you the ifIndex of each interface. You can then poll the ifDescr (.1.3.6.1.2.1.2.2.1.2) to correlate the ifIndex to the corresponding interfaces.

http://www.cisco.com/warp/public/477/SNMP/5.html provides details.

Anyone have an updated link for this? It is no longer valid on cco :(