White Papers

43 RESTful Server Configuration with iDRAC RESTful API
response_output=response.__dict__
if response.status_code == 400:
print "- ExportSystemConfiguration method failed to return job ID"
get_error_string=response_output["_content"]
message=re.search("@Message.ExtendedInfo.+?,",get_error_string).group().strip
("@Message.ExtendedInfo\":[{")
print "- Error message is: \"%s\"" % message.strip(".\",")
sys.exit()
else:
pass
job_id=response_output["headers"]["Location"]
job_id=re.search("JID_.+",job_id).group()
print "- Job ID is: %s" % job_id
Example of running the script:
$ redfish_SCP_script.py
- ExportSystemConfiguration method failed to return job ID
- Response status code is: 400
- Error message is: "The value FTP for the property ShareType is not in the
list of acceptable values"
$
3. Detailed information about completed SCP operations are recorded in the Lifecycle Controller (LC) Log.
The LC Log can be viewed using the iDRAC GUI, appropriate WS-Man API calls, or RACADM CLI
commands.
4. When a job fails, the Redfish Task Service provides an error key shown as MessageId below. Details
about the MessageId can be found in the Event and Error Message Reference Guide for 13th Generation
Dell PowerEdge Servers . The following example shows an SCP export Job ID failure purposely caused
by passing an invalid network share IP address. The error message ID is highlighted
$ rest_get_job_id.py JID_744092584176
- Command passed, code 200 returned
{
u '@odata.type': u '#Task.v1_0_2.Task',
u 'Description': u 'Server Configuration and other Tasks running on iDRAC are listed
here',
u 'TaskState': u 'Completed',
u 'Messages': [{
u 'Message': u 'Unable to copy the system configuration XML file to the network
share.',
u 'MessageId': u 'SYS045',
u 'MessageArgs': [],
u 'MessageArgs@odata.count': 0