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
# 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.

# Command format

test <test-object> [options]

HTTPs Server Connectivity Test

test http-server address protocol HTTPS