Software/Firmware Upgrade through API
Configuration Backup
Although the system configuration will not change upon the software upgrade, creating a backup file of the configuration is mandatory by exporting the complete configuration before any software upgrade.
The MCM-9000 software is delivered on a USB Flash disk (DoK). Besides Online and Offline Software Upgrade, it is possible to do software upgrades through API.
To perform a Software or Firmware upgrade through API, follow the below steps:
1. Download Latest Files
Login to TagVS Storage Center and download the latest files: "MCM-9000_vxxxx.rar" (software) and "Firmware_vxxxx.rar" (firmware).
2. Upload Software to Device
Use the following command to upload software to the GUI.
POST Resource URL : http://{host}/api/2.0/system_files/command/UploadFile/software
Please refer to API documentation here.
For Example, http://192.168.10.131/api/2.0/system_files/command/UploadFile/software
Under the body section on the POSTMAN, insert the KEY as data[File][0], upload the MCM file to upgrade under the VALUE field as shown below, and click Send.
3. Select the next boot image
Use the following command to GET “next_boot_image“ from the response.
GET Resouce URL : http://{host}/api/2.0/devices/{id}/.json
Please refer to API documentation here.
For example, http://192.168.10.131/api/2.0/devices/9898/.json
The “next_boot_image” id is needed in step 4 to select the right image to be upgraded.
4. Set next boot image from the dropdown
By default the current image is choosen in the dropdown list of the Next Boot Image. To choose the latest image uploaded use the image_id. Here, the latest image to be upgraded is the Image-2 | firmware:1.1.8 software:6.3.7. Hence, image_id = 2. (image_id is the id from next_boot_image in step 3)
Use the following command to choose the image from the drop down list.
GET Resource URL : http://{host}/api/2.0/devices/switchBootImage/{image_id}/.json
Please refer to API documentation here.
For example, http://192.168.10.131/api/2.0/devices/switchBootImage/2/.json
5. Finally reboot the System
Use the following command to reboot the System.
GET Resource URL : http://{host}/api/2.0/devices/command/hardReset/.json
Please refer to API documentation here.
For example, http://192.168.10.131/api/2.0/devices/command/hardReset/.json