From 4b7fcd6212541020135d21f07cf590657bbcf29b Mon Sep 17 00:00:00 2001 From: Anthony Wilson Date: Wed, 13 Mar 2019 15:36:29 -0500 Subject: redfish: Update for system and logging changes Updated to reflect the latest developments in Systems and LogServices: openbmc/bmcweb: 029573: bmcweb: Implement single Redfish "system" endpoint 323893: Initial redfish logging support Change-Id: I8995e7f76d742bbbba49c352b30b9c539982fc77 Signed-off-by: Anthony Wilson --- REDFISH-cheatsheet.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/REDFISH-cheatsheet.md b/REDFISH-cheatsheet.md index 7f3bad9..4a30c7f 100644 --- a/REDFISH-cheatsheet.md +++ b/REDFISH-cheatsheet.md @@ -30,31 +30,31 @@ commands for OpenBMC usage. * Host soft power off: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/1/Actions/ComputerSystem.Reset -d '{"ResetType": "GracefulShutdown"}' + $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/system/Actions/ComputerSystem.Reset -d '{"ResetType": "GracefulShutdown"}' ``` * Host hard power off: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/1/Actions/ComputerSystem.Reset -d '{"ResetType": "ForceOff"}' + $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/system/Actions/ComputerSystem.Reset -d '{"ResetType": "ForceOff"}' ``` * Host power on: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/1/Actions/ComputerSystem.Reset -d '{"ResetType": "On"}' + $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/system/Actions/ComputerSystem.Reset -d '{"ResetType": "On"}' ``` * Reboot Host: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/1/Actions/ComputerSystem.Reset -d '{"ResetType": "GracefulRestart"}' + $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/system/Actions/ComputerSystem.Reset -d '{"ResetType": "GracefulRestart"}' ``` * Display logging entries: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/redfish/v1/Systems/1/LogServices/SEL/Entries + $ curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog/Entries ``` * Delete logging entries: ``` - $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/1/LogServices/SEL/Actions/LogService.Reset + $ curl -k -H "X-Auth-Token: $bmc_token" -X POST https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.Reset ``` [1]: https://www.dmtf.org/standards/redfish -- cgit v1.2.1