It is impossible with the help of pysnmp to create an analogue of the command:
snmpwalk -v 2c -c XFiles 172.18.114.6 ifOperStatus I'm trying to get this code:
errorIndication, errorStatus, errorIndex, varBinds = next( getCmd(SnmpEngine(), CommunityData(comm), UdpTransportTarget( (ip, 161), timeout=2.0, retries=0 ), ContextData(), ObjectType(ObjectIdentity('IF-MIB','ifOperStatus'))) ) Mistake:
pysnmp.smi.error.MibNotFoundError: IF-MIB compilation error(s): missing But obviously dig the wrong way. Probably need to use not getCmd ?