snmpclitools
snmpclitools copied to clipboard
Does not match NetSNMP tool's error level output
When I run a command that fails with the NetSNMP tools, it provides an appropriate error condition indicating a failure, 1
:
$ snmpget -v3 -l noAuthnoPriv -u myUser 127.0.0.1:12345 1.0
snmpget: Timeout
$ echo $?
1
However, the similar command (only tested in windows, but I believe this is not platform dependent) with these tools returns 0
:
C:\>python snmpget.py -v3 -u myUser -l noAuthNoPriv 127.0.0.1:12345 1.0
No SNMP response received before timeout
C:\>echo %ERRORLEVEL%
0