< Home

activate-file

Function

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.

Format

activate-file { reload | { in time | delay delay-time } } *

undo activate-file [ reload | in [ time ] | delay [ delay-time ] ]

Parameters

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.

Views

Easy-Operation view, Easy-Operation group view

Default Level

3: Management level

Usage Guidelines

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

  • If the reload parameter is specified, the client activates files by resetting regardless of whether or not downloaded files include the system software.
  • The undo activate-file command restores the default file activation mode and time. If the reload, in, and delay parameters are specified in the undo activate-file command, the default configurations are restored.
  • The file activation mode can be set in the Easy-Operation view or group view. If the client matches a group, the configuration in the group view takes effect for the client.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >