Importing Cisco Imc Configuration Status; Setting An Asset Tag Value - 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
Response:
Note: curl with verbose option enabled receives an http
response '202 Accepted' for the above query.

Importing Cisco IMC Configuration Status

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

Setting an Asset Tag Value

Request:
curl -XPATCH https://10.10.10.10/redfish/v1/Systems
/FCH2005V1E4 -d '{"AssetTag":"Cisco123"}' --insecure -u admin:password
Response:
{
"SerialNumber":"FCH2005V1E4",
"Boot":{
"BootSourceOverrideEnabled":"Disabled",
"BootSourceOverrideTarget":"None"
},
"Id":"FCH2005V1E4",
"AssetTag":"Cisco123",
"PowerState":"On",
"SystemType":"Physical",
"ProcessorSummary":{
"Model":"Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz",
"Count":2
},
"HostName":"C240-FCH2005V1E4",
"MemorySummary":{
"TotalSystemMemoryGiB":128,
"State":{
"HealthRollup":"OK",
"Health":"OK"
}
Cisco UCS C-Series Servers REST API Programmer's Guide
32
Cisco IMC REST API Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents