Create an additional user
To create an additional user, you need an SNMP tool to execute snmpusm and snmpvacm commands, e.g.:
net-snmp-utils
Use the snmpusm command and initial user zabbixhlm to create the user ‘testuser’:
# snmpusm -v3 -u zabbixhlm -n "" -l authPriv -a MD5 -A zabbixhlm -x DES -X zabbixhlm r15bnohd:161 create testuser zabbixhlm
User successfully created.
Please note:
The user ‘testuser’ is cloned from ‘zabbixhlm’ in the process, so it inherits that user's passphrase ("zabbixhlm").
Add the new user to nemGroup:
# snmpvacm -v 3 -u zabbixhlm -n "" -l authPriv -a MD5 -A zabbixhlm -x DES -X zabbixhlm r15bnohd:161 createSec2Group 3 testuser nemGroup
Sec2group successfully created.
Verify that the new user can access NBI SNMPv3:
# snmpwalk -v 3 -u testuser -l authPriv -a MD5 -A zabbixhlm -x DES -X zabbixhlm r15bnohd:161 sysUptime
snmpwalk: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21841) 0:03:38.41
Change the new user's passphrase:
After creating the user ‘testuser’ with the same passphrase as the ‘zabbixhlm’ user, we need to change its passphrase. The below command changes it from “zabbixhlm”, which was inherited from the initial user, to “testuser12345”.
# snmpusm -v3 -u testuser -n "" -l authPriv -a MD5 -A zabbixhlm -x DES -X zabbixhlm r15bnohd:161 passwd zabbixhlm testuser12345
SNMPv3 Key(s) successfully changed.
Verify that the new user can access NBI SNMPv3 using its new passphrase:
# snmpwalk -v 3 -u testuser -l authPriv -a MD5 -A testuser12345 -x DES -X testuser12345 r15bnohd:161 sysUptime
snmpwalk: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (13055) 0:02:10.55
Change the initial user's passphrase:
# snmpusm -v3 -u zabbixhlm -n "" -l authPriv -a MD5 -A zabbixhlm -x DES -X zabbixhlm r15bnohd:161 passwd zabbixhlm Z@bb1xh7m
SNMPv3 Key(s) successfully changed.
As user ‘nemadm’, stop and restart the snmpd to load the new configuration:
# /opt/nem/bin/snmpstop
# /opt/nem/bin/snmpstart