|
__init__(self,
host,
community=' public ' ,
port=161,
version=1,
timeout=2,
retries=2,
callback=None) |
source code
|
|
|
collectSnmpAttMap(self,
snmpmap)
collect snmp information from device snmpmap is an SnmpAttMap
object |
source code
|
|
|
collectSnmpTableMapClass(self,
snmpmap)
collect and map snmp table data returns a list of dictionaries
which have attribute names as keys and snmp data as values snmpmap is
an SnmpTableMap object |
source code
|
|
|
collectSnmpTableMap(self,
tableOid,
dataMap,
bulk=0)
optimized table collection we only get the columns in datamap |
source code
|
|
|
collectSnmpTable(self,
tableOid,
bulk=0)
collect and snmp table based on its oid and return a dict of dicts
with row, col as keys |
source code
|
|
|
asmac(self,
val)
convert a byte string to a mac address string |
source code
|
|
|
|
|
snmpTableMap(self,
tabledata,
oidmap)
map the results of a full table query (as returned from
collectSnmpTable) the oidmap should be in the same format has
descripbed by snmpRowMap below |
source code
|
|
|
snmpRowMap(self,
row,
oidmap)
map the results of a single row from a table query a row map has
column numbers as keys (with the .) and object attributes as the
values. |
source code
|
|
|
|
|
|
|
_get(self,
req,
head_oids)
get a list of oids |
source code
|
|
|
getTable(self,
head_oids,
bulk=0)
walk a list of table oids |
source code
|
|
|
getBulkTable(self,
head_oids)
get a set of table oids using snmp bulk requests if a list of oids
is passed in they must have result rows that are the same length (ie
different columns of the same table) |
source code
|
|
|
_perfreq(self,
req,
encoded_oids)
perform a get based on req and a list of encoded_oids |
source code
|
|