Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Language: German English

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

, , ,

One Response to “Enable SNMP on Citrix XenServer 5.6”

  • Ethern says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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