HP VAN SDN Controller Administrator Guide v3

5. Acquire the controller uid for the controller backup:
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request GET --url
https://<controller_ip>:8443/sdn/v2.0/systems
6. Use the following cURL command to set the IP address:
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request PUT
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>"
--data-binary '{"system":{"ip":"<controller_ip>"}}'
7. Perform a single controller restore onto each controller needing restoration.
a. Upload the backup files that will be restored:
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
where <file-name> is just the name of the file and <path-and-file-name> is the full path to the
file and the filename. This should match the <path-and-file-name> used for the .zip file during
the backup. The filename MUST match the name you used during the backup.
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
where <file-name> is just the name of the file and <path-and-file-name> is the full path to the
file and the filename. This should match the <path-and-file-name> used for the .zip.MD5 file
during the backup. The filename MUST match the name you used during the backup.
b. Initiate the 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"
8. For a controller team, wait for HA synchronization to complete to all the controllers and wait
for the team to become connected. The team can take a few minutes to come back up. Be
sure to verify that team status has all controllers as ACTIVE.
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksSfL --request GET --url
"https://<controller_ip>:8443/sdn/v2.0/systems
If less than a quorum of controllers are restored, then those controllers will be updated to
the latest state of the running team via HA synchronization. (A quorum is n/2+1 where
n is the total number of controllers in a team. In a three-controller team, a quorum is two
controllers.)
If the entire team is restored, then each controller will be reset to the previous backed-up
state.
98 Backup/Restore