Barra de espaço
Barra de espaço

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

YOUTUBE

In our channel you can view the video of this tutorial.



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

# vi /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -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
COMMIT

 
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 gohan SHA 1234567890 AES 0987654321
rouser gohan 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 10.10.10.10

 

  • Change authentication password 1234567890 to the desired authentication password
  • Change the privacy password 0987654321 for the desired privacy password.
  • Change the username gohan to the desired username
  • Change the IP for the IP address of your server

 

CONCLUSION

This tutorial presented the SNMPv3 service installation process on a Xenserver..