Skip to main content

Agent-friendly CLI for Palo Alto Panorama object management: find, dedup/merge, rename, and audit address/service objects safely.

Project description

panorama-super-cli (psc)

PyPI CI Docs License

Agent-friendly object management for Palo Alto Panorama. Find where an IP lives, hunt down duplicate address/service objects, merge them safely (rewriting every group and rule that referenced them), enforce naming conventions, and audit object hygiene — all dry-run by default, with PAN-OS set and JSON output for humans and agents alike.

$ psc --config panorama.xml find ip 10.0.0.10
$ psc --config panorama.xml dedup addresses
$ psc --config panorama.xml dedup merge --keep h-web1 --into web-primary --apply

⚠️ Alpha. The CLI surface and JSON contracts may shift before v1.0.0. Writes are dry-run by default; nothing touches Panorama without --apply.

Why

Panorama configs rot: the same 10.0.0.10 ends up as h-web1, web-primary, and WEB_PRD_01; services duplicate well-known ports; objects outlive the rules that used them. psc gives you a fast, scriptable, safe way to see and fix that — offline against an exported config, or live against Panorama.

Install

uv tool install panorama-super-cli      # recommended
# or
pipx install panorama-super-cli
# or
pip install panorama-super-cli

Two ways to point it at a config

  • Offline (no credentials, totally safe): psc --config exported.xml <cmd>. Export from Panorama (scp export configuration ... or the GUI) and audit it on your laptop.
  • Live: configure a profile (psc init, psc login) and psc talks the PAN-OS XML API via pan-os-python. Reads are free; writes still require --apply.

What it does

Area Commands (v0.1)
Find / resolve psc find ip <ip>, find ip -e <ip> (exact only), find ip -f ips.txt, find object <name>
Duplicates psc dedup addresses, dedup services, dedup merge
Naming psc name suggest, name lint, name apply (opt-in templates)
References psc refs <object> (where-used), refs unused
Output `--output json

See the docs for the full surface, the safety model, and the agent guide.

Safety model

  • Dry-run is the default. Every mutating command prints a plan and exits without touching anything unless you add --apply.
  • Side-effect aware. Merging or renaming an object rewrites every address group, security rule, and NAT rule that referenced it — across shared and device-groups — or refuses and tells you why.
  • --debug streams structured logs to stderr; stdout stays clean for pipes.

For AI agents

psc ships a bundled Agent Skill and emits a stable JSON envelope + exit-code contract. Pass --output json and parse away. See Using with AI agents.

License

Apache-2.0.

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

panorama_super_cli-0.2.3.tar.gz (148.0 kB view details)

Uploaded Source

Built Distribution

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

panorama_super_cli-0.2.3-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file panorama_super_cli-0.2.3.tar.gz.

File metadata

  • Download URL: panorama_super_cli-0.2.3.tar.gz
  • Upload date:
  • Size: 148.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for panorama_super_cli-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fe14bc1061f2dc03532b16778e1a8c13fd39ab0f3e20aea56a166ec31718e8c1
MD5 2580fb79b52a5e98043cbf92ffff5813
BLAKE2b-256 ca76a6536a16d6fea676e8fffa1ab9f7d00d5e9df9ba86928ea2faec17979851

See more details on using hashes here.

Provenance

The following attestation bundles were made for panorama_super_cli-0.2.3.tar.gz:

Publisher: release.yml on thomaschristory/panorama-super-cli

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

File details

Details for the file panorama_super_cli-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for panorama_super_cli-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da7e93ebadc00a1d0629937d1fd4f46ae803f4a1b73f4adfe17eee7cb258d650
MD5 257975cb165ab9b1fa33bb472f156e73
BLAKE2b-256 776a5cecc22da21e5f7134ce000e8081fd181a13f8369b27e4c528ca0ba28f8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for panorama_super_cli-0.2.3-py3-none-any.whl:

Publisher: release.yml on thomaschristory/panorama-super-cli

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