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.0a2.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.0a2-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nautobot_pdu_manager-1.0.0a2.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.0a2.tar.gz
Algorithm Hash digest
SHA256 61e167ac435d3fb1484a9adf71c2689b31970ffa64821499d61d194f6947f79f
MD5 a3eaa660a2059891b7cb417a5b5b9d1b
BLAKE2b-256 c7e51a024134bea9453c88b7596ef1400fd3b6eb0f59f1268e11726430f97983

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_pdu_manager-1.0.0a2.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.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_pdu_manager-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 814ca11665fab62c9f9caafe1072b5f1a7d8f885997aa5a287ec61738a60baf8
MD5 83dca89fc21452490880762a227b2f61
BLAKE2b-256 30c380183f70f337a049ffbd7bef2d6a7b405a517bc5218a0d76b51a2636d6a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nautobot_pdu_manager-1.0.0a2-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