An extension to easysnmp providing:
- SNMP Table handling
- Context manager support
$ pip install easysnmptable
from easysnmptable import Session
with Session(hostname='localhost', community='public', version=2) as session:
iftable = session.gettable('ifTable')
for index, row in table.rows.items():
print("index: {}".format(index))
for key, value in row.items():
print("{}: {}".format(key, value))