Palo Alto Networks Utilities


Keywords
panw_utils, palo-alto-firewalls, palo-alto-networks, panw, python, python3
License
MIT
Install
pip install panw-utils==0.5.4

Documentation

panw-utils

Palo Alto Networks Utility Scripts

Features

panw-utils

  • Returns a list of available commands

get-panw-api-key

  • Returns the current API key, suitable for piping to pbcopy (macOS) or clip.exe (Windows)
  • Command line options
  • Platform independent
  • Save default user and firewall
  • Update saved settings
  • Receives pipeline input (stdin)
  • Uses a default firewall if one not provided
  • Prompts for required parameters if none provided
  • Multi-threaded

get-panw-firewalls

  • Returns a list of firewalls including management address and serial number
  • Output can be pasted directly into Excel
  • Terse output option for piping to other commands
  • Command line options
  • Platform independent
  • Save API key and default Panorama host
  • Update saved settings
  • Override/supply API key on the command line

get-panw-interfaces

  • Returns a list of firewalls interfaces
  • Output can be pasted directly into Excel
  • Terse output option for piping to other commands
  • Command line options
  • Platform independent
  • Save API key and default firewall
  • Update saved settings
  • Override/supply API key on the command line
  • Filter on interface properties
  • Multi-threaded

get-panw-config

  • Returns the firewall configuration
  • Command line options
  • Platform independent
  • Save key based auth preference, default user and default firewall
  • Update saved settings
  • Multi-threaded

run-panw-cmd

  • Executes arbitrary CLI commands
  • Command line options
  • Platform independent
  • Save key based auth preference, default user and default firewall
  • Update saved settings
  • Multi-threaded


Installation

$ pip install panw-utils

Upgrade

$ pip install --upgrade panw-utils