Fehler: "Ungültige Syntax" beim Laden von Partiellenkonfigurationen in Panorama
15498
Created On 12/02/19 17:43 PM - Last Modified 03/26/21 17:57 PM
Symptom
Beim Laden der partiellen Konfiguration mit einem Gerätegruppennamen, der Leerzeichen [West] enthält, wird der Fehler "Ungültige Syntax" US angezeigt.
# load config partial mode merge from-xpath devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1'] /address to-xpath /config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='US West']/address from fw1-config.xml Invalid syntax.
Environment
- Panorama.
- PAN-OS 8.1 und höher.
Cause
Der Fehler ist auf ein Leerzeichen im Gerätegruppennamen zurückzuführen.
Resolution
Fügen Sie doppelte Anführungszeichen hinzu, wenn Sie die xpaths die Parameter 'from-xpath' und 'to-xpath' des Load-Befehls angeben.
> configure
# load config partial mode [append|merge|replace] from-xpath "<path-to-src>" to-xpath "<path-to-dst>" from <filename>Beispiel:
#load config partial mode merge from-xpath "devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/address" to-xpath "/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='US West']/address" from fw1-config.xml Config loaded from fw1-config.xmlHinweis: Ändern Sie die Namen der Konfiguration so, dass sie Ihrem Setup entsprechen.
Additional Information
Siehe auch
KB Artikel: Wie man Config Partial
Documentation lädt: Laden einer Firewall Teilkonfiguration in Panorama