I am installing a simple Corosync/pacemaker/drbd high availability cluster using Centos 7 and would like to provide fencing/STONITH using custom hardware (power switches using USB connections). As such, I need to add these devices as STONITH resources in my cluster. Is there a simple dummy script I can start with? I found several files in /usr/sbin/fence_*
, but these seem to connect via some sort of network and only accept pre-configured options.
Here's a minimal script based on
fence_cisco_ucs
. I do not know why the password field is mandatory, and I have no idea whatget_list
is supposed to do.For example,
./script.py -o status -p x -s y
gives "Status: ON". If the functionality inget_power_status
andset_power_status
is modified accordingly, this script might actually be useful.