Open HasnaARajdal opened 11 months ago
If you switch to PySNMP 5 (package pysnmp-lextudio
), the script can be further simplified,
http://www.pysnmp.com/pysnmp/quick-start#fetch-snmp-variable
Read #429 to learn more.
a friend of mine tried this code and it works for him so i think it is a version problem of package and python
Hi, I am getting the error mentioned in the title when trying to run the below script. Could you please help with this? from pysnmp.hlapi import *
`community_string = 'public'
oid = '1.3.6.1.4.1.259.10.1.45.1.2.6.1.4.9' ip_address = '192.168.1.250'
def get_inpututil():
if name == 'main': get_inpututil()`