White Papers
15 RESTful Server Configuration with iDRAC RESTful API
$ python ./redfish_SCP_export_cifs.v3.py 192.168.0.120 root calvin
jwr_rf_exp.v3_02.xml
- JID_967992694673 successfully created for ExportSystemConfiguration method
- Query job ID command passed
- Job not marked completed, current status is: Running
- Message: Exporting Server Configuration Profile.
- Query job ID command passed
Job ID = JID_967992694673
Name = Export: Server Configuration Profile
Message = Successfully exported Server Configuration Profile
JobStatus = Completed
JID_967992694673 completed in: 0:00:13
$
2.3 Exporting JSON SCP to an HTTP(S) share with iDRAC9
Serving SCP files from a web server can be a useful way to provide easy-access to configuration files for a
fleet of servers. The following script will export the SCP to a web server and takes the following as input
variables:
iDRAC IP address,
Method or action (Import or Export)
A file name for the JSON or XML file to be imported / exported
Hardcoded values are present for:
The iDRAC username and password
The Web server IP address
The Web server folder name
Data format (Currently JSON but can be set to XML)
Note that it is exporting in Default mode which will result in a non-destructive SCP file when imported into
another server. Alternatively Clone or Replace can be used to enable settings which may destroy data – for
example by reconfiguring RAID volumes.
Either HTTP or HTTPS can be used; for this example HTTP is hardcoded in the script.