[Linux-cluster] Fencing Problem On APC 7950

Mohd Irwan Jamaluddin irwan at magnifix.com.my
Fri Jan 12 04:29:14 UTC 2007


On Thu, 2007-01-11 at 11:50 -0500, Jim Parsons wrote:
> Thanks Ramon and Mohd. Attached is our latest, heavily refactored 
> version of this agent. outlet naming and grouping should all work now - 
> on every 7900 series switch. Please try it. Just rename it fence_apc 
> when you drop it into /sbin and make certain the executable bits are set.
> 
> -J

Thanks Jim, it works now!

[root at orarac01 ~]# ./fence_apc_master.py_done -a 10.0.6.150 -l apc -p
apc -o Off -n 2 -v
Status check successful. Port 2 is OFF
Power Off successful

Nevertheless, I guess your script is missing the Test Mode (-T option):
[root at orarac01 ~]# ./fence_apc_master.py_done -h
Usage:

fence_apc [options]
Options:
   -a <ipaddress>           ip or hostname of APC switch
   -h                       print out help
   -l [login]               login name
   -n [port]                switch port
   -p [password]            password
   -o [action]              Reboot (default), Off, On, or Status
   -v Verbose               Verbose mode - writes file to /tmp/apclog
   -V                       Print Version, then exit


-- 
Regards,
+--------------------------------+-------------------------------------+
|       Mohd Irwan Jamaluddin    |  "Being a Bayern Munich fan is like |
| ##    System Engineer,         |   a love affair. If you don't take  |
| (o_   Magnifix Sdn. Bhd.       |   it seriously, it is no fun; if    |
| //\   Tel: +60 3 42705073      |   you do take it seriously, it      |
| V_/_  Fax: +60 3 42701960      |   breaks your heart."                |
|       http://www.magnifix.com/ |                                     |
+--------------------------------+-------------------------------------+




More information about the Linux-cluster mailing list