Viewing the configuration in set and XML format

Viewing the configuration in set and XML format

364405
Created On 09/25/18 17:41 PM - Last Modified 12/11/20 02:06 AM


Environment


  • Any PAN-OS.
  • Palo Alto Firewall or Panorama.


Resolution


  1. Run the following command to view the configuration:
    • "set" format:    > set cli config-output-format set
    • "xml" format:   > set cli config-output-format xml
  2. Enter configure mode:  > configure
 
  1. Enter show to see the complete configuration. You can also view certain components, such as "show network interface".
     
Note: The output of show is not necessarily the sequence to execute the commands. A command that appears at the top may reference something defined later in the listing.

 

The following example demonstrates how to view a configuration in "set" format.

> set cli config-output-format set
> configure
Entering configuration mode
[edit]

# show

set mgt-config devices localhost.localdomain ip 127.0.0.1
set mgt-config user admin phash fnRL/G5lXVMug
set mgt-config user admin permissions role-based superuser yes

set zone L3-Trust network layer3 ethernet1/3
set zone L3-Trust network layer3 ethernet1/4
set zone L3-Trust network layer3 ethernet1/5
set zone L3-Trust enable-user-identification no

set rulebase security rules rule1 from any
set rulebase security rules rule1 to any
set rulebase security rules rule1 source any
set rulebase security rules rule1 destination any
set rulebase security rules rule1 service any
set rulebase security rules rule1 application any
set rulebase security rules rule1 action allow
...
 

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClHoCAK&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language