Intro

Handy tips and tricks for working with the Palo Alto network CLI.

Config Output Format

The configuration output format can be changed. This can be useful for backing up the config or capturing a structured format from the CLI.

The following formats are available:

  • default
  • json
  • set
  • xml
cmd
# Set the desired format from operational mode (>). 

> set cli config-output-format <format>

# Enter configuration mode to view the config in the selected format.

> configure
# show

Testing Things

The test command can be used to test a number of things from the CLI.

cmd
# Command format

test <test-object> [options]

HTTPs Server Connectivity Test

cmd
test http-server address 8.8.8.8 protocol HTTPS