< Home

transfer

Function

The transfer command configures the method of uploading a statistics file.

The undo transfer command removes the configured statistics file uploading method.

Format

transfer { primary | secondary } protocol { tftp | { ftp | sftp } username user-name password password } { host host-name } [ path destination-path ]

undo transfer { primary | secondary }

Parameters

Parameter Description Value
primary Indicates the primary method of uploading a statistics file. -
secondary Indicates the secondary method of uploading a statistics file. -
protocol Indicates the protocol used by uploading a statistics file. -
tftp

Specifies uploading a statistics file using TFTP.

-
ftp

Specifies uploading a statistics file using FTP.

-
sftp

Specifies uploading a statistics file using SFTP.

-
username user-name

Specifies the user name for uploading a statistics file using FTP.

The value is a string of 1 to 64 characters.
password password Specifies the user password for uploading a statistics file using FTP.

In simpletext mode, the value is a string of 1 to 16 characters.

In cipher mode, the value is a string of 32 characters.

The value is a string of 48 ciphertext characters. A string of 32 ciphertext characters is also supported.

host host-name Specifies the host name of the server.

The value is a string of 1 to 20 characters.

path destination-path Specifies the destination folder for uploaded files.

The value is a string of 1 to 64 characters.

Views

Bulk-file view

Default Level

2: Configuration level

Usage Guidelines

By default, the statistics file is not uploaded.

Primary and secondary methods of uploading statistics files are supported. If the primary method fails, the secondary method is adopted.

You must configure a primary before enabling a statistics file. The secondary is optional.

You can modify a primary or secondary but cannot delete a primary when a statistics file is enabled; however, you can delete or configure a secondary when a statistics file is enabled.

Using SFTP as the upload mode is recommended to enhance security.

Example

# Configure a primary method of uploading the statistics file named iftable.

<sysname> system-view
[sysname] bulk-file iftable
[sysname-bulk-file-iftable] transfer primary protocol sftp username user password pwd host host-name path folder/bulkstat1

# Configure a secondary method of uploading the statistics file named iftable.

<sysname> system-view
[sysname] bulk-file iftable
[sysname-bulk-file-iftable] transfer secondary protocol tftp host 10.1.0.1 path folder/bulkstat2

# Remove the configured secondary method of uploading the statistics file named iftable.

<sysname> system-view
[sysname] bulk-file iftable
[sysname-bulk-file-iftable] undo transfer secondary
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >