< Home

ftp timeout

Function

The ftp timeout command sets the timeout period of the FTP connection.

The undo ftp timeout command restores the default timeout period.

Format

ftp [ ipv6 ] timeout minutes

undo ftp [ ipv6 ] timeout

Parameters

Parameter Description Value
ipv6 Indicates the IPv6 FTP server. -
minutes Specifies the timeout period, in minutes. The value ranges from 1 to 35791. By default, it is 10 minutes.

Views

System view

Default Level

3: Management level

Usage Guidelines

After logging in to the FTP server, the user sets up a connection with the FTP server. If an abnormal disconnection occurs or the user abnormally cuts the connection, the FTP server is not notified and therefore the connection is still kept. To avoid such a case, the timeout period is set. If no command interaction is conducted during this period, the FTP server considers the connection invalid and cuts the connection.

When you use the get command in the FTP view to overwrite a file, the operation may fail due to timeout of the FTP connection. To prevent this problem, set a long timeout period for the FTP connection.

Example

# Set the timeout period of the FTP connection to 36 minutes.

<sysname> system-view
[sysname] ftp timeout 36
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >