No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

suse11 open Snmp method

Publication Date:  2015-11-09 Views:  51 Downloads:  0
Issue Description
Customer want to enable SNMP on the Huawei Linux servers which serve the eSpace UC , Linux verison is SUSE Linux Enterprise Server 11 SP1  (x86_64) - Kernel \r (\l).  The 3rd party network manager can monitor it. but in our product document there is no any description about this part.
Solution
1.suse11 system installed below rmp package by default
shaciceslx005:/usr1 # rpm -qa | grep snmp
snmp-mibs-5.4.2.1-8.12.16.1
libsnmp15-5.4.2.1-8.12.16.1

2. we still need to install below rpm package
shaciceslx005:/usr1 # rpm -ivh net-snmp-5.4.2.1-8.12.16.1.x86_64.rpm perl-SNMP-5.4.2.1-8.12.16.1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:perl-SNMP              ########################################### [ 50%]
   2:net-snmp               ########################################### [100%]
Updating etc/sysconfig/net-snmp...

shaciceslx005:/usr1 # rpm -ivh libsensors3-32bit-2.10.6-10.15.x86_64.rpm
Preparing...                ########################################### [100%]
   1:libsensors3-32bit      ########################################### [100%]
shaciceslx005:/usr1 # rpm -ivh libsnmp15-32bit-5.4.2.1-8.12.16.1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:libsnmp15-32bit        ########################################### [100%]

3.config SNMP after installation
shaciceslx005:/etc/snmp # ls
snmpd.conf
shaciceslx005:/etc/snmp # rpm -qa | grep snmp
snmp-mibs-5.4.2.1-8.12.16.1
net-snmp-5.4.2.1-8.12.16.1
libsnmp15-5.4.2.1-8.12.16.1
libsnmp15-32bit-5.4.2.1-8.12.16.1
shaciceslx005:/etc/snmp # cat snmpd.conf
# Please see /usr/share/doc/packages/net-snmp/EXAMPLE.conf for a
# more complete example and snmpd.conf(5).
#
# Writing is disabled by default for security reasons.  If you'd like
# to enable it uncomment the rwcommunity line and change the community
# name to something nominally secure (keeping in mind that this is
# transmitted in clear text).

# don't use ' < > in strings for syslocation or syscontact
# Note that if you define the following here you won't be able to change
# them with snmpset
syslocation Server Room
syscontact Sysadmin (root@localhost)

# These really aren't meant for production use.  They include all MIBS
# and can use considerable resources.  See snmpd.conf(5) for information
# on setting up groups and limiting MIBS.
#rocommunity public 127.0.0.1
rocommunity public              --------------------------------------- add these two sentence
rwcommunity private
# rwcommunity mysecret 127.0.0.1

4.restart snmp service
shaciceslx005:/etc/init.d # ./snmpd restart
Shutting down snmpd:                                                                                   done
Starting snmpd  

5.test
snmpwalk -c public -v 2c 127.0.0.1
(if there is some print means service is running ok)

END