White Papers

28 RESTful Server Configuration with iDRAC RESTful API
data = req.json()
print "Job ID = "+data[u"Id"]
print "Name = "+data[u"Name"]
print "Message = "+data[u"Messages"]
print "JobStatus = "+data[u"TaskState"]
Now we will execute the above import script. After the import job is marked complete, failed, or completed
with errors, we will execute the RACADM command lclog viewconfigresult to get more information on the
import job.
$ python ./redfish_SCP_import_cifs.py 192.168.0.120 root calvin
jwr_rf_exp.v3_02.xml
- JID_968067831986 successfully created for ImportSystemConfiguration method
- Query job ID command passed
- Job not marked completed, current status is: Running
- Message: Importing Server Configuration Profile.
- Query job ID command passed
- Job ID = JID_968067831986
- Name = Import Configuration
- Message = Successfully imported and applied Server Configuration Profile.
- JID_968067831986 completed in: 0:00:13
$ racadm -r 192.168.0.120 u user -p password lclog viewconfigresult -j
JID_743455085871
SeqNumber = 34771
FQDD = LifecycleController.Embedded.1
Job Name = Import Configuration
DisplayValue = Collect System Inventory on Restart
Name = LCAttributes.1#CollectSystemInventoryOnRestart
OldValue = Enabled
NewValue = Disabled
Status = Success
ErrCode = 0
$