2 from pcucontrol.reboot import *
4 class OpenIPMI(PCUControl):
6 supported_ports = [80,443,623]
8 # TODO: get exit codes to determine success or failure...
9 def run_https(self, node_port, dryrun):
12 cmd = "ipmitool -I lanplus -H %s -U %s -P '%s' power cycle "
13 (i,p) = os.popen4(cmd % ( self.host, self.username, self.password) )
15 print "RESULT: ", result
17 cmd = "ipmitool -I lanplus -H %s -U %s -P '%s' user list "
18 (i,p) = os.popen4(cmd % ( self.host, self.username, self.password) )
20 print "RESULT: ", result