Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Does not match NetSNMP tool's error level output #19

Open
teeks99 opened this issue Nov 9, 2021 · 0 comments
Open

Does not match NetSNMP tool's error level output #19

teeks99 opened this issue Nov 9, 2021 · 0 comments

Comments

@teeks99
Copy link
Contributor

teeks99 commented Nov 9, 2021

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant