Elegant and portable way to handle SNMP tables in Python -


i have been searching lot this, not found fits needs yet. want elegant way work snmp tables in python. have looked @ pysnmp , net-snmp python bindings.

at moment working net-snmp bindings, seems more easy query data with, , available on centos6 software have run (python 2.6), not mind installing pysnmp either.

what want kind of object can hand on important data of table structure, such table base oid, index oid , names , oids of columns interested in. data structure makes easy iterate on rows, fetch lists of entries of of columns etc, without having bother oids , stuff anymore, abstracting away.

the purpose of want use little code possible query data snmp table , work it, have boiler plate code in module can fetch , work data of snmp table in few lines of code.

what suggest me do? writing own abstraction based on pysnmp or netsnmp? there in pysnmp's high level api might have missed? maybe python module abstracts 1 of above mentioned make more easy access data?

would glad hear advices.

speaking of pysnmp, there 2 components may of interest you:

  • objecttype/objectidentity classes representing mib object , handling oid<->symbol<->index , value types matters
  • high-level api operating on objecttype instances

on top of these 2 components read/modify mib objects referring them mib names , symbolic indices e.g. knowing nothing oids being involved. objecttype class transform values between human-friendly representation , base snmp types.

the pysnmp library work on python 2.6.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -