0
点赞
收藏
分享

微信扫一扫

centos 7 linux 安装SNMP服务

洛茄 2023-04-17 阅读 66

1、yum源安装SNMP服务:

yum -y install net-snmp net-snmp-utils

2、查看SNMP版本号:

snmpd -v

更改团体名

vi /etc/snmp/snmpd.conf

com2sec notConfigUser default publi

改为;

com2sec nontConfigUser defautl passw0rd #(此为需要验证的团体名)

如果你有权限,你可以看到路由器配置里有一句:show snmp community,其中那个Community SecurityName就是团体名

使设备返回所有被监控值

重启服务

systemctl start snmpd.service #启动SNMP服务

systemctl enable snmpd.service #开机启动SNMP服务

举报

相关推荐

0 条评论