Exporting Cisco Imc Configuration; Exporting Cisco Imc Configuration Status; Importing Cisco Imc Configuration - Cisco UCS C Series Programmer's Manual

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

Advertisement

Cisco IMC REST API Examples
"Protocol":"scp",
"RemoteUsername":"mike"
},
"Description":"BMC Technical Support Export"
}

Exporting Cisco IMC Configuration

Request:
curl -POST https://10.10.10.10/redfish/v1/Managers/CIMC/Actions/
Oem.ExportBmcConfig -d '{"RemoteHostname":"10.10.10.10",
"RemotePath":"/home/mike/dan/cimc_export.xml","Passphrase":"testtest",
"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.

Exporting Cisco IMC Configuration Status

Request:
curl -GET https://10.10.10.10/redfish/v1/TaskService/Tasks/
ExportBmcConfig --insecure -u admin:password
Response:
{
"@odata.id":"/redfish/v1/TaskService/Tasks/ExportBmcConfig",
"Name":"Task ExportBmcConfig",
"@odata.context":"/redfish/v1/$metadata#TaskService/Tasks/Members/$entity",
"TaskStatus":"OK",
"@odata.type":"#Task.1.0.0",
"Id":"ExportBmcConfig",
"TaskState":"Completed",
"Oem":{
"ExportStatus":"Completed"
},
"Description":"Export BMC Configuration"
}

Importing Cisco IMC Configuration

Request:
curl -POST https://10.10.10.10/redfish/v1/Managers/CIMC/Actions/
Oem.ImportBmcConfig -d '{"RemoteHostname":"10.10.10.10",
"RemotePath":"/home/mike/tom/cimc_export.xml",
"Passphrase":"testtest","Protocol":"scp",
"RemoteUsername":"mike",
"RemotePassword":"1234game"}' --insecure -u
admin:password
Cisco UCS C-Series Servers REST API Programmer's Guide
Examples of Server Tasks
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents