apc-switched-rack-pdu-control-panel 0.2.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

apcswitchedrackpducontrolpanel 0.2.2

APC Switched Rack PDU Control Panel
A Python/Flask based reimplementation of disisto's Control Panel to control multiple APC Switched Rack PDUs via SNMPv3. A single panel to switch (on, off, restart) the attached devices between different states.

Check https://github.com/disisto/apc-switched-rack-pdu-control-panel/wiki for details on how to configure the PDU

Requirements

APC Switched Rack PDU(s) with enabled SNMPv3

Tested with APC Switched Rack PDU AP7920 and AP7921 on EOL firmware v3.9.2
Tested with APC Switched Rack PDU AP7920B on latest firmware v6.5.6




Quick Install
Run locally
pip install apc_switched_rack_pdu_control_panel
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.example
APC_PDU_SETTINGS=/absolute/path/to/config.py flask --app apc_switched_rack_pdu_control_panel run

Run as WSGI app
pip install apc_switched_rack_pdu_control_panel
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.example
APC_PDU_SETTINGS=/absolute/path/to/config.py gunicorn 'apc_switched_rack_pdu_control_panel:app'

Supplying configuration data via flask instance folder
Alternatively, loading configuration settings from a flask instance folder is supported as well:
mkdir -p $PREFIX/var/apc_switched_rack_pdu_control_panel-instance
cd $PREFIX/var/apc_switched_rack_pdu_control_panel-instance
curl -o config.py https://raw.githubusercontent.com/spike77453/apc-switched-rack-pdu-control-panel/python/instance/config.py.example

In an activated virtualenv $PREFIX is equivalent to $VIRTUAL_ENV.
Configuration settings supplied via an instance folder always take precedence over configuration data supplied via the APC_PDU_SETTINGS environment variable.

This project is not affiliated with APC by Schneider Electric.
All mentioned trademarks are the property of their respective owners.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.