Barra de espaço
Barra de espaço

This tutorial describes a detailed procedure showing how to perform the installation of SNMP 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

 

Locate and change the public community in the line below.

com2sec notConfigUser  default public


To the name of a desired community.

com2sec notConfigUser  default VegetaRocks


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 –v1 –c VegetaRocks 10.10.10.10

  • Change the name of SNMP community VegetaRocks to the desired name
  • Change the IP for the IP address of your device.

CONCLUSION

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