Reference Guide

30 RESTful Server Configuration with iDRAC RESTful API
<Attribute Name="ThermalHistorical.1#IntervalInSeconds">0</Attribute>
<Attribute Name="PowerHistorical.1#IntervalInSeconds">0</Attribute>
<Attribute Name="RepositoryUpdate">Profiles/Repositories/</Attribute>
</Component>
</SystemConfiguration>
If our <Share name> is called “http_root” we can use “find” to display the directories and files to get an idea of
the folder structure.
[root@localhost http_root]# find .
.
./Profiles
./Profiles/Repositories
./Profiles/Repositories/BIOS_firmware_WN64_1.0.3.EXE
./Profiles/Repositories/Catalog.xml
./Profiles/SCP_with_firmware_repo.xml
Running an import of this SCP file will result in a Repository update job as per the below iDRAC9 screenshot:
2.8 Importing SCP from an HTTP share with iDRAC
Importing an SCP file from a HTTP(S) server is supported by iDRAC9. The below script demonstrates this
with parameters input for the iDRAC IP and an SCP import filename.
Script: redfish_SCP_import_http.py
# Python script using Redfish API to perform iDRAC feature
# Server Configuration Profile (SCP) for import only
import requests, json, sys, re, time
from datetime import datetime
try:
idrac_ip = sys.argv[1]
idrac_username = sys.argv[2]
idrac_password = sys.argv[3]