02-13-2022 03:11 AM - edited 02-13-2022 03:12 AM
Hi Experts ,
Can we export the configuration snapshot file using winscp ?
I have configured a tenant with name SAROVANI ..now I have taken the snapshots as shown in below ...But I am unable to export the file to my local machine ..
Can I export these file using winscp ? if yes , what will be the path ?
02-13-2022 12:11 PM - edited 02-13-2022 08:51 PM
Hi @Network_Sarovani ,
You can't (AFAIK) copy the snapshot from the APIC as simply as that. [edit: See @Sergiu.Daniluk 's reply below for a more knowledgeable view about this]
BUT you can set up your PC to be the target of the snapshot process. But you need to run a FTP server (such as FileZilla FTP server) on your PC
Name: MyPC_FTP.Loc
Host Name (or IP address): <IP Address of your PC - if using DevNet sandbox, your VPN IP>
Protocol: ftp
Username: <Whatever you set up on your FTP Server>
Password: <Whatever you set up on your FTP Server>
Name: MyFavourite_ConfigExportPol
Format: JSON
Start Now: Yes
Export Destination: MyPC_FTP.Loc. (As specified above)
Confirm the backup Job ran successfully and file has been uploaded to your local PC
The backup will be a tarball in gzip format, so you'll have to unzip it then un-tar it. I run macOS, so I have built in commands to do this, on a Windows PC you'll probably need a 3rd party app to do this.
02-13-2022 08:43 PM
Though I recommend the way Chris described to collect the snapshots, you can however collect all the snapshots from APIC directly using scp (winscp tool in your case). The location of the snapshots is /data2/snapshots/
apic3# cd /data2/snapshots/ apic3# ls ce2_DailyAutoBackup-2022-02-13T09-00-16.tar.gz
ce2_defaultOneTime_tn-BCR-2021-07-19T16-40-37.tar.gz ce2_defaultOneTime_tn-BCR-2021-08-13T16-25-12.tar.gz
Cheers,
Sergiu
02-13-2022 08:50 PM
Well there you go! I just learned something new too
@Sergiu.Daniluk's answer is better than mine!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide