Hi, I am struggling to find a python library where I can be selective of Table columns.
The example 3 - seams almost complete for my needs.
It is possible to be selective on a Table element oids in the SNMP bulk request?
session = netsnmp.Session(Version=2, DestHost='localhost', Community='public')
table = session.table_from_mib('HOST-RESOURCES-MIB::hrStorageTable')
# tbldict = table.get_entries(**colums1, colums2 etc.**) ** Description & Index Only in get requests??
pprint.pprint(tbldict)
e.g. Get Description & Index only - as named (if possible) or numerical oids - from hrStorageTable (for example)
I have be using the whole ifTable as per your example1 - and parsing the results I need. But I only need a few columns, and the requests take a lot longer than needed on large tables.- especailly catalyst Cisco switches with sometimes hundreds of rows. I just need OperationalStatus and ifAlias for example.
Cheers,
Jay