Home > Ubuntu > How-To: install and configure SNMP v3 on CentOS 6.2

How-To: install and configure SNMP v3 on CentOS 6.2

Install SNMP

[cce_bash]yum install net-snmp-utils net-snmp-libs[/cce]

Create a new user using the net-snmp-create-v3-user command

[cce_bash]Usage:
net-snmp-create-v3-user [-ro] [-A authpass] [-X privpass]
[-a MD5|SHA] [-x DES|AES] [username][/cce]

[cce_bash][root@centos-mail ~]# net-snmp-create-v3-user -ro -A auth_password -X privacy_password -a SHA -x AES cactiuser
adding the following line to /var/lib/net-snmp/snmpd.conf:
   createUser cactiuser SHA "auth_password" AES privacy_password
adding the following line to /etc/snmp/snmpd.conf:
   rouser cactiuser[/cce]

Test it with

[cce_bash]snmpwalk -v 3 -u cactiuser -a SHA -A "auth_password" -l authPriv -x AES -X "privacy_password" localhost[/cce]

Change auth_password and privacy_password with your passwords.

Enjoy :)

 

 

SOURCE: SNMP v3 Setup Guide by Digital Servitude

Categories: Linux, Ubuntu
  1. No comments yet.
  1. No trackbacks yet.