I need help. I had installed netsnmp through 'yum install net-snmp' and other library, devel, etc. Everything went fine since I dowloaded net-snmp 5.8 from here https://sourceforge.net/projects/net-s ... -snmp/5.8/, and installed it into /opt/net-snmp5-8 directory (typing sudo ./configure, sudo make, sudo make install)
I also typed 'systemctl restart snmpd' and it seems wroking but any snmp* command gives 'localhost not rensponfing'.
I find out that
Code: Select all
rpm -qa | grep snmp
net-snmp-gui-5.7.2-37.el7.x86_64
net-snmp-libs-5.7.2-37.el7.x86_64
net-snmp-utils-5.7.2-37.el7.x86_64
net-snmp-devel-5.7.2-37.el7.x86_64
net-snmp-perl-5.7.2-37.el7.x86_64
net-snmp-5.7.2-37.el7.x86_64
net-snmp-agent-libs-5.7.2-37.el7.x86_64
Code: Select all
snmpd --version
NET-SNMP version: 5.8
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
my /etc/snmp/snmpd.conf file, at the moment, is this:
Code: Select all
# Map 'idv90we3rnov90wer' community to the 'ConfigUser'
# Map '209ijvfwer0df92jd' community to the 'AllUser'
# sec.name source community
com2sec notConfigUser default public
com2sec AllUser default public
# Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group notConfigGroup v2c notConfigUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.1
view SystemView included .1.3.6.1.2.1.25.1.1
view AllView included .1 80
view SystemView included system
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access notConfigGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
sysLocation Unknown (edit /etc/snmp/snmpd.conf)
sysContact Root (configure /etc/snmp/snmp.local.conf)
Code: Select all
snmpwalk -v2c -c public localhost system
Timeout: No Response from localhost
Thanks a million.