i using latest version of pysnmp 4.2.4 , have tested snmpv1/2c command responder example (http://pysnmp.sourceforge.net/examples/current/v1arch/agent/cmdrsp.html) returning uptime value in response oid 1,3,6,1,2,1,1,3,0
i have used v3 responder example (http://pysnmp.sourceforge.net/examples/current/v3arch/agent/cmdrsp/v3-multiple-users.html) , have returning system value (none) 1,3,6,1,2,1,1,3,0.
how can add call v3 version calls uptime class similar v1 version (and returns local value)?
tia steve
the v3 model introduces notion of mib instrumentation controller class provides callbacks - 1 read , other set operations. stock mib controller implementation invokes managed object instances python objects (each identified oid) get/set values.
so either setup own mibinstrumentatoncontroller class (see echomibinstrumcontroller here) or use stock mib controller own managed object instances (see mystaticmibscalarinstance here).
the snmpv3 settings in these examples different not relevant mib implementation.
Comments
Post a Comment