Skip to main content

Upgrade Assurance CLI Tool

Project description

Upgrade Assurance CLI Tool

This project is a simple CLI wrapper around the PAN-OS Upgrade Assurance library.

Installation

It is recommended to install this project with pipx.

Installing with pipx will automatically make the main script, assurance-cli available at the command line.

pipx install upgrade-assurance-cli

You can also install directly from this repository if you want to get changes as we develop them, but before they are formally released.

# Install from the main branch
pipx install git+https://github.com/PaloAltoNetworks/upgrade-assurance-cli.git 
# Install from <branch_name>, useful for testing.
pipx install git+https://github.com/PaloAltoNetworks/upgrade-assurance-cli.git@<branch_name> 

Quickstart

Run a readiness check ("pre-checks") against a given device.

assurance-cli readiness myfirewall.com

Read the last readiness report for a specific device

assurance-cli report --device myfirewall.com

Take an operational snapshot

assurance-cli snapshot myfirewall.com

Compare two snapshots

assurance-cli compare-snapshots <first-snapshot-path> <second-snapshot-path>

Backup the configuration running-configuration

assurance-cli backup myfirewall.com

Backup the configuration device-state

assurance-cli backup myfirewall.com --export-type device-state

Configuration

Running Against Multiple Devices

This tool allows you to run against multiple devices at once using multiprocessing.

Multiple devices can be passed to the comand line as arguments to the readiness and snapshot commands.

assurance-cli readiness myfirstfirewall.com mysecondfirewall.com 

Or, they can be passed via a text file containing one device per line.

myfirstfirewall.com
mysecondfirewall.com
assurance-cli readiness <path_to_devices_file>

Connecting Via Panorama

Connections can be proxied via Panorama for simplicity. To do so, use the following format for the device string; <panorama_hostname>:<firewall_serial_number>

assurance-cli readiness my_panorama.com:1234567891011

Environment Variables

envvar description
UA_USERNAME Username to use for authentication - prompts if not given
UA_PASSWORD Username to use for authentication - prompts if not given

Customizing the Test Suite

All commands support passing the --config-path flag to pass in a config file. This CLI ships with the most commonly used tests but it is expected that most users will need to customize it.

The config file is in YAML format and specifies the tests used by the upgrade assurance library.

pre_checks:
  - "ntp_sync"
snapshot_comparison_config:
 - routes:
    properties:
     - "!flags"
    count_change_threshold: 10
snapshot_config:
 - routes
 - nics

For a full list of checks and al their configuration options view the Upgrade Assurance Documentation site.

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

upgrade_assurance_cli-1.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

upgrade_assurance_cli-1.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file upgrade_assurance_cli-1.0.1.tar.gz.

File metadata

  • Download URL: upgrade_assurance_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for upgrade_assurance_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a07e87b95b4e27d480b63f2f47831d4f695aa4234a42a390c9b0d6345ddddaed
MD5 efa01bdd38d8d28324061520451d102c
BLAKE2b-256 8f89959d0b138469734d027fda2db68661c6475f25c558b312fefa168de639be

See more details on using hashes here.

Provenance

The following attestation bundles were made for upgrade_assurance_cli-1.0.1.tar.gz:

Publisher: release.yaml on PaloAltoNetworks/upgrade-assurance-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 upgrade_assurance_cli-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for upgrade_assurance_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8741a10c996a2f78947c27627ac52a64010ed2b1b8fa04a245da24139b80a341
MD5 6a4f11126738c6862f56b8feac1bdbc3
BLAKE2b-256 3ca4430b4b1df0198cfcd3cd250ecb65785804c95d65e321f6439be2652e8769

See more details on using hashes here.

Provenance

The following attestation bundles were made for upgrade_assurance_cli-1.0.1-py3-none-any.whl:

Publisher: release.yaml on PaloAltoNetworks/upgrade-assurance-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