Stop the System Management Agent.
# svcadm disable -t svc:/application/management/sma:default |
To create the new user, named newuser, with a password equal to my_password, use the net-snmp-config command interactively.
# /usr/sfw/bin/net-snmp-config --create-snmpv3-user |
Enter a SNMPv3 user name to create: |
Provide the appropriate user name, in this case:
newuser |
Enter authentication pass-phrase: |
Type the appropriate pass-phrase, in this case:
my_password |
Enter encryption pass-phrase: |
To reuse the authentication pass-phrase, press Return.
adding the following line to /var/sma_snmp/snmpd.conf: createUser newuser MD5 "newuser_pass" DES adding the following line to /etc/sma/snmp/snmpd.conf: rwuser newuser |
By default, when creating a user using the net-snmp-config command, these settings are created unless otherwise specified:
auth protocol = MD5
security level = rwuser auth
Start the System Management Agent.
# svcadm enable svc:/application/management/sma:default |
Check whether the new user exists.
# snmpget -v 3 -u newuser -l authNoPriv -a MD5 -A my_password localhost sysUpTime.0 |
Passwords must contain at least eight characters.
Giving the new user read and write access is not always useful. If you want to reduce or change the access rights of the new user, edit the /etc/sma/snmp/snmpd.conf file. For more information, see the snmpd.conf(4) man page.