NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Anyone have config-backup-upload via OnTAP API working ?

akitsen
4,529 Views

I'm trying to pull the most recent configuration backup from my clustered netapp.

 

7mode allows you to do a simple 'config dump' but looks like its a bit trickier to get for CDOT.

 

Does anyone have experience/knowledge on pulling CDOT config backup files via the API ?

 

Thank you.

3 REPLIES 3

Saurabh_Bhattarai
3,450 Views

Did you get any traction on this? Is it possible to upload Cdot Netapp config via API. I don't want to use webserver or ftp server and want to directly upload to a local machine.

ahmada
3,414 Views

Back in the days I did something to save the backup file to a volume, then the volume was backed up to tape. I used the following commands

 

set diagnostic

systemshell -node NAPP12 -command sudo cp -rf /mroot/etc/backups/config/NAPP_Cluster2.8hour.2023-03-22.18_15_00.7z /clus/SVM1/cluster_backup/


and from powershell it was something like : -

Connect-NcController ClusterDNSname

$file = Get-NcConfigBackup |Sort-Object -Descending created|Select-Object -First 1

$cmd = "set diag -confirmations off;systemshell -node cluster1-01 -command sudo cp -rf /mroot/etc/backups/config/"+$file.backupname+" /clus/Svm1/cluster_backup/"

 

invoke-ncssh $cmd

chenguanghui
2,381 Views

hello:

     extract the configuration file  backup in CDOT  which can only be upload to a remote server using http,ftp,tftp,tftps,and then download locally.

 The following article is the basic concept and operation steps

https://docs.netapp.com/zh-cn/ontap/system-admin/config-backup-file-concept.html

Public