cfme.utils.ipmi module

class cfme.utils.ipmi.IPMI(hostname, username, password, interface_type='lan', timeout=30)[source]

Utility to access IPMI via CLI.

The IPMI utility uses the ipmitool package to access the remote management card of a server.

Parameters:
  • hostname – The hostname of the remote management console.
  • username – The username for the remote management console.
  • password – The password tied to the username.
  • interface_type – A string giving the interface_type to pass to the CLI.
  • timeout – The number of seconds to wait before giving up on a command.

Returns: A IPMI instnace.

is_power_on()[source]

Checks if the power is on.

Returns: True if power is on, False if not.

power_off()[source]

Turns the power off.

Returns: True if power is off, False if not.

power_on()[source]

Turns the power on.

Returns: True if power is on, False if not.

power_reset()[source]

Turns the power off.

Returns: True if power reset initiated, False if not.

exception cfme.utils.ipmi.IPMIException[source]

Bases: exceptions.Exception

Raised during _run_ipmi() if the error code is non zero.