As shown in Figure 1, the FW has been connected to the network. The device now needs to be managed by the cloud management platform, which will fulfill the function of delivering the device service configuration. To quickly switch the device to the cloud management mode, you can use the USB-based upgrade function to switch the device running mode.
BEGIN
[USB CONFIG]
SN=time
[UPGRADE INFO]
OPTION=AUTO
DEVICENUM=1
RUNMODE=CLOUD-MANAGE
[DEVICE1 DESCRIPTION]
OPTION=OK
ESN=DEFAULT
MAC=DEFAULT
VERSION=Version
DIRECTORY=DEFAULT
FILENUM=1
TYPE1=SYSTEM-CONFIG
FILENAME1=system-config.zip
END
<FW> display firewall run-mode
Firewall Run Mode: Traditional Mode.
If the HMAC check function is enabled (hmac enable), the user ID for USB-based upgrade must be the same as the HMAC key.
If the index file does not contain the HMAC of the upgrade file, do not enable HMAC check on the FW; otherwise, the upgrade fails.
<FW> system-view [FW] usb autoupdate userid userid [FW] hmac enable [FW] usb autoupdate config-userid config-userid [FW] autoupdate enable
<FW> display firewall run-mode
Firewall Run Mode: Cloud Managemeng Mode.
<FW> display api call-home connection status
--------------------------------------------------
Host Name : Host-name
Domain : xxxx.com
Connect-state : succeeded
--------------------------------------------------