After upgrading net-snmp from 220.127.116.11-r1 to 18.104.22.168 command line parsing of the -LS switch doesn't work anymore.
Steps to Reproduce:
1. Install net-analyzer/net-snmp-22.214.171.124
2. Start net-snmp as root via:
/usr/sbin/snmpd -LS 0-4 d -Lf /dev/null
Error message: invalid syslog facility: -
snmpd being started logging
to syslog facility
and to no logfile at all (/dev/null).
Log messages via syslog, using the specified facility (’d’ for LOG_DAEMON, ’u’ for LOG_USER, or ’0’-’7’ for LOG_LOCAL0 through LOG_LOCAL7).
There are also "upper case" versions of each of these options, which allow the corresponding logging mechanism to be restricted to certain priorities of message. Using standard error logging as an example:
will log messages of priority ’pri’ and above to standard error.
will log messages with priority between ’p1’ and ’p2’ (inclusive) to standard error.
For -LF and -LS the priority specification comes before the file or facility token. The priorities recognised are:
0 or ! for LOG_EMERG,
1 or a for LOG_ALERT,
2 or c for LOG_CRIT,
3 or e for LOG_ERR,
4 or w for LOG_WARNING,
5 or n for LOG_NOTICE,
6 or i for LOG_INFO, and
7 or d for LOG_DEBUG.
Normal output is (or will be!) logged at a priority level of LOG_NOTICE
Thank you for report Marcel. This issue was fixed upstream so the following patch should be applied:
Please reopen if this is still an issue with 5.7.2_rc3.