How to check the ifindex of an interface on the switch

Created Mar 10, 2016 20:07:43Latest reply Mar 11, 2016 09:22:03 1609 2 0 0
There are situations where we need to find out the corespondence between the ifindex and the interface names. For instance, if we receive a log on the switch that is refereing to a ifindex number but does not mention the exact interface name, we would need to know this corelation in order to indentify where the problem resides.




Example:

Feb  9 2016 08:47:12 xxxx %%01IFNET/4/BWRATE_OUT_RESUME(l)[0]:Interface output flow bandwidth usage was restored to the log threshold. (Interface=10, BandWidthUsage=85, LogThreshold=90)



  • x
  • convention:

Selina742     Created Mar 11, 2016 09:22:03 Helpful(0) Helpful(0)




To indentify the interface index of the interfaces, I can suggest the following solutions:

--Ru-Run the display rm interface command to check the ifindex of the intenterface directly in the CLI . By running this command the ifindex is shown in hex and you would need to convert it to decimal :
Example:
[R6_U11_S5710]display rm interface                                                                                                 
                                                                                                                                   
Name: GigabitEthernet0/0/5                                                                                                         

Physical IF Info:                                                                                                                  

IfnetIndex: 0xA         //  convert the hex value to decimal to obtain the ifindex (0xA = 10 )                                                                                                 

State: DOWN BCA MULT                                                                                                              

Hardware Address: F84A-BFF0-2E70                                                                                                  

Slot: 0(Logic Slot: 9)                                                                                                            

IntType: 36, PriLog: 0, MTU: 1500, Reference Count: 1                                                                             

Bandwidth: 0, 100000000                                                                                                           

Baudrate: 0, 100000000                                                                                                            

Delay: 0, Reliability: 0, Load: 0                                                                                                 

LDP-ISIS sync capability: disabled                                                                                                

LDP-OSPF sync capability: disabled                                                                                                

InstanceID: 0, Instance Name: Public                                                                                              

Age: 88548sec  




          -Use the below public OIDs to query the name and the ifindexes of the interfaces

ifName is Oid .1.3.6.1.2.1.31.1.1.1.1 and ifIndex is oid .1.3.6.1.2.1.2.2.1.1


  • x
  • convention:

debugger  Mentor   Created Mar 11, 2016 09:22:03 Helpful(0) Helpful(0)

diagnose

display ifnet index-map

  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top