When I perform a network discovery using SNMP, the reported switch port name on my EX2200 is 513, 520, 523, and 561, which correspond to ports ge0/0/0.0, ge-0/0/7.0, ge-0/0/10.0, and ge-0/1/0.0. Using the same software (Solarwinds NTM, LanTopoLog, 10-strike, etc.) on other switches show actual port numbers such as 1, 5, 10, etc. Is there a way to set the EX to report the port number instead of the 5xx numbers or is there a reference to what the 5xx numbers are?
I discovered that the value reported by the discovery tools is the SNMP ifIndex value which can be found using "show interfaces"
Physical interface: ge-0/0/2, Enabled, Physical link is Down Interface index: 132, SNMP ifIndex: 506
Use this command "set protocols lldp port-id-subtype interface-name"
Basically there is no such way to assign the SNMP ifindex manually. So unforatunaely , its not possible to acheive what you are looking for (i.e. SNMP index like 1,5,10 ect. )
But use can use this command to find out which physical interface belongs to 5XX
>show interfaces snmp-index 5XX
to get a list use this :
>show snmp mib walk decimal 188.8.131.52.184.108.40.206.1.1.1
Here is some explanation.
The index is not predefined, it is monitored and created by mib2d dynamically. When a new interface is created in the system, mib2d checks for an entry of the interface in the file /var/db/dcd.snmp_ix. If the entry for this index is present, the system then picks the SNMP interface index value from this file, or else it assigns a new interface index value and writes it to this file.
Since the file is maintained across reboots, the next time the same interface is deleted and re-created, the SNMP ifIndex does not change. The assignment of the interface index primarily depends on the order in which it is created. Thus, the value is different in a different machine.
Hope this helps !!
(Please remember to accept this as a solution if this helps)
Maybe you could try with this OID 220.127.116.11.18.104.22.168.1.1.1, which will give you the SNMP index to interface name mapping. Not sure if this helps.
Example from my lab:
labroot@kamas-re0> show snmp mib walk 22.214.171.124.126.96.36.199.1.1.1ifName.1 = fxp0ifName.4 = lsiifName.5 = dscifName.6 = lo0ifName.7 = tapifName.8 = greifName.9 = ipipifName.10 = pimeifName.11 = pimdifName.12 = mtunifName.13 = fxp0.0ifName.16 = lo0.0ifName.17 = em0ifName.18 = em0.0ifName.21 = lo0.16384ifName.22 = lo0.16385ifName.23 = em1ifName.24 = em1.0ifName.501 = cbp0ifName.502 = demux0ifName.503 = esiifName.504 = irbifName.505 = jsrvifName.506 = jsrv.1ifName.507 = pip0ifName.508 = pp0ifName.509 = rbebifName.510 = vtepifName.511 = pfh-3/0/0ifName.512 = pfe-3/0/0ifName.513 = pfe-3/0/0.16383ifName.514 = pfh-3/0/0.16383ifName.515 = pfh-3/0/0.16384ifName.516 = ms-3/0/0ifName.517 = pc-3/0/0ifName.518 = mams-3/0/0ifName.519 = ms-3/1/0ifName.520 = pc-3/1/0ifName.521 = mams-3/1/0
Please try loading this OID 188.8.131.52.184.108.40.206.1.1.1 to the Discovery tool and check if that helps