Description of problem: snmpget/snmpwalk/... returns error code 0 (= success) on passphrase error (error is correctly written to stderr). snmpget/... should return error code different than zero in such situation. This is major problem. Minor problem is, that snmpcmd SHOULD ignore settings not applicable to selected version of SNMP (like -A should be ignored in case of -v 1/2c) How reproducible: Run snmpget with password shorter than 8 characters. [honza@daemon ~]$ /usr/bin/snmpget -v '1' -c 'private' -A 'x' -u 'x' '127.0.0.1:161' 1.2.3 Error: passphrase chosen is below the length requirements of the USM (min=8). /usr/bin/snmpget: (The supplied password length is too short.) Error generating a key (Ku) from the supplied authentication pass phrase. [honza@daemon ~]$ echo $? 0 Steps to Reproduce: 1. /usr/bin/snmpget -v '1' -c 'private' -A 'x' -u 'x' '127.0.0.1:161' 1.2.3 2. echo $? Actual results: 0 Expected results: Value different from zero
Oops, wrong bug, moving back to ASSIGNED.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1076.html