HP Insight Control Server Provisioning 7.3 Update 1 Administrator Guide

DescriptionREST component
content-type: multipart/form-data
accept-language: en-us (optional)
auth: <user-authorization-token>
None, but use —F option to supply form data with the absolute path of the
IC-server-provisioning-7.3.1update.bin update file to upload, depending on
your system type as follows, for example:
Request Body:
-F file=”@c:/IC-server-provisioning-7.3.1-update.bin” (Windows)
-F file="@/home/user/IC-server-provisioning-7.3.1–update.bin" (Linux)
An example of the response is shown below, file name and version will depend on the upload:Response Body:
{"fileName":"IC-server-provisioning-7.3.1-update.bin","version":"7.3.1-58602",
"preupgradeTimeout":1800000,"rebootRequired":true,"estimatedUpgradeTime":110}
When a successful Response Body has been seen, like the above, after about 10-15 minutes,
you can proceed to use the UI to install the update. From the Settings screen, select
ActionsUpdate Appliance. You should see information stating that the update file has been
uploaded. You can then select the Install update button to continue the update process as usual.
The following illustrates how to Invoke the cURL with its associated response.
cURL command on Linux:
# curl -i -k -H "accept: application/json" -H "content-type: multipart/form-data" -H "accept-language: en-us"
-H "auth: <user-authorization-token>"
-F file="@<path to the update file>" -X POST https://<appliance-hostname-or-address>/rest/appliance/firmware/image
HTTP/1.1 100 Continue
Response on success:
HTTP/1.1 200 OK
Date: Thu, 23 May 2013 18:18:07 GMT
Content-Type: application/json
Via: 1.1 cic.dns.hp
cache-control: no-cache
Transfer-Encoding: chunked
{"fileName":"IC-server-provisioning-7.3.1-update.bin","version":"7.3.1-58602","rebootRequired":false,"estimatedUpgradeTime":15}
114 Advanced topics