Skip to main content

PAN-OS Duplicate Finder

Python versions License

pan-os-duplicate-finder is a command-line tool designed to identify duplicate address objects across Palo Alto Networks firewalls and Panorama device groups. This tool helps network administrators maintain cleaner configurations by identifying redundant address objects that could be consolidated.

Table of Contents

Features

  • Easy Setup: Store credentials and preferences in a settings.yaml file for reuse
  • Comprehensive Search: Scans both shared space and all device groups
  • Flexible Output: Generate CSV reports with detailed information about duplicates
  • Rich Console Output: Clear, colorful display of duplicate findings
  • Device Group Awareness: Track which device groups contain duplicate objects
  • Secure Credentials: Support for both direct credential input and settings file

Installation

Requirements:

  • Python 3.10 or higher

Install directly from PyPI:

pip install pan-os-duplicate-finder

Basic Usage

Once installed, the primary command is pan-os-duplicate-finder. Running --help displays available options and commands:

pan-os-duplicate-finder --help

Available commands include:

  • find: Find duplicate address objects
  • settings: Create a settings file
  • version: Show version information

Creating the Settings File

Before scanning for duplicates, you can create a settings.yaml file to store your credentials and preferences:

pan-os-duplicate-finder settings

This will create a template settings.yaml file that you can edit with your specific details:

hostname: ""        # Your Panorama or firewall hostname/IP
username: ""        # Your username
password: ""        # Your password
logging: "INFO"     # Logging level (INFO/DEBUG)
output_format: "csv"  # Output format for results

Finding Duplicates

With your settings configured, you can search for duplicate address objects:

# Using settings file
pan-os-duplicate-finder find

# Or provide credentials directly
pan-os-duplicate-finder find --hostname panorama.example.com --username admin

The tool will:

  1. Connect to your device
  2. Retrieve all address objects from shared space and device groups
  3. Analyze for duplicates
  4. Generate a CSV report
  5. Display a summary in the console

Example CSV output includes:

  • Object name
  • Device group location
  • Address value
  • Address type
  • Description
  • Duplicate group identifier

Example console output shows:

  • Total number of duplicates found
  • Summary table of duplicates by type
  • Device groups containing duplicates

Additional Options

# Enable debug logging
pan-os-duplicate-finder find --debug

# Specify output file
pan-os-duplicate-finder find --output my-report.csv

# Save debug logs to file
pan-os-duplicate-finder find --debug --log-file debug.log

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

pan-os-duplicate-finder is licensed under the Apache 2.0 License. See the LICENSE file for more details.

Metadata

Release files for pan-os-duplicate-finder 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pan-os-duplicate-finder 0.1.0
File Size Uploaded Provenance
pan_os_duplicate_finder-0.1.0.tar.gz 17.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pan-os-duplicate-finder 0.1.0
File Interpreter ABI Platform
pan_os_duplicate_finder-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / pan_os_duplicate_finder-0.1.0.tar.gz

Download URL pan_os_duplicate_finder-0.1.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
615d1e47d8119933a119d5e9cc7bc90dff2def2fe91bd78cb20525b64fa9f403
BLAKE2b-256 checksum
How to use checksums
bacc577f6449326f00c9998b25bc92c4e7f83fa3eaa36ccbde5571d34fc518bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/24.1.0

Release files / pan_os_duplicate_finder-0.1.0-py3-none-any.whl

Download URL pan_os_duplicate_finder-0.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a62344c492af2fd800fea9393c77f100bf3b61854ca126ac111516064a54ab9f
BLAKE2b-256 checksum
How to use checksums
f4062dbb31373478dd467d66df4af63aa85409eb222961987063695e2837abae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/24.1.0

Security for pan-os-duplicate-finder 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page