Enable SNMP on Citrix XenServer 5.6

Open XenServer Console or open a SSH connection to your XenServer for this howto:

1. Firewall Settings

Open „/etc/sysconfig/iptables“ with „vi“ editor and add the following line to allow SNMP connections:

-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT

Restart iptables service:

service iptables restart

2. Configurate SNMPD

Edit „/etc/snmp/snmpd.conf“ and insert the following lines:

[...]
com2sec MY-TRUST-NET 192.168.0.0/24      public
[...]

[...]
group   notConfigGroup v1            MY-TRUST-NET
[...]

Note: Replace „192.168.0.0/24“ with your Subnet.

Now start the SNMP-Deamon with:

service snmpd start

To start SNMP automatic on system startup execute the following command:

chkconfig snmpd on

Note: This settings are not persistant. If you upgrade your XenServer you have to make this settings again.

3. Links

* http://support.citrix.com/article/CTX122337
* HP SNMP Agents for Citrix XenServer

This Post Has One Comment

  1. How do i create a read only community string? Example:
    community [This_Cumminity] read-write

    Also, How do I point the traps to single server example:
    trap_community mycommunity 10.10.10.10

    Forgive me for my ignorance – Thanks

Schreibe einen Kommentar

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.