-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I'm working through snimpy to see if it's right for my project and I've got it working but I've run into an issue that I can'f find a solution for. I'm querying sysObjectID and it correctly returns the OID for the system object, but I'd like for it to return the name reference from the MIB. Can this be done?
Here's my code:
#!/usr/bin/python3
from snimpy.manager import Manager as M
from snimpy.manager import load
load("CISCO-PRODUCTS-MIB")
load("SNMPv2-MIB")
m = M("192.168.10.40","staging",2)
print(m.sysObjectID)Output from the code:
./test.py
1.3.6.1.4.1.9.1.1317
Output from the same OID via snmpget:
snmpget -v2c -c staging 192.168.10.40 sysObjectID.0
SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::cat3560cG8PC
Is there a way to get Snimpy to "follow" the reference to the other OID and return the proper name?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels