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.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mfd_powermanagement-1.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ed21a0e288d64faa206759e7be111948554d95738d7e7b8c428af0fa5c78524
MD5 c11e1cb16e53a1c82d8e2084694b4061
BLAKE2b-256 aed6f6df7e074c867ac3cf6b25932528238dd780b29432cc1f719929bb231e8e

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