: Xpath Location Formats Determined by Device Configuration
Focus
Focus

Xpath Location Formats Determined by Device Configuration

Table of Contents
End-of-Life (EoL)

Xpath Location Formats Determined by Device Configuration

You specify the source and destination of the load partial command using xpath locations, which specify the XML node in the configuration you are copying from (from-xpath) and the XML node in the candidate configuration you are copying to (to-xpath). Determining the correct xpath is a critical part of using this command. The following table shows the format for the from-xpath and to-xpath on different types of devices. Notice that the from-xpath begins at devices or shared, whereas the to-xpath begins with /config.
Type of Device Configuration
Xpath Formats
Multi-vsys Firewall
from-xpath
devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys-ID']/<object>
to-xpath
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys-ID']/<object>
Single-vsys Firewall
from-xpath
devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/<object>
to-xpath
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/<object>
Panorama Shared Object
from-xpath
shared/<object>
to-xpath
/config/shared/<object>
Panorama Device Group Object
from-xpath
devices/entry[@name='localhost.localdomain']/device-group/entry[@name='device-group-name']/ <object>
to-xpath
/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='device-group- name']/<object>