SNMP 添加MIB 节点 (十四) --- SNMP v3配置用户名密码

1.添加加密方式直接版,直接写入snmpd.conf
rouser read123
createUser read123 SHA sha12345 AES admin12345

rwuser write123
createUser write123 SHA sha12345 AES admin12345

2.使用命令
2.1添加只读用户
ubuntu@ubuntu:/usr/local/net-snmp/bin$ sudo ./net-snmp-create-v3-user -ro  -A md51234  -X read12346 -a MD5 -x DES read3
adding the following line to /var/net-snmp/snmpd.conf:
   createUser read3 MD5 "md51234" DES "read12346"
adding the following line to /snmp/snmpd.conf:
   rouser read3
touch: cannot touch '/snmp/snmpd.conf': No such file or directory
./net-snmp-create-v3-user: line 146: /snmp/snmpd.conf: No such file or directory
ubuntu@ubuntu:/usr/local/net-snmp/bin$ 
 

在snmpd.conf 里面添加 rouser read3

2.2添加读写用户
ubuntu@ubuntu:/usr/local/net-snmp/bin$ sudo ./net-snmp-create-v3-user   -A md512346  -X write12346 -a MD5 -x DES write3
adding the following line to /var/net-snmp/snmpd.conf:
   createUser write3 MD5 "md512346" DES "write12346"
adding the following line to /snmp/snmpd.conf:
   rwuser write3
touch: cannot touch '/snmp/snmpd.conf': No such file or directory
./net-snmp-create-v3-user: line 146: /snmp/snmpd.conf: No such file or directory
ubuntu@ubuntu:/usr/local/net-snmp/bin$ 

在snmpd.conf 里面添加    rwuser write3

注意:

新的机器脚本里面添加V3用户名等的配置后,需要生成新的引擎ID,

具体的方法是删掉/var目录下的snmpd.conf就可以了

否则容易造成引擎ID重复造成的冲突,在MIBBROWSER等V3需要验证引擎ID的场合(这个软件V3需要验证引擎ID)会出现组网机箱有的机箱会连接不上SNMPD,或者时断时续的问题
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值