< Home

file-upload name

Function

The file-upload name command enables the function of uploading files to an FTP or FTPS server.

The undo file-upload name command disables the function of uploading files to an FTP or FTPS server.

Format

file-upload name name ftp ip-address [ port port ] user user-name password password [ directory directory ]

file-upload name name ftps ip-address [ port port ] user user-name password password [ directory directory | certificate certificate-name ] *

undo file-upload name name

Parameters

Parameter Description Value

name name

Specifies the name of an uploaded file.

The value is a string of case-sensitive characters.

If the file name does not contain spaces, it ranges from 1 to 32 characters. If the file name contains spaces, it must be enclosed using double quotation marks, for example, "user for test". In this case, the name ranges from 3 to 34 characters.

ip-address

Specifies the IP address of the FTP or FTPS server.

-

port port

Specifies the port number of the FTP or FTPS server.

-

user user-name

Specifies the user name for logging in to the FTP or FTPS server.

-

password password

Specifies the password for logging in to the FTP or FTPS server.

-

directory directory

Specifies the FTP or FTPS server directory to which files are uploaded.

The value is a string of 1 to 127 characters.

certificate certificate-name

Specifies the CA certificate that validates the FTPS server certificate.

The value is a string of 1 to 63 characters.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the function of uploading log files to an FTP or FTPS server is disabled.

By default, the function of uploading log files to an FTP or FTPS server is disabled.

When you upload log files to the FTPS server, you must set the certificate certificate-name parameter to specify the CA certificate that validates the server certificate by default.

Before setting certificate certificate-name, you need to first import the CA certificate to the FW memory for it to take effect.

Example

# Configure the user name and password of the FTPS server at 10.174.55.66.
<sysname> system-view
[sysname] file-upload name test ftps 10.174.55.66 user test password test@123 certificate server.crt
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >