<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Hi there, </div>
<div><br>
</div>
<div>I wrote two scripts in order to turn off the nodes with my fence devices, two APC smart-ups 1400, accessible only via telnet or web and each connected to one node, and IBM bladecenter which blade9 is my third node.</div>
<div><br>
</div>
<div>Those scripts have been tested and works in the command line. My question could be pretty dumb, but I didn't found it on the wiki or the forums. It's my first attempt to make fencing work, so I have some doubts you may resolve...</div>
<div><br>
</div>
<div>Those two scripts are named <i>fence_apc_expect</i> and <i>fence_bladecenter_expect</i>, the first will have only one parameter, the IP of the mangement network interface of the UPS, and the second script, two parameters, the management network IP of the
bladecenter and the number of the blade we want to turn off. I won't pass the user and password of the UPS/Bladecenter because they are embedded on the script.</div>
<div><br>
</div>
<div>To make work them, must I place them on /usr/sbin/ and call them like if they were a normal fence agent? </div>
<div><br>
</div>
<div>For example:</div>
<div><br>
</div>
<div><fencedevices></div>
<div> <fencedevice agent="fence_apc_expect" ipaddr="192.168.200.82" name="fenceap01"/></div>
<div> <fencedevice agent="fence_apc_expect" ipaddr="192.168.200.85" name="fenceap03"/></div>
<div> <fencedevice agent="fence_bladecenter_expect" ipaddr="192.168.199.106" name="fencebladecenter"></div>
<div></fencedevices></div>
<div><br>
</div>
<div><clusternode name="p01" votes="1" nodeid="1"></div>
<div> <fence></div>
<div> <method name="power"></div>
<div> <device name="fenceap01"/></div>
<div> </method></div>
<div> </fence></div>
<div></clusternode></div>
<div><br>
</div>
<div><clusternode name="p02" votes="1" nodeid="2"></div>
<div> <fence></div>
<div> <method name="power"></div>
<div> <device port="9" name="chassis_fence"/></div>
<div> </method></div>
<div> </fence></div>
<div></clusternode></div>
<div><br>
</div>
<div><clusternode name="p03" votes="1" nodeid="3"></div>
<div> <fence></div>
<div> <method name="power"></div>
<div> <device name="fencep03"/></div>
<div> </method></div>
<div> </fence></div>
<div></clusternode></div>
<div><br>
</div>
<div><br>
</div>
<div>That configuration will be ok?</div>
<div><br>
</div>
<div>Thank you very much,</div>
<div>--</div>
<div>Angel Docampo</div>
<br>
<a href="http://www.dltec.net/notalegal.html">Nota Legal</a>
</body>
</html>