snmpy package¶
Module contents¶
Simple SNMP wrapper.
-
class
snmpy.
Snmpy
(host, public, private, port=161, timeout=1, retries=2)¶ Bases:
object
Simple pysnmp wrapper.
-
ERROR_MSG
= 'SNMP%s of %s on %s failed.'¶
-
PREVIOUS_EXPORT
= 'already exported'¶
-
VERSION_2_2C
= 1¶
-
add_mib_path
(*path)¶ Add an additional directory to the MIB search path.
Parameters: path – path to additional MIBs
-
get
(oid)¶ Get a specific value from an OID in the SNMP tree.
Parameters: oid – OID to get Returns: value from the specified OID
-
load_mibs
(*modules)¶ Load one or more additional MIBs.
Parameters: modules – modules to load
-
set
(oid, value)¶ Set a specific value to an OID in the SNMP tree.
Parameters: - oid – OID to set
- value – value to set
-