cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6708
Views
0
Helpful
1
Replies

How to find the right snmp oid for the script?

artmind-mindart
Level 1
Level 1

I want to write the snmp script with Python.


For example, I need oid for dot1x and when I issue 'show snmp mib' command on cisco switch, it shows me several dot1x mibs

 

Switch#show snmp mib 
dot1xPaeSystem.1
dot1xPaePortEntry.2
dot1xPaePortEntry.3
dot1xPaePortEntry.4
dot1xPaePortEntry.5
dot1xAuthConfigEntry.1
dot1xAuthConfigEntry.2
dot1xAuthConfigEntry.3
 --More-- 

but when I do snmpwalk on that device I don't see any oid related to dot1x.


My snmpwalk command shows me oids that start only with 1.3.6, but "Cisco snmp object navigator" shows me oids related to dot1x that start with 1.1.8802


Does snmpwalk shows every oid in the device?


It's a virtual switch Cisco IOS Software, vios_l2 Software..

 

1 Reply 1

omz
VIP Alumni
VIP Alumni

1.3.6 = {iso(1) identified-organization(3) dod(6)}

What are you trying to get via snmp? Is it not availabe via API? 

 

802.1x is usually handled by the CISCO-PAE-MIB.my file (Port Access Entity) which you can download here: ftp://ftp.cisco.com/pub/mibs/v2/CISCO-PAE-MIB.my

  • 1.3.6.1.4.1.9.9.220 is the base OID for the the PAE MIB.
  • 1.3.6.1.4.1.9.9.220.1 is probably where you're going be interested in (cpaeMIBObject). This OID contains the objects & children directly related the configuration and monitoring of 802.1x. If you walk this OID, you should get quite a bit of information.

General 802.1X SNMP

There is another MIB (IEEE8021-PAE-MIB) that is not Cisco specific but many Cisco switches do support it. You can download that MIB here: ftp://ftp.cisco.com/pub/mibs/v2/IEEE8021-PAE-MIB.my

  • 1.0.8802.1.1.1 is the base OID for this MIB.
  • 1.0.8802.1 is the parent OID that encompases IEEE 802.1x

Also, get a MIB browser. It will make your life easy.

 

HTH 

#I_hate_snmp