- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-15-2010 03:04 AM
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".
02-15-2010 11:54 PM
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...
02-15-2010 05:13 PM
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...
02-15-2010 05:20 PM
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 {
..
02-15-2010 11:54 PM
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...
01-18-2011 02:47 AM
Can someone give the solution in order to see only the deviceconfig node?
Thks
Remi
04-05-2012 12:59 PM
show config running xpath devices/entry[@name="localhost.localdomain"]/deviceconfig
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!