snmp

PySnmp query not working for reachable target but command line 'snmpget' succeeds

PySnmp query not working for reachable target but command line 'snmpget' succeeds Question: I need an SNMP server that can monitor an SNMP agent. For this purpose, I wrote a basic Python application, and I run an SNMP agent (polinux/snmpd image based), on the same network, the agent has a fixed IP address. When I …

Total answers: 1

How to add variable in the MIB tree?

How to add variable in the MIB tree? Question: This is the sample code I got from the https://pysnmp.readthedocs.io/en/latest/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.html here they gave sample program for "Multiple MIB trees under distinct context names". from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import cmdrsp, context from pysnmp.carrier.asyncore.dgram import udp from pysnmp.smi import instrum, builder from pysnmp.proto.api import v2c …

Total answers: 1