Back Up Configuration and Device State from the CLI

Back Up Configuration and Device State from the CLI

143338
Created On 09/25/18 17:46 PM - Last Modified 09/29/23 10:21 AM


Symptom


The article explains the CLI commands used for configuration and device state backup.

Environment


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


Resolution


It is possible to export/import a configuration file or a device state using the commands listed below. One can also create a backup config.

Firewall: Commands to save the configuration backup:

admin@FW>configure
Entering configuration mode

admin@FW# save config to MyBackup.xml
Config saved to MyBackup.xml
 

TFTP Export of configuration:

admin@PA-220> tftp export configuration from MyBackup.xml to <tftphost>

SCP Export of configuration:
admin@PA-220> scp export configuration from MyBackup.xml to user@<scphost>:/path

TFTP Import of configuration:
admin@PA-220> tftp import configuration from <tftphost> file <remotepath>

SCP Import of configuration:
admin@PA-220> scp import configuration from user@<scphost:/path
 

TFTP Export of Device State:

admin@PA-220> tftp export device-state to <tftphost>

SCP Export of Device State:
admin@PA-220> scp export device-state to username@<scphost>:/path

TFTP Import of Device State:
admin@PA-220> tftp import device-state from <tftphost> file <remotepath>

SCP Import of Device State:
admin@PA-220> scp import device-state from username@<scphost:>path
 

To extract device state of firewall from Panorama follow the below KB. 

How to Export Device State of Managed Firewalls from Panorama

 

 



Additional Information


CLI Commands to Export/Import Configuration and Log Files

Actions
  • Print
  • Copy Link

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

Choose Language