Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Polling the interface type

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Blue

Re: Polling the interface type

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

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=entPhysicalDescr

CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI:

cevModuleSFPType / 1.3.6.1.4.1.9.12.3.1.9.51

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=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.:

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.12.3.1.9.29

2 REPLIES
Blue

Re: Polling the interface type

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

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=entPhysicalDescr

CISCO-ENTITY-VENDORTYPE-OID-MIB-V1SMI:

cevModuleSFPType / 1.3.6.1.4.1.9.12.3.1.9.51

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=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.:

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.12.3.1.9.29

New Member

Re: Polling the interface type

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.

230
Views
0
Helpful
2
Replies
CreatePlease to create content