HP Insight Control Server Provisioning 7.2 Administrator Guide

The following table provides an overview of the functions in the sample script.
OutputParametersDescriptionFunction
loginVals: a hash table
that contains the information
obtained from user.
N.A.Obtains information from
user needed to interact with
appliance.
query-user
authInfo: the response
body returned by the remote
username: the user name
obtained from query-user
function.
Sends the user name and
password to the appliance,
and obtains an authorized
session ID.
login-appliance
appliance, which includes
the sessionID.
password: the password
obtained from query-user
function.
hostname: the address of
the appliance to send the
login request to.
uploadResponse: the
response body for the
filePath: The absolute file
path to the backup file.
Uploads the designated
backup file to the remote
appliance.
uploadTo-appliance
upload request, which
authInfo: The session ID
from the login response.
contains the backup ID to be
restored.
hostname: The address of
the appliance to upload the
file to.
backupFile: The name of
the file being uploaded.
restoreResponse: The
response body from the
authInfo: The session ID
from the login response.
Sends the request to restore
the appliance from the
backup.
start-restore
restore request, which
hostname: The address of
the remote appliance to
send the request to.
contains the ID of the
ongoing restore.
uploadResponse: The
response body of the upload
request.
N.A.authInfo: the session ID
obtained from the login
request.
Checks the appliance for the
status of the ongoing restore.
Displays a progress status
bar.
restore-status
hostname: the address of
the remote appliance to
send the request to.
restoreResponse: The
response body from the
restore request.
recoveredUri: The full
URI needed to get restore
status (only used when
opening the script with the
status flag).
Returns the URI of the last or
ongoing restore.
hostname: The remote
appliance to send the
request to.
Used for when the
connection is interrupted or
the script closed. Sends a
request to the server to get
recover-restoreID
the URI of the ongoing
restore task, and then passes
the information to
restore-status.
22 Backing up and restoring your appliance