Is there a way to identify what type of return an SNMP response is? #14
baltimorestrings
started this conversation in
General
Replies: 1 comment 3 replies
-
Actually, the data type is included with the value as part of the BER encoding. Gufo SNMP simplifies the process by converting these values to the appropriate Python types, resulting in a clean and practical API. Another reason for this design choice is performance, as Gufo SNMP was created to serve as the primary SNMP engine for a Network Operations Center (NOC), where some installations are very SNMP-intensive. That said, I think an additional API that returns type wrappers could be developed. This would be useful both for debugging and for correctly implementing the SNMP SET operation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
E.G when polling with snmptools get, I can see if a return is an Integer, Counter32, HexStr, OctetStr, etc.
Is this possible with the Gufo SNMP returns? I just see a Tuple, but curious if it's possible to see the type from MIB definitions (?).
Beta Was this translation helpful? Give feedback.
All reactions