Die folgenden Redfish-Befehle können verwendet werden, um die Startreihenfolge des Systems aus der Ferne zu ändern.
CURL-Befehl in einem Linux* System zum Lesen der Redfish API-Details eines Remote-Systems.
Die Aktivität erfordert, dass Python3*, Curl* und jq im System installiert sind.
Befehl:
[root@ocsbesrhlrepo01 ~]# curl -k -u username: password https://<ip address> /redfish/v1/Systems -H "content-type:application/json" -X GET | python3 -m json.tool
Ausgang:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460 100 460 0 0 218 0 0:00:02 0:00:02 --:--:-- 218
{
"@odata.context": "/redfish/v1/$metadata#ComputerSystemCollection.ComputerSystemCollection",
"@odata.id": "/redfish/v1/Systems",
"@odata.type": "#ComputerSystemCollection.ComputerSystemCollection",
"Name": "Computer System Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Systems/............"
}
],
Befehl:
[root@ocsbesrhlrepo01 ~]# curl -k -u username: password https://<ip address>/redfish/v1/Systems/............ -H "content-type:application/json" -X GET | python3 -m json.tool
Ausgabe:
"BootOrder": [
"UEFI INTEL SSDSCKKB240G8 PHYH02610986240J ",
"Enter Setup",
"Boot Device List",
"Network Boot",
"UEFI Internal Shell"
Befehl:
curl -k -u username: password https://<ip address>/redfish/v1/Systems/............ -H "content-type:application/json" --data '{"Boot":{"BootSourceOverideEnabled":"Continuous", "BootSourceOverrideTarget":"None", "BootOrder":["UEFI Internal Shell"]}}' -X PATCH | python3 -m json.tool
Befehl:
curl -k -u username: password https://<ip address>/redfish/v1/Systems/............/Actions/ComputerSystem.Reset -H "content-type:application/json" --data '{"ResetType":"ForceRestart"}' -X POST | python3 -m json.tool