Start the device.
Before using a USB flash drive to upgrade a device, make an index file and save the index file and files to be loaded to the USB flash drive. Then connect the USB flash drive to the device to start the upgrade.
The USB-based deployment function is disabled by default. It is recommended that you disable this function after a USB-based deployment is complete. If a device has no configuration file, the USB-based deployment function is always enabled on the device.
(Optional) Run the set device usb-deployment config-file password password command to configure an encryption password for the configuration file.
If upgrade files include a configuration file, it is recommended that you run this command to configure an encryption password for the configuration file and compress the configuration file using the configured password before saving it in the USB flash drive. This configuration improves security. This step is mandatory if HMAC verification is required for the configuration file.
During USB-based deployment, if HMAC verification is enabled on a device, the device uses the HMAC key configured using the set device usb-deployment hmac-key command to calculate the HMAC value for the configuration file to be loaded, and compares the calculated value with the HMAC field value in the index file. If the two values are the same, the configuration file is valid and loaded to the device for USB-based deployment. If the two values are different, the configuration file is invalid and cannot be loaded for USB-based deployment.
(Optional) Run the set device usb-deployment hmac command to enable HMAC verification for configuration files.
If upgrade files include a configuration file, you can enable HMAC verification to ensure validity of the configuration file to be loaded.
Make an index file.
For details, see Making an Index File.
Devices to be deployed are unconfigured devices and do not have security measures configured. Therefore, when onsite non-professionals perform deployment task, ensure that they do not perform any unauthorized operations on the devices, USB flash drive, and deployment files.
During the upgrade, the system obtains the upgrade files according to the description in the smart_config.ini file and saves the files in the default storage medium. In a stack, the master switch copies the upgrade files to all the member switches.
After all the required files are copied, the system activates the files using the method specified in the ACTIVEMODE field.
If an upgrade requires the device to restart, the device waits 10 seconds before a restart. In this period, the USB indicator is steady yellow.
# Observe the SYS indicator on the S6720S-EI, S5720I-6X-PWH-SI-AC, or S5720I-10X-PWH-SI-AC to determine the progress of USB-based deployment:
Slow blinking yellow (once every 2s): The USB-based deployment has succeeded.
Fast blinking green (four times every 1s): The system is reading data from the USB flash drive.
Fast blinking red (four times every 1s): USB-based deployment has failed.
Observe the USB indicator to determine the progress of USB-based deployment (except S5720I-6X-PWH-SI-AC and S5720I-10X-PWH-SI-AC).
If the USB-based deployment succeeds, the system creates a deployment success report usbload_verify.txt in the root directory of the USB flash drive. You can remove the USB flash drive now.
If the USB-based deployment fails, the system creates an error report usbload_error.txt in the root directory of the USB flash drive. View the report to analyze cause of the deployment failure.