Important
This project is under development. All source code and features on the main branch are for the purpose of testing or evaluation and not production ready.
Module for managing power (Raritan, APC, Digital Loggers, ipmi, etc. [powercycle, power off, reset])
Install module and from module import eg.Ipmi
Initialization:
PowerManagement(connection, host, ip, username, password)
host
and ip
can be used interchangeably.
connection
is an object from mfd_connect
and is used for remote execution
Attributes:
States
- enums are defined for every tool, so IpmiStates
Ipmi - implemented controlling via IPMITool and IPMIUtil
PDU - controlling power switch devices via SNMP
DLI - controlling Digital Loggers power switch devices
CCSG - controlling power switch devices via CCSG
SYSTEM - controlling power via system calls
Every class that inherits from PowerManagement
(IPMI
, PDU
, CCSG
) overrides this abstract method:
set_state(**kwargs) -> bool
- setting wanted state from available states
Methods are described for each implemented tool individually in theirs README.
- WINDOWS
- LNX
- FREEBSD
- ESXI
If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.