utils.ipmi module¶
-
class
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.
-
exception
utils.ipmi.
IPMIException
[source]¶ Bases:
exceptions.Exception
Raised during
_run_ipmi()
if the error code is non zero.