安装snmp服务后发现使用snmpwalk命令进行测试时报Timeout: No Response from 127.0.0.1
操作命令如下:
#修改SNMP
\cp /etc/snmp/snmpd.conf{,_date +%Y-%m-%d_%H-%M-%S_%N
}
sed -i '62s/systemview/all/' /etc/snmp/snmpd.conf
sed -i '85s/#view/view/' /etc/snmp/snmpd.conf
sed -i '41s/#com2sec/com2sec/' /etc/snmp/snmpd.conf
sed -i '47s/#com2sec/com2sec/' /etc/snmp/snmpd.conf
sed -i '48s/#com2sec/com2sec/' /etc/snmp/snmpd.conf
systemctl stop snmpd.service
net-snmp-config --create-snmpv3-user -ro -a Abcd1234 -A MD5 snmpadmin
#重启服务并测试
systemctl restart snmpd.service
snmpwalk -c public -v1 127.0.0.1 .1.3.6.1.2.1.25.2.3.1
snmpwalk -c public -v2c 127.0.0.1 .1.3.6.1.2.1.25.2.3.1
snmpwalk -v3 -u snmpadmin -l auth -a MD5 -A Abcd1234 127.0.0.1 .1.3.6.1.2.1.25.2.3.1
Hi linuxwd, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: doc, and any of the maintainers: @Rudy_Tan, @amyMaYun, @qiaominna, @ZhengyuhangHans, @lanlanbenming, @Judith.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论