Skip to main content

Module for managing power (Raritan, APC, Digital Loggers, ipmi, etc.)

Project description

[!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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mfd_powermanagement-1.12.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file mfd_powermanagement-1.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mfd_powermanagement-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92c8aa20ce1e4fb7f613ca23e736ac81e2b8b9047d2298ad75015d3f3d09dfff
MD5 24176bfe3b6de64fec3be8bb4173d632
BLAKE2b-256 fc0b204b0693bdfb086c280c61c7283be81d2c6c191fb84046e42ea422d361f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page