- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-06-2010 12:46 AM
Hi all,
pls add a feature to allow automatic and scheduled (daily,weekly,monthly) configuration backups to be made to local HD, remote ftp/tftp/scp server.
kind rgds
Roland
04-08-2013 12:06 AM
Hi, any update here and suggestion?
Where is the running-config.xml path in PANOS?
I use scp in Linux server, but it fail:
scp abc@paloaltofirewall:/opt/pancfg/mgmt/device-state /home/paloalto_cfg_backup
04-08-2013 05:39 PM
here is the path for running config:
/opt/pancfg/mgmt/factory/running-config.xml
04-08-2013 10:04 PM
Try it but seems still not working, here is the result:
................
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/cpcnet/.ssh/identity
debug1: Trying private key: /home/cpcnet/.ssh/id_rsa
debug1: Offering public key: /home/cpcnet/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -f /opt/pancfg/mgmt/factory/running-config.xml
It hang after "debug1: Sending command: scp -v -f /opt/pancfg/mgmt/factory/running-config.xml"
Any idea?
04-09-2013 12:40 AM
Hello,
If you install panxapi (part of the PAN-perl package, PAN-perl-20121110.tar.gz) you can do a backup of the configuration this way:
(From 'man panxapi')
Generate an API key.
$ panxapi -l admin:admin -h 172.29.9.122 -k
keygen: success
API key: "0RgWc42Oi0vDx2WRUIUM6A=="
Create a .panrc file with the API key.
$ echo 'hostname=172.29.9.122' >.panrc
$ echo 'api_key=0RgWc42Oi0vDx2WRUIUM6A==' >>.panrc
Retrieve the active configuration and write it to a file.
$ panxapi -srx >fw-backup.xml
show: success
Of course this can then be put into a crontab job which automatically does a backup every day.
If you put it into a script you can also script it to put timestamps on the backup files.
This should also work (if you don't want to use .panrc): panxapi -l admin:password -h 172.29.9.122 -srx > fw-backup.xml
Jo Christian
04-09-2013 07:07 PM
Hi Christian,
Thanks for your suggestion, I will try it today.
By the way, my PAN is 5.0 and where can I download the version you suggested(PAN-perl-20121110.tar.gz)? I can only download older version.
Thanks,
Paul
04-10-2013 05:34 AM
Hello,
You will find it in this thread:
https://live.paloaltonetworks.com/docs/DOC-1910
Or on my dropbox: https://dl.dropbox.com/u/1027606/PaloAlto/PAN-perl-20121110.tar.gz
Jo Christian
04-15-2013 08:50 PM
Hi Christian,
Thanks for your kindly help. I am doing implementation now.
Regards,
Paul
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!