ONTAP Discussions

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

akitsen
1,669 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.

2 REPLIES 2

Saurabh_Bhattarai
594 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
558 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

Public