show config running xpath syntax

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

show config running xpath syntax

L0 Member

Hello,

I try to figure out the correct sytax for the xpath option of the show config running CLI-command (running PAN-OS 3.0.6).

? says:

+ xpath    xpath of the node to retrieve

but every way I tried to describe the node I want gives me a "Invalid syntax".

1 accepted solution

Accepted Solutions

Thanks! Playing around with this, I've learned I can't get every node within the configuration tree, e.g.

show config running xpath shared/log-settings/syslog works fine, but

show config running xpath mgt-config/users/admin does not.

So in the devices section, I can't reach anything below devices/localhost.localdomain, but that would be the interesting part...

View solution in original post

5 REPLIES 5

L5 Sessionator

These element nodes that can be used with the show config running xpath command;

admin@PA-500> show config running xpath devices
devices {
  localhost.localdomain {
    network {
      interface {
        ethernet {
          ethernet1/1 {
            virtual-wire ;    

              etc....

admin@PA-500> show config running xpath shared

shared {
  signature ;
  application ;
  application-group ;
  service ;
  service-group ;
  log-settings {
    syslog {
      Al-Syslog {
        server 10.16.0.232;
        port 514;
        facility LOG_USER;

            etc....

admin@PA-500> show config running xpath mgt-config

mgt-config {
  devices {
    localhost.localdomain {
      ip 127.0.0.1;
      vsys {
        vsys1 { }
             etc...

Additional notes:

admin@mgmt-kestrel>  show config running xpath "shared/profiles/virus"          

virus  {

  custom-av  {

    decoder  {

      ftp  {

        action  block;

       }

      http  {

        action  block;

       }

      imap  {

        action  block;

       }

      pop3  {

        action  block;

       }

      smb  {

...

To get details of specific profile named 'custom-av'

show config running  xpath  "shared/profiles/virus/entry[@name='custom-av']"

custom-av  {

  decoder  {

    ftp  {

      action  block;

     }

    http  {

      action  block;

     }

    imap  {

      action  block;

     }

    pop3  {

      action  block;

     }

    smb  {

..

Thanks! Playing around with this, I've learned I can't get every node within the configuration tree, e.g.

show config running xpath shared/log-settings/syslog works fine, but

show config running xpath mgt-config/users/admin does not.

So in the devices section, I can't reach anything below devices/localhost.localdomain, but that would be the interesting part...

Can someone give the solution in order to see only the deviceconfig node?

Thks

Remi

show config running xpath devices/entry[@name="localhost.localdomain"]/deviceconfig

  • 1 accepted solution
  • 8711 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!