diff --git a/fence/agents/powerman/fence_powerman.py b/fence/agents/powerman/fence_powerman.py index f168e28d..6513c8b3 100755 --- a/fence/agents/powerman/fence_powerman.py +++ b/fence/agents/powerman/fence_powerman.py @@ -1,238 +1,300 @@ #!/usr/bin/env python import os import time from datetime import datetime import sys import subprocess import re import atexit sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * from fencing import run_delay import logging #BEGIN_VERSION_GENERATION RELEASE_VERSION="Powerman Fencing Agent" REDHAT_COPYRIGHT="" BUILD_DATE="" #END_VERSION_GENERATION #### important!!! ####### class PowerMan: """Python wrapper for calling powerman commands This class makes calls to a powerman deamon for a cluster of computers. The make-up of such a call looks something like: $ pm -h elssd1:10101