11-30-2018 02:39 PM
12-05-2018 12:49 PM
12-05-2018 12:34 PM
12-04-2018 08:42 PM
import commands
#Change OID as you need. Here we request the SysContact.
commando = "/usr/bin/snmpget -v3 -u username -l authPriv -a SHA -x AES -X password -A password switchip 1.3.6.1.2.1.1.4.0"
ans= commands.getoutput(commando)
print(ans)
alarm = commands.getoutput("logger" + " " + ans)
print(alarm)
12-04-2018 08:03 AM