Skip to content

intel/mfd-powermanagement

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.

PowerManagement

Module for managing power (Raritan, APC, Digital Loggers, ipmi, etc. [powercycle, power off, reset])

How to use

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


Implemented tools:

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


Implemented methods

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.


OS supported:

  • WINDOWS
  • LNX
  • FREEBSD
  • ESXI

Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •