Palo Alto CLI Tips and Tricks
Updated: 2021-02-07
Published: 2021-01-27
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
text
# 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
# showTesting Things
The test command can be used to test a number of things from the CLI.
text
# Command format
test <test-object> [options]HTTPs Server Connectivity Test
text
test http-server address 8.8.8.8 protocol HTTPS