< Home

custom-file

Function

The custom-file command specifies a user-defined file to be downloaded by clients.

The undo custom-file command deletes the configured user-defined file information.

Format

{ custom-file file-name } &<1-3>

undo custom-file [ file-name ]

Parameters

Parameter Description Value
file-name

Specifies the name of a user-defined file to be loaded to the client. A file path can be specified.

A maximum of three user-defined files can be specified. The file names are separated by spaces.

The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

Easy-Operation view, Easy-Operation group view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When clients need to download user-defined files, such as batch processing file and login header file, use this command.

Precautions

Information about the files to be downloaded can be set in the Easy-Operation view or Easy-Operation group view:
  • The file information set in the Easy-Operation view is the default file information. If no file information is set in the group database or client database, the group or client uses the default file information.
  • The files specified in the Easy-Operation group view can be downloaded by the clients that match the group.

The names of the files to be downloaded cannot be the same as system user-defined files. Otherwise, the upgrade fails.

Example

# Configure the default user-defined file information.

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] custom-file easy/mydoc.bat

# Configure the user-defined file information for a MAC address-based group.

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] custom-file mydoc.bat custom-file header.txt
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >