Building an HP SIM 5.x server on a Linux-based Serviceguard Cluster (444847-001, February 2007)

Toolkit.sh modification: the script is not provided through HP Serviceguard Manager,
for this paper the script from the MySQL toolkit was used and the following changes were
applied:
# diff HPSIM/toolkit.sh ../mysqltoolkit/toolkit.sh
43c43
< HA_SCRIPT="$PKG_DIR/HPSIM.sdf.sh"
---
> HA_SCRIPT="$PKG_DIR/hamysql.sh"
63c63
< echo "$(date '+%b %e %T') - ERROR: Failed to $ACT SGSIM
Server."
---
> echo "$(date '+%b %e %T') - ERROR: Failed to $ACT MySQL
Server."
107c107
< # . $HA_SCRIPT $ACT
---
> . $HA_SCRIPT $ACT
SNMP communications: As SNMP uses the User Datagram Protocol (UDP) as the transport
protocol for passing data between managers and agents, HP SIM had an issue in the
clustered configuration, because it uses the real IP address instead of the virtual IP address for
answering UDP requests. You must involve address translation on the UDP packets. Use the
embedded kernel firewall stack of Linux to achieve this. You must SNAT the udp packets in,
by using the iptables command as follows:
# iptables -t nat -A POSTROUTING -p udp -j SNAT --to-source 192.168.2.15
(the cluster IP Adress)
20