Triggering Cisco Imc Technical Support; Retrieving Cisco Imc Technical Support Status - Cisco UCS C Series Programmer's Manual

Rest api
Hide thumbs Also See for UCS C Series:
Table of Contents

Advertisement

Examples of Server Tasks
curl -GET https://10.10.10.10/redfish/v1/TaskService/Tasks/
BmcFwUpdate --insecure -u admin:password
Response:
{
"@odata.id":"/redfish/v1/TaskService/Tasks/BmcFwUpdate",
"Name":"Task BmcFwUpdate",
"@odata.context":"/redfish/v1/$metadata#TaskService/Tasks/Members/$entity",
"TaskStatus":"OK",
"@odata.type":"#Task.1.0.0",
"Id":"BmcFwUpdate",
"TaskState":"Running",
"Oem":{
"FWVersion":"3.0(0.369)",
"UpdateStatus":"Downloading (5%)"
},
"Description":"Cisco IMC backup firmware version"
}

Triggering Cisco IMC Technical Support

Request:
curl -POST https://10.10.10.10/redfish/v1/Managers/CIMC/Actions/
Oem.BmcTechSupportExport -d '{"RemoteHostname":"10.10.10.10",
"RemotePath":"/home/mike/dan/techSupport.tar.gz",
"Protocol":"SCP","RemoteUsername":"mike",
"RemotePassword":"1234game"}' --insecure -u admin:password
Response:
Note: curl with verbose option enabled receives an http
response '202 Accepted' for the above query.

Retrieving Cisco IMC Technical Support Status

Request:
curl -GET https://10.10.10.10/redfish/v1/TaskService/Tasks/
BmcTechSupportExport --insecure -u admin:password
Response:
{
"@odata.id":"/redfish/v1/TaskService/Tasks/BmcTechSupportExport",
"Name":"Task BmcTechSupportExport",
"@odata.context":"/redfish/v1/$metadata#TaskService/Tasks/Members/$entity",
"TaskStatus":"OK",
"@odata.type":"#Task.1.0.0",
"Id":"BmcTechSupportExport",
"TaskState":"Running",
"Oem":{
"RemoteHostName":"10.10.10.10",
"RemotePath":"/home/mike/dan/techSupport.tar.gz",
"ExportStatus":"Collecting Data (0%)",
Cisco UCS C-Series Servers REST API Programmer's Guide
30
Cisco IMC REST API Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents