snmp_cmds.exceptions module

exception snmp_cmds.exceptions.SNMPError[source]

Bases: Exception

We’ll use this error class or a subclass anytime we receive an error from an underlying net-snmp command we run

exception snmp_cmds.exceptions.SNMPInvalidAddress(host)[source]

Bases: snmp_cmds.exceptions.SNMPError

Exception raised when the address validation helper function failed to identify the host as either a valid hostname or a valid IP address.

exception snmp_cmds.exceptions.SNMPTableError(oid)[source]

Bases: snmp_cmds.exceptions.SNMPError

This error will be thrown when the snmptable command is called with an OID that isn’t a table

exception snmp_cmds.exceptions.SNMPTimeout(ip)[source]

Bases: snmp_cmds.exceptions.SNMPError

Exception raised when an SNMP command times out connecting to host.

exception snmp_cmds.exceptions.SNMPWriteError[source]

Bases: snmp_cmds.exceptions.SNMPError

Exception raised when a call to snmpset fails with an snmpset-specific error message