Skip to main content

Utility to interact with Prisma via Panorama.

Project description

Prisma Get Info

Requirements

  • Panorama with cloud_services plugin v1.8 or higher (Prisma Access)
  • Python >=3.7 (may work on lower)
  • Python modules:

License

MIT

Installation:

  • Via PIP: pip install --upgrade prisma_get_info
  • Via download: Clone/Download, and from the directory run ./get_prisma_spn.py

Usage:

Run prisma_get_spn or prisma_get.spn.py depending on how downloaded/installed.

edwards-mbp-pro:prisma_get_info aaron$ prisma_get_spn
Panorama Hostname: panorama-test.mydomain.org
Panorama Username: aaron
Panorama Password: 
us-east             us-southwest
------------------  ----------------------
us-east-clementine  us-southwest-kumarahou
                    us-southwest-poplar
edwards-mbp-pro:prisma_get_info aaron$

Can also use --output-json-file command line switch to save output as JSON file:

{
    "us-east": [
        "us-east-clementine"
    ],
    "us-southwest": [
        "us-southwest-kumarahou",
        "us-southwest-poplar"
    ]
}

Full options available when run with --help.

Version

Version Changes
1.0.1 Initial Release.

Arguments

edwards-mbp-pro:prisma_get_info aaron$ prisma_get_spn --help
usage: prisma_get_spn [-h] [--host HOST] [--user USER] [--pass PASS] [--panorama-api-key PANORAMA_API_KEY]
                      [--tenant TENANT] [--output-json-file OUTPUT_JSON_FILE]

Prisma get Info (managed by Panorama).

optional arguments:
  -h, --help            show this help message and exit

API:
  These options change how this program connects to the API.

  --host HOST           Panorama hostname or IP (or ENV var PANORAMA_HOST). If not entered, will prompt.
  --user USER           Panorama username (or ENV var PANORAMA_USERNAME). If not entered, will prompt.
  --pass PASS           Panorama password (or ENV var PANORAMA_PASSWORD). If not entered, will prompt.
  --panorama-api-key PANORAMA_API_KEY
                        Authenticate with Panorama API KEY instead of username/password.
  --tenant TENANT       Tenant name (if multi-tenancy is enabled.)

Output:
  These options change how the output is generated.

  --output-json-file OUTPUT_JSON_FILE
                        Output as JSON to this specified file name
edwards-mbp-pro:prisma_get_info aaron$

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

prisma_get_info-1.0.1b1.tar.gz (12.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page