The following works (with simulation ):

./fence_req.py --ip=192.168.56.1 --ipport=5556  -n=1 --action=on
./fence_req.py --ip=192.168.56.1 --ipport=5556  -n=1 --action=reboot
simulate the APC power state transformation.