You can upload upgrade candidates (software or firmware) and language packs to the storage system to make them available to install. To install an uploaded file, create a new
candidateSoftwareVersion instance.
NOTE When you upload an upgrade candidate file onto the storage system, it replaces the previous version. There can only be one upgrade candidate on the system at a time.
For information about the
candidateSoftwareVersion resource type, see the
Unisphere Management REST API Reference Guide.
Syntax
To upload a system software upgrade candidate or language pack file, use the following components:
You must post the upgrade file using a multipart/form-data format as if from a simple web page form, like that shown in the following example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<form enctype="multipart/form-data" method="post"
action="https://<IP_address>/upload/file/types/candidateSoftwareVersion">
<input type="file" name="filename>"/>
<input type="submit"/>
</form>
</body>
</html>
A successful upload request returns
200 OK HTTP status code. If the request does not succeed, the server returns a
4nn or
5nn HTTP status code in the response header and a message entity in the response body.
Example
The following example uploads the upgrade candidate file
update1.gpg from the local host to the storage server: