How to enable SNMP on Linux servers


To install:

yum -y install net-snmp

Edit the config file:

vi or vim /etc/snmp/snmpd.conf

add the below line

rocommunity snmpstring

:wq! (save and close)

/etc/init.d/snmpd start

To start snmp service during startup:

chkconfig snmpd on

service snmpd restart

service snmpd status

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s