etingof / snmplabs.com

Web-site contents
http://snmplabs.com
Other
1 stars 4 forks source link

is demo.snmplabs down ? #2

Closed yapaka10 closed 4 years ago

yapaka10 commented 4 years ago

Dear Sir/Madam

I've been trying to regain access to the pysnmp server for two days now without success. all the codes that used to work don't anymore, even the basic ones such as:


from pysnmp.hlapi import * errorIndication, errorStatus, errorIndex, varBinds = next( getCmd(SnmpEngine(), CommunityData('public', mpModel=0), UdpTransportTarget(('104.236.166.95', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)),#system ObjectType(ObjectIdentity('.1.3.6.1.4.1.2021.4.6.0'))#ram used )

if errorIndication: print(errorIndication) elif errorStatus: print('%s at %s' % (errorStatus.prettyPrint(), errorIndex and varBinds[int(errorIndex) - 1][0] or '?')) else: for varBind in varBinds: print(' = '.join([x.prettyPrint() for x in varBind]))


output: no SNMP response before timeout is there an issue with the server? is it perhaps down?

thank you in advance

yapaka10 commented 4 years ago

the issue was fixed by changing the port from 161 to 3161