0

Using pysnmp or any other library, is it possible to take the response from a SNMP get/getbulk request and automatically populate a Python data structure (class, etc) based on the MIB?

Cheers, Donal

Donal M
  • 1,305
  • 2
  • 11
  • 23
  • Why wouldn't it be possible? In other words, what did you try? – Jolta Jul 04 '14 at 15:49
  • Response message from SNMP Agent is a binary, BER encoded string. When you pass it to pysnmp (for instance), it can produce an initialized data structure representing SNMP Response message. You could then pass the var-bindings part of it to pysnmp's SMI subsystem which, in some cases, could return a better human-oriented representation of returned data. So you need to clarify what exactly you are looking for. – Ilya Etingof Jul 04 '14 at 17:04

0 Answers0