...
<members>
<member id="0" name="magenta" watchdog="yes">
<!-- Typical single power supply configuration -->
<powercontroller id="0" ipaddress="ips-rack9" password="password" port="5" type="wti_nps" user=""/>
</member>
<member id="1" name="yellow" watchdog="yes">
<!-- Dual power supply configuration: add the same device twice
with different port numbers. -->
<powercontroller id="0" ipaddress="ips-rack9" password="password" port="6" type="wti_nps" user=""/>
<powercontroller id="1" ipaddress="ips-rack9" password="password" port="7" type="wti_nps" user=""/>
</member>
<member id="2" name="purple" watchdog="yes">
<!-- This will power cycle all ports named "purple" at the same time.
Works with single and dual power supply systems -->
<powercontroller id="0" ipaddress="ips-rack9" password="password" port="purple" type="wti_nps" user=""/>
</member>
</members>
...
nodes {
192.168.74.44 {
ip_interfaces {
eth0 = "192.168.74.44"
}
fence {
power {
# Single power supply configuration: Cycle one port,
# The wti_ips reference is to the wti_ips definition in
# fence.ccs, which is below.
wti_ips {
port = 5
}
}
}
}
192.168.74.45 {
ip_interfaces {
eth0 = "192.168.74.45"
}
fence {
power {
# Dual power supply configuration: Turn off both ports,
# then turn them both back on. The wti_ips references are
# pointers to the wti_ips device in fence.ccs, listed below.
wti_ips {
port = 6
option = off
}
wti_ips {
port = 7
option = off
}
wti_ips {
port = 6
option = on
}
wti_ips {
port = 7
option = on
}
}
}
}
}
fence_devices {
wti_ips {
# Definition fence device named "wti_ips", referenced previously
agent = "fence_wti"
ipaddr = "192.168.74.7"
passwd = "password"
}
}
...
<clusternodes>
<clusternode name="red" nodeid="1">
<fence>
<method name="1">
<!-- Single power supply configuration: Cycle one port
The device name is a reference to the named fencedevice
in the fencedevices tag below. -->
<device name="ips" port="1"/>
</method>
</fence>
</clusternode>
<clusternode name="green" nodeid="2">
<fence>
<method name="1">
<!-- Dual power supply configuration: Turn off both ports,
then turn them both back on.
The device name is a reference to the named fencedevice
in the fencedevices tag below. -->
<device name="ips" port="2" option="off"/>
<device name="ips" port="3" option="off"/>
<device name="ips" port="2" option="on"/>
<device name="ips" port="3" option="on"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<!-- Definition fence device named "ips", referenced previously -->
<fencedevice agent="fence_wti" name="ips" passwd="password" ipaddr="ips-rack9"/>
</fencedevices>
...