Comment 11 for bug 1322431

Revision history for this message
Thorsten Hesemeyer (thorsten-hesemeyer) wrote :

@Canoncial: quick win
This really is an easy to solve issue / quick win.
Please include:
    /usr/bin/net-snmp-create-v3-user
this will fix this issue (see comment #10 by Wylie for details)

@all other users:
Workaround does really work
=======================
Adding a the createUser line to snmpd as described by Sascha Lucas in comment #4 works also, because is is basically the same steps the script does.
Do not be confused, while starting the snmpd does this steps:
  1. read the "createUser" line in /var/lib/snmp/snmpd.conf
  2. add a new "usmUser" line in /var/lib/snmp/snmpd.conf
  3. remove the "createUser" line
Sure, this may look as if nothing is done or the file is just reset to default, but the user is really created.

Verify User Creation
================
Say you created
  user icinga
  authprotocol SHA
  authpassphrase 'P1'
  privacyprotocol AES
  privacypassphrase 'P2'
then you can check if there is output for:
# snmpwalk -v3 -u icinga -l authPriv -a SHA -A 'P1' -x AES -X 'P2' localhost

Kind regards,
Thorsten