View the Most Wanted LQ Wiki articles.
Go Back > Blogs > Kashif Aziz Awan
User Name


Rate this Entry

How to install SNMP v3 for Centos 6.x & RHEL

Posted 06-07-2013 at 05:54 AM by kashifazizawan

Kashif Aziz Awan
June 7, 2013

Simple Network Management Protocol (SNMP) is an “Internet-standard protocol for managing devices on IP networks”. SNMPv3 moves away from the community string idea from older version, and into a username & password combo. The installation and setup is actually pretty straight forward. Here’s what you need to do:

##yum install net-snmp-utils net-snmp-devel

Yum will pick up the dependencies you need. Now as root, run (make sure snmpd is stopped first)

##/usr/bin/net-snmp-config --create-snmpv3-user -a PASSWD USERNAME

You’ll get the following output…
adding the following line to /var/lib/net-snmp/snmpd.conf:
adding the following line to /usr/share/snmp/snmpd.conf:

Before testing make sure that UDP 161 is permitted through iptables, and restart snmpd

##iptables -A INPUT -p tcp --dport 161 -j ACCEPT
##/etc/init.d/snmpd start

You should test your installation from another workstation using the SNMPWALK command.

##snmpwalk -v 3 -l AuthPriv -a md5 -A PASSWD -x DES -X PASSWD -u USERNAME

If the command fails, you will see an error. If you’re successful, your screen will fill up with a lot of SNMP messages. Enjoy!
Posted in Uncategorized
Views 5417 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 07:44 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration