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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mfd_powermanagement-1.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 377f2fe349a1d3b9b4b7423a1da7d7d1f52f7f15bb8d464081a5e2c0bdc21fa9
MD5 bc28cc29c8328d8fa943e6bc05b226dd
BLAKE2b-256 6fca376ee8bb81b5b7c8b1b1b2d662a4b64c8ba36f74fc603ae602963dea8123

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