Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

Update BIOS from iLO Repository via REST API

 
SOLVED
Go to solution
Highlighted
Frequent Visitor

Update BIOS from iLO Repository via REST API

I can successfully upload the new BIOS to the iLO repo and I am attemping to install from the repo by registering a task.  if I run a POST to the URI  /redfish/v1/UpdateService/UpdateTaskQueue/ using the example I just get a 400 response.

from https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/?python#tasks

 

{
    "Name": "Unique Client supplied friendly name of this task item.",
    "UpdatableBy": [
        "Bmc"
    ],
    "Command": "ApplyUpdate",
    "Component": "<component-name>"
}

 

I am not able to figure out what "<component-name>" is supposed to reference. 

I have tried the name, file name, the unique ID that gets generated under /redfish/v1/UpdateService/ComponentRepository/, ComponentUri, all with no luck.

I can however add a "wait" to the task queue without any issue by posting to /redfish/v1/UpdateService/UpdateTaskQueue/.

 

{
	"Name": "Pause 30 seconds",
	"UpdatableBy": [
		"Bmc"
	],
	"Command": "Wait",
	"WaitTimeSeconds": 30
}

 

 

 

4 REPLIES 4
Highlighted
HPE Pro

Re: Update BIOS from iLO Repository via REST API

Hello njcorwin,

 

The iLO Repository uses filename of the components as the unique key.
No two components can share the same filename and an upload of a file using an existing filename overwrites the existing file.
If the existing file is referenced in a task or install set, it is locked and cannot be replaced.
All HPE supplied components have version information in the filename to avoid any filename conflicts.

>> What is the ExtendedInfo in the MessageID?

please refer:Error messages and registries in the iLO RESTful API in the below link to identify the ExtendedInfo in MessageID.https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#error-messages-and-registries-in-the-ilo-restful-api

By looking in the ExtendedInfo in MessageID you can check what is causing the error.

 

Regards,

 


I am a HPE Employee

Accept or Kudo

Highlighted
Frequent Visitor

Re: Update BIOS from iLO Repository via REST API

I tried with the file name like in this example

{
    "Name": "test",
    "UpdatableBy": [
        "Bmc"
    ],
    "Command": "ApplyUpdate",
    "Component": "A43_1.10_10_29_2019.signed.flash"
}

 

This is the response I get....

{
  "error": {
    "code": "iLO.0.10.ExtendedInfo",
    "message": "See @Message.ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "MessageArgs": [
          "Component"
        ],
        "MessageId": "iLO.2.13.PropertyNotWritableOrUnknown"
      }
    ]
  }
}

 

Highlighted
Frequent Visitor
Solution

Re: Update BIOS from iLO Repository via REST API

I figured it out.  

"Component" in the example is a placeholder.  To update with the file from the repo, I specity the following

{
    "Name": "test",
    "UpdatableBy": [
        "Bmc"
    ],
    "Command": "ApplyUpdate",
    "Filename": "A43_1.10_10_29_2019.signed.flash"
}
Highlighted
HPE Pro

Re: Update BIOS from iLO Repository via REST API

Hi njcorwin,

Thats great, you were able to update the BIOS.

Regards,


I am a HPE Employee

Accept or Kudo