[root@localhost ~]# yum -y install net-snmp net-snmp-utils
安装完成后查看SNMP版本:
[root@dnsname ~]# snmpd -v
NET-SNMP version: 5.7.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
更改SNMP团体字
[root@dnsname ~]# vi /etc/snmp/snmpd.conf
...
# sec.name source community
com2sec notConfigUser default public
#将public字段改为想要的团体字即可
启动SNMP服务并使其开机启动
[root@dnsname ~]# systemctl start snmpd
[root@dnsname ~]# systemctl enable snmpd