Prisma SD-WAN - get-all-interface-info
Quick script to dump an entire Prisma SD-WAN network/site configuration summary to a single CSV.
Requirements
- Active Prisma SASE Account with SD-WAN.
- Prisma SASE "Service Account" credentials that has been assigned appropriate permissions to read Prisma SD-WAN configuration.
- Service account credentials can be entered interactive, script arguments, environment varibales, or via a
prisma_sase_settings.pysetting file in the current working directory.
- Service account credentials can be entered interactive, script arguments, environment varibales, or via a
- Python >=3.6
- Python modules:
- prisma-sase >=4.4.5b2 - https://github.com/PaloAltoNetworks/prisma-sase-sdk-python
- progressbar2 >=3.34.3 - https://github.com/WoLpH/python-progressbar
License
MIT
Usage Example:
mb-pro:get-all-interface-info aaron$ ./get-all-interface-info.py
Prisma SD-WAN Site Interface info -> CSV Generator v6.3.1b1 (https://api.sase.paloaltonetworks.com)
Please enter Prisma SASE Service Account (not user account) info to login.
Prisma SASE Client ID: aaron-script-test@55512124.iam.panserviceaccount.com
Prisma SASE Client Secret:
Prisma SASE TSG ID: 55512124
Creating ./democompanyinc_interfaces_2024-02-01-18-07-34.csv for data output...
Caching Sites..
Caching Elements..
Caching WAN Networks..
Caching Circuit Catagories..
Caching Network Contexts..
Caching Policysets..
Caching Security Policysets..
Caching Security Zones..
Filling Network Site->Element->Interface table..
100%|############################################################################################################################################################################|Time: 0:00:01
Querying all interfaces for current status..
100%|############################################################################################################################################################################|Time: 0:00:21
mb-pro:get-all-interface-info aaron$
Version
| Version | Changes |
|---|---|
| 2.0.1 | Refactor utility to use Prisma SASE SDK instead of legacy CloudGenix SDK. |
| 1.1.1 | Minor edits to support commas in Site & Element names. Added AUTH TOKEN support. |
| 1.1.0 | pip install cloudgenix_get_all_interface_info support, python3 support |
| 1.0.0 | Initial Release. |
Metadata
Release files for prisma-sdwan-get-all-interface-info 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prisma_sdwan_get_all_interface_info-2.0.1.tar.gz | 12.9 kB | Without provenance | Details for prisma_sdwan_get_all_interface_info-2.0.1.tar.gz |
Release files / prisma_sdwan_get_all_interface_info-2.0.1.tar.gz
| Download URL | prisma_sdwan_get_all_interface_info-2.0.1.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c181718a1c442061884a7781fdbb5445392e9a54c34004a8e3092b612c883af5
|
|
BLAKE2b-256 checksum How to use checksums |
518d83d6de05273761e978864b6db03691aca92bbcf400fd576b27b847c6e591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for prisma-sdwan-get-all-interface-info 2.0.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.