HP VAN SDN Controller Administrator Guide

79
Acquire the controller uid for the controller backup:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksS -L -f
--request GET --url "https://<controller_ip>:8443/sdn/v2.0/systems"
Perform the actual backup using the following cURL command:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksS --
request POST --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/action" --data-binary
"backup"
Verify Controller Status:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksS -L -f
--request GET --url "https:// <controller_ip>:8443/sdn/v2.0/systems"
Verify Backup Status:
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>"
https://<controller_ip>/sdn/v2.0/backups/<backup_token> -ksS fail request GET
Download Zip and MD5 Backup Files to Another Device
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksSfL --
request GET --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup?csum=false" >
<path-and-file-name>.zip
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksSfL --
request GET --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup?csum=true" >
<path-and-file-name>.zip.MD5
Upload Backup Zip and MD5 Files from Another Device
The files uploaded should be in the format sdn_controller_backup_<controller_ip>.zip and
sdn_controller_backup_<controller_ip>.zip.MD5
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup" -H "X-Auth-
Token:<auth_token>" -H HP-filename:<file-name>.zip --data-binary @<path-and-file-
name>.zip
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/backup" -H "X-Auth-
Token:<auth_token>" -H HP-filename:<file-name>.zip.MD5 --data-binary @<path-and-file-
name>.zip.MD5
Initiate Restore
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksS --
request POST --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/action" --data-binary
"restore"