The activate-file command sets the file activation mode and time on the Commander.
The undo activate-file command restores the default file activation mode and time.
By default, if downloaded files include the system software (*.cc), devices immediately activate all files by resetting. In addition, if the downloaded files in the batch upgrade scenario include the configuration file, the devices also activate files immediately by resetting.
activate-file { reload | { in time | delay delay-time } } *
undo activate-file [ reload | in [ time ] | delay [ delay-time ] ]
Parameter | Description | Value |
---|---|---|
reload | Indicates that the device activates files by resetting. | - |
in time | Indicates the time when the device activates files. | The format is HH:MM, in which HH indicates hour ranging from 0 to 23 and MM indicates minute ranging from 0 to 59. |
delay delay-time | Indicates the delay after which the device activates files. | The value is an integer that ranges from 0 to 86400, in seconds. The default is 0. |
Usage Scenario
If clients use the default method to activate files, network services will be affected. This issue is especially prominent in the batch upgrade scenario where each upgraded device may carry a lot of services. Resetting these devices will interrupt services. Therefore, the devices should activate files when service volume is small.
Precautions
# Set the file activation mode to reset.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] activate-file reload
# Set the file activation delay to one hour.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] activate-file delay 3600
# Set the file activation mode to reset and time to 1:00 am.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] activate-file in 1:00 reload
# Set the file activation mode to reset and time to 1:00 am for group F1.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] group custom ip-address F1 [HUAWEI-easyoperation-group-custom-F1] activate-file in 1:00 reload