Module Expr Str Assign NameStore ListLoad Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Return SubscriptLoad NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num decorator_list Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str
N/A N/A 
Pure Python SNMP module. This implementation supports SNMPv1 and SNMPv2c.

Example usage:

# 1. Create a sessionData instance with appropriate settings for the
# device.
sd = SNMP.sessionData("172.20.149.40")
sd.add_community("public", SNMP.RO)
sd.add_community("private", SNMP.RW)

# 2. Create a new SNMP session
session = SNMP.new_session(sd)

# 3. You may now use the session directly using its get and set methods,
# but it's easier to use the Manager object as it allows MIB access by
# name.
box = SNMP.Util.Manager(session)

# 4. tell the Manager what MIBs this device supports
box.add_mibs("SNMPv2_MIB", "UDP_MIB")

# 5. now do stuff with the device!
print "System Name       :", box.sysName
print "System Uptime     :", box.sysUpTime

 N/A __all__ N/A Basetypes Manager Agent Objects NMSException N/A Exception N/A getname N/A N/A self N/A N/A N/A N/A N/A self __class__ __name__ N/A getvalue N/A N/A self N/A N/A N/A N/A N/A self __class__ value N/A N/A SNMPException N/A NMSException N/A N/A value -1 N/A SNMPBadParameters N/A SNMPException N/A N/A value 0 N/A SNMPBadArgument N/A SNMPException N/A N/A value 1 N/A SNMPNotConnected N/A SNMPException N/A N/A value 2 N/A SNMPNoResponse N/A SNMPException N/A N/A value 3 N/A SNMPBadVersion N/A SNMPException N/A N/A value 4 N/A SNMPBadCommunity N/A SNMPException N/A N/A value 5 N/A SNMPBadRequestID N/A SNMPException N/A N/A value 6 N/A SNMPEmptyResponse N/A SNMPException N/A N/A value 7 N/A SNMPIllegalArgument N/A SNMPException N/A N/A value 8 N/A SNMPNotImplemented N/A SNMPException N/A N/A value 9 N/A BERError N/A NMSException N/A N/A value -1 N/A BERUnknownTag N/A BERError N/A N/A value 9 N/A BERBadEncoding N/A BERError N/A N/A value 10 N/A BERBadSubjid N/A BERError N/A N/A value 11 N/A BERBadIPAddress N/A BERError N/A N/A value 12 N/A BERTypeError N/A BERError N/A N/A value 13 N/A BERBadArgument N/A BERError N/A N/A value 14 N/A SNMPError N/A SNMPException N/A N/A value -1 __str__ N/A N/A self N/A N/A N/A N/A _SNMP_ERROR_STRINGS N/A N/A N/A self __class__ value N/A N/A SNMPnoError N/A SNMPError N/A N/A value 0 N/A SNMPtooBig N/A SNMPError N/A N/A value 1 N/A SNMPnoSuchName N/A SNMPError N/A N/A value 2 N/A SNMPbadValue N/A SNMPError N/A N/A value 3 N/A SNMPreadOnly N/A SNMPError N/A N/A value 4 N/A SNMPgenError N/A SNMPError N/A N/A value 5 N/A SNMPnoAccess N/A SNMPError N/A N/A value 6 N/A SNMPwrongType N/A SNMPError N/A N/A value 7 N/A SNMPwrongLength N/A SNMPError N/A N/A value 8 N/A SNMPwrongEncoding N/A SNMPError N/A N/A value 9 N/A SNMPwrongValue N/A SNMPError N/A N/A value 10 N/A SNMPnoCreation N/A SNMPError N/A N/A value 11 N/A SNMPinconsistentValue N/A SNMPError N/A N/A value 12 N/A SNMPresourceUnavailable N/A SNMPError N/A N/A value 13 N/A SNMPcommitFailed N/A SNMPError N/A N/A value 14 N/A SNMPundoFailed N/A SNMPError N/A N/A value 15 N/A SNMPauthorizationError N/A SNMPError N/A N/A value 16 N/A SNMPnotWritable N/A SNMPError N/A N/A value 17 N/A SNMPinconsistentName N/A SNMPError N/A N/A value 18 N/A N/A _SNMP_ERROR_STRINGS N/A 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (noError) No Error (tooBig) Response message would have been too large. (noSuchName) There is no such variable name in this MIB. (badValue) The value given has the wrong type or length. (readOnly) The two parties used do not have access to use the specified SNMP PDU. (genError) A general failure occured. (noAccess) Access denied. (wrongType) Wrong BER type (wrongLength) Wrong BER length. (wrongEncoding) Wrong BER encoding. (wrongValue) Wrong value. (noCreation)  (inconsistentValue)  (resourceUnavailable)  (commitFailed)  (undoFailed)  (authorizationError)  (notWritable)  (inconsistentName) 