White Papers
39 Implementation of the DMTF Redfish API on Dell EMC PowerEdge Servers
- Query job ID command passed
- Job ID = JID_956512038576
- Name = Firmware Update: Diagnostics
- Message = Job completed successfully.
- JobStatus = Completed
- JID_956512038576 completed in: 0:00:15
- WARNING, checking new firmware version installed for updated device
- PASS, New installed FW version is: 4301X06
C:\Python26>
3.3.15 Extended information
When errors occur during operations, Redfish provides Extended Information detailing the error. iDRAC
includes a Dell EMC-provided Message Registry, accessible by the MessageId returned as part of the
Extended Information, that gives direction for resolution of the error.
The following is a Python scripting example illustrating Extended Information:
import requests
import json
url = 'https://<iDRAC
IP>/redfish/v1/Managers/iDRAC.Embedded.1/SerialInterfaces/iDRAC.Embedded.1%23Ser
ial.1'
payload = {'BitRate':19200}
headers = {'content-type':'application/json'}
response =
requests.patch(url,data=json.dumps(payload),headers=headers,verify=False,auth=('
root','calvin'))
print "Status Code:{}".format(response.status_code)
print "Extended Error Message:{}".format(response.json())
The above script updates the property BitRate to the value 19200, a valid setting.