Skip to main content

Pdu Manager

Project description

Pdu Manager



An App for Nautobot.

Overview

PDU Manager is a Nautobot app that controls APC managed PDU outlets directly from Nautobot — power an outlet on or off, reboot it, or read its status — over SSH (Nornir + Netmiko, the apc_aos driver). It works from either the PDU device itself or from any device that is powered by a PDU outlet, building entirely on Nautobot's native power modeling (a PDU's outlets are PowerOutlet components, a powered device exposes a PowerPort, and the two are joined by a power Cable). The APC outlet number is derived from the outlet's name, so there is no extra per-outlet configuration to maintain.

Every action runs as a Nautobot Job, surfaced as a built-in PDU Power dropdown (Status / On / Off / Reboot) on every device detail page — no Job Button configuration required. Each item opens the Job in a modal with the device pre-filled; the result, including outlet status, is written to the Job Result log. A Status read is scoped to just the outlet(s) feeding the selected device rather than the whole PDU.

To prevent accidental outages, PDU Manager adds a Power Off Protection model (with full UI and REST API) that refuses Off and Reboot for devices matched by role, tenant, tag, or explicit device. For demos and evaluation without real hardware, a MOCK_CONNECTIONS setting simulates the APC CLI, and an invoke generate-test-data command builds a complete sample environment (PDUs, cabled devices, and protection rules) and enables the jobs.

Screenshots

The built-in PDU Power dropdown on a device detail page (Status / On / Off / Reboot, with a power icon):

PDU Power dropdown on a device detail page

Selecting an action opens the Job in a modal with the device pre-filled:

PDU Power Status job modal

The Job Result reports the outcome — here, a Status read scoped to just the device's outlet:

PDU Power Status job result

The Power Off Protection rules that guard devices from being powered off or rebooted:

Power Off Protections list

More screenshots can be found in the Using the App page in the documentation.

Documentation

Full documentation for this App can be found over on the Nautobot Docs website:

Contributing to the Documentation

You can find all the Markdown source for the App documentation under the docs folder in this repository. For simple edits, a Markdown capable editor is sufficient: clone the repository and edit away.

If you need to view the fully-generated documentation site, you can build it with MkDocs. A container hosting the documentation can be started using the invoke commands (details in the Development Environment Guide) on http://localhost:8001. Using this container, as your changes to the documentation are saved, they will be automatically rebuilt and any pages currently being viewed will be reloaded in your browser.

Any PRs with fixes or improvements are very welcome!

Questions

For any questions or comments, please check the FAQ first. Feel free to also swing by the Network to Code Slack (channel #nautobot), sign up here if you don't have an account.

Project details


Download files

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

Source Distribution

nautobot_pdu_manager-1.0.0a4.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

nautobot_pdu_manager-1.0.0a4-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file nautobot_pdu_manager-1.0.0a4.tar.gz.

File metadata

  • Download URL: nautobot_pdu_manager-1.0.0a4.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nautobot_pdu_manager-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 800c266956be5f3dcd2855c8d2c5d7bce1848564cd9104d9a42e61823bfe33f4
MD5 ec2333d7697ff4e57f92b682111230a7
BLAKE2b-256 a6cc3551cf7129750dfd2d4b4b6b42502eddc674da39554c3c94d36101d5c95b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_pdu_manager-1.0.0a4.tar.gz:

Publisher: release.yml on jtdub/nautobot-app-pdu-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nautobot_pdu_manager-1.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_pdu_manager-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb3cd6a98562a4402cfb854e17be26105876ce9ffdbf441a83b7653b01e28e5d
MD5 7ba91d1f4707b8c88f63cfbd6dc8d51d
BLAKE2b-256 26bd8b8d62692cae89b07d0fc85ae0cf77dca35144f443195855ebba74d857dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_pdu_manager-1.0.0a4-py3-none-any.whl:

Publisher: release.yml on jtdub/nautobot-app-pdu-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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