snmpclitools icon indicating copy to clipboard operation
snmpclitools copied to clipboard

Does not match NetSNMP tool's error level output

Open teeks99 opened this issue 3 years ago • 0 comments

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

teeks99 avatar Nov 09 '21 18:11 teeks99