10-14-2009 03:00 AM
Hello everyone, I have a simple script which will snmpbulkwalk through .1.3.6.1.2.1.2.2.1.2 and .1.3.6.1.2.1.2.2.1.8 and will match interface with status (Gigabit1/1 is up, 1/2 is down etc).
My problem is that I can't find a way to pickup the interface type as well (SFP or RJ45 par example), in the oid's I cant find anything under the .1.3.6.1.2.1.2.2 tree. Any ideas..?
Thank you in advance.
G.K.
Solved! Go to Solution.
10-14-2009 06:17 AM
It appears most vendors do not provide interface types under .1.3.6.1.2.1.2.2 (IF-MIB), but rather in their own private MIBs.
In the case of Cisco, ENTITY-MIB may be the future-proof candidate, though it doesn't seem to provide nearly the same equivalent info as CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI (which may be deprecated, due to the "OLD" part).
ENTITY-MIB:
entPhysicalDescr / 1.3.6.1.2.1.47.1.1.1.1.2
CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI:
cevModuleSFPType / 1.3.6.1.4.1.9.12.3.1.9.51
or in the case of RJ45s, it appears to be hardware platform specific, e.g.:
10-14-2009 06:17 AM
It appears most vendors do not provide interface types under .1.3.6.1.2.1.2.2 (IF-MIB), but rather in their own private MIBs.
In the case of Cisco, ENTITY-MIB may be the future-proof candidate, though it doesn't seem to provide nearly the same equivalent info as CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI (which may be deprecated, due to the "OLD" part).
ENTITY-MIB:
entPhysicalDescr / 1.3.6.1.2.1.47.1.1.1.1.2
CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI:
cevModuleSFPType / 1.3.6.1.4.1.9.12.3.1.9.51
or in the case of RJ45s, it appears to be hardware platform specific, e.g.:
10-15-2009 01:29 AM
Thank you very much for your answer. It confirmed that it would be quite difficult to do what I need with my limited scripting knowledge. Polling the status from the if-mib was easy since i could match the ifindex number in the array.
In any case the oid's you provided are very useful, thanks again.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: