Administrator Guide

8
ServerCloningwithServerConfigurationProfiles
TheWinrmWS‐Mancommandfor
Preview
is:
winrm i ImportSystemConfigurationPreview http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService?SystemCreationClassName=DCIM_ComputerSystem+CreationCla
ssName=DCIM_LCService+SystemName=DCIM:ComputerSystem+Name=DCIM:LCService -u:root -
p:calvin -r:https://192.168.0.10/wsman -SkipCNCheck -SkipCACheck -encoding:utf-8 -a:basic
@{IPAddress="192.168.100.50";ShareName="/nfs";ShareType="0";FileName="Preview-test.xml"}
TheRACADMcommandfor
Preview
is:
racadm set -f myfile.xml -t xml -u myuser -p mypass -l //192.168.100.50/myshare –preview
Inresponsetoa
Preview
command,ajobIDisreturned,andthejobstatuscommandscanbeusedtocheckstatusof
theimportoperation.
Preview
ensuresthatthechangesareanalyzedasapplicabletothetarget,butthetargetsystemisundisturbed.This
willnotcauseanyrebootsorapplicationofthesettingsspecifiedbytheSCPonthetargetsystem.
Whenthe
Preview
iscompleted,anyerrorsareloggedtotheLifecycleControllerLog,andcanbeviewedbyrunninga
Winrm
GetConfigResults
commandorbyexp ortingtheLifecycleControllerLogandsearchingforthePreviewJob
ID.
TheentriesinLifecycleControllerLogwillalsoindicateifasystemrebootwillberequiredto applythechangesas
specifiedintheSCP,aswellastheestimatedtimetoapplythechanges.
TheWinrmWS‐Mancommandtoretrievethe
Preview
resultsforagivenjobIDis:
winrm i GetConfigResults "http://schemas.dell.com/wbem/wscim/1/cim-
schema/2/DCIM_LCRecordLog?InstanceID=DCIM:LifecycleLog+ cimnamespace=root/dcim” -u:root
-p:calvin -r:https://192.168.0.10/wsman -encoding:utf-8 -a:basic -SkipCNcheck -
SkipCAcheck @{JobID="JID_123456789"}
AndtoretrievethePreviewresultswithRACADM:
racadm jobqueue view -i <JOB ID>
Afterthe
Preview
,theusermaychoosetodeletethe“Component”sectionsintheSCPfilethatarenotapplicableto
thetargetsystemorkeeponlythespecificsectionsthatshouldbeappliedtothetarget–forexample,copyonlythe
BIOSsettingsfromonesystemtoanother.Thiscanbe
accomplishedbyeditingtheSCPandusingtheappropriate
Importcommands.