# service snmpd stop
# net-snmp-config --create-snmpv3-user -ro -a iyunvpwd -x DES -X iyunvdes iyunv
adding the following line to /var/lib/net-snmp/snmpd.conf:
createUser iyunv MD5 "iyunvpwd" DES iyunvdes
adding the following line to /etc/snmp/snmpd.conf:
rouser iyunv
参数说明
iyunv:用户名
iyunvpwd:密码,密码必须大于8个字符
DES:加密方式,这边支持AES、DES两种
iyunvdes:DES口令,必须大于8位
备注:增加用户的时候,snmp必须关闭,否则有如下报错
Apparently at least one snmpd demon is already running.
You must stop them in order to use this command.