The freezer_dr.fencers.drivers.ipmi.ipmitool Module

class freezer_dr.fencers.drivers.ipmi.ipmitool.IpmiInterface(host, username, password, verbose=False, interface='lanplus')[source]

Bases: object

get_power_status()[source]

get the machine power status :return: 1 if the power is on and 0 if the power is off. otherwise it will return -1 for unknown state

power_down()[source]

Force shutdown the machine

power_on()[source]

power on the machine

power_reset()[source]

restart the machine

power_soft()[source]

Softly shutdown the machine