White Papers

3 RESTful Server Configuration with iDRAC RESTful API
Contents
Revisions............................................................................................................................................................................. 2
Executive summary ............................................................................................................................................................. 4
1 Introduction ................................................................................................................................................................... 5
1.1 DMTF Redfish Standard ..................................................................................................................................... 5
1.2 iDRAC with Lifecycle Controller RESTful API .................................................................................................... 6
1.3 Configuring servers with Server Configuration Profiles ...................................................................................... 7
1.3.1 New SCP features for iDRAC7 or iDRAC8, and iDRAC9 .................................................................................. 8
2 Using iDRAC RESTful API with Server Configuration Profiles .................................................................................... 9
2.1 Preparing to use SCP ExportSystemConfiguration method ............................................................................. 10
2.2 Executing iDRAC RESTful API SCP export script ........................................................................................... 11
2.3 Exporting JSON SCP to an HTTP(S) share with iDRAC9 ............................................................................... 15
2.4 Exporting SCP to a streamed local file ............................................................................................................. 18
2.5 Previewing SCP imports with iDRAC RESTful API .......................................................................................... 21
2.6 Importing SCPs with iDRAC RESTful API ........................................................................................................ 25
2.7 Importing SCP with Firmware Repository Update ............................................................................................ 29
2.8 Importing SCP from an HTTP share with iDRAC ............................................................................................. 30
2.9 Importing SCP from a streamed local file ......................................................................................................... 33
2.10 Cloning servers with iDRAC RESTful API ........................................................................................................ 36
2.11 Creating a master image of an already configured server ............................................................................... 36
2.12 Applying a master configuration image to a target server ................................................................................ 39
2.12.1 Modifying the iDRAC IP address to match the clone target ......................................................................... 39
2.12.2 Importing the cloned SCP to the target server ............................................................................................. 40
2.13 Using partial SCP imports ................................................................................................................................ 41
2.14 Creating SCP files for partial imports ............................................................................................................... 41
2.15 Keeping order among server configuration files ............................................................................................... 41
3 Tips, tricks, and suggestions ...................................................................................................................................... 42
4 Summary .................................................................................................................................................................... 45
5 Additional Information ................................................................................................................................................. 46
A.1 Verifying iDRAC RESTful API with Redfish service is enabled ........................................................................ 47
A.2 iDRAC RESTful API SCP Export, Preview, and Import APIs ........................................................................ 49