Web Services Interface Guide

Dell™ Lifecycle Controller 2 Web Services Interface Guide for Linux Version: 2.1.0
217
18.1.3 Exporting Server Profile to CIFS Share-BackupImage()
CIFS Share:
ShareType is “2”. The entire “Passphrase="passphrase";” argument is optional.
EXAMPLE:
wsman invoke -a BackupImage http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService
?SystemCreationClassName=DCIM_ComputerSystem,
CreationClassName=DCIM_LCService,SystemName=DCIM:ComputerSystem,
Name=DCIM:LCService -h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME p $PASSWORD -j utf-8 -y basic
-k IPAddress="[SHARE_IPADDRESS] " -k ShareName="/[DRIVESHARE]"
-k ShareType="2" -k Username="[SHARE_USERNAME]"
-k Password="[SHARE_PASSWORD]" k Passphrase="[PASSPHRASE]" -k ImageName="[IMAGENAME]" k
ScheduledStartTime="TIME_NOW"
NOTE: The ShareName field should only be the folder exposed by the system to the network. Any sub
folder information should be attached to the ImageName field. Otherwise, there can be connection
issues when trying to locate/create the backup file.
Correct Example: ShareName=”/folder1”;ImageName=”subfolder/image_name”
In-Correct Example: ShareName=”/folder1/subfolder”;ImageName=”image_name”
OUTPUT:
<n1: BackupImage_OUTPUT>
<n1:Job>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
<wsa:ReferenceParameters>
<wsman:ResourceURI>http://schemas.dell.com/wbem/wscim/1/cim-
schema/2/DCIM_LifecycleJob</wsman:ResourceURI>
<wsman:SelectorSet>
<wsman:Selector Name="InstanceID">JID_001300820180</wsman:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Selector>
</wsman:SelectorSet>
</wsa:ReferenceParameters>
</n1:Job>
<n1:ReturnValue>4096</n1:ReturnValue>