Skip to content

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

@teeks99

Description

@teeks99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions