White Papers
Import and Export of Secure Server Profiles
10
Parameters:
Storage Location
Transport Protocol
Access credential (Username and Password)
Passphrase for the image
Once a RestoreImage method is called, it will validate input parameters and create a Restore job if
valid parameters have been collected. If there are missing or incorrect parameters, the provider will
return an error, and a modified request would need to be sent. Once the request is validated, the
system would stage the import request information and send a job id back to the system. The user can
then use the job id to schedule the operation or track the export status.
A WSMAN command can be sent either through OpenWSMAN client in Linux or through winrm in
Windows. The syntax of an export WSMAN request can be found in the Web Services Interface Guide.
Once a job starts, the user may query the status and progress of the job using the JobControl
provider’s job status method. The response would include the job message and progress information.
Refer to Job Control provider for more information on how to query job status.
Using Python sample scripts
The python sample script for restore is similar to the script used for backup. To start a restore image
process, simply invoke the script:
restore_image.py
You can get a help option using –h.
One example of the backup is shown with the following syntax:
restore_image.py –i TargetIP –u UserName –p Password –f restore_setting.txt
Where TargetIP is the IP address of the target system, and UserName and Password are the login
credentials for the iDRAC
Restore_setting.txt is the restore operation settings. A sample restore setting is shown below:
# Sample input file for restore image
#
# ShareType - 0:NFS, 2:CIFS, 4:VFlash
# Examples:
# NFS - ImageName,IPAddress,ShareName are required
ShareType=0
ImageName=bk_20111130.img
IPAddress=192.168.0.77










