This tutorial describes a detailed procedure showing how to perform the installation of Secure SNMP (Version 3 ) on a computer running XenServer

Remotely access the XenServer server via SSH.

In our example, we are using the putty software to remotely access the server via SSH.

Edit your server firewall configuration file and add one line allowing external connections in the SNMP 161 / UDP port. Change X.X.X.X to IP of your SNMP Agent.

# vi /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -s X.X.X.X -m conntrack –ctstate NEW -m udp -p udp –dport 161 -j ACCEPT

Add the above line before the lines below:

-A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited

Restart the iptables firewall service through the command below.

# service iptables restart

Edit the SNMP configuration file on your server with the command below.

# vi /etc/snmp/snmpd.conf

Add the following lines to the end of the file.

createUser optusnet SHA 1234567890 AES 0987654321
rouser oprusnet authPriv

Execute the following commands to restart the SNMP and configure SNMP to start automatically with your computer.

# service snmpd restart
# chkconfig snmpd on

On a Linux computer, install the snmpwalk utility and test the SNMP configuration using the following commands.

# apt-get install snmp
# snmpwalk -v3 -u gohan -l AuthPriv -a SHA -A 1234567890 -x AES -X 0987654321 X.X.X.X

Change X.X.X.X to IP of your SNMP Agent.
Change authentication password 1234567890 to the desired authentication password
Change the privacy password 0987654321 for the desired privacy password.
Change the username optusnet to the desired username
Change the IP for the IP address of your server

Pin It on Pinterest

Share This