This section describes the common operations on the FW which serves as an FTP client.
Parameter vpn-instance default is configured on management interface by default. When management interface is used for FTP file transfer, parameter vpn-instance default must be specified in the configuration command. The command is ftp -a source-ip-address host [ port-number ] vpn-instance default.
Set the data type to ASCII code or binary. The default data type is ASCII. |
|
Set the file transfer mode to passive or active. The client uses the active mode to establish the data tunnel by default. |
Display FTP command online help. |
remotehelp [ command ] |
Upload a local file to the FTP server. |
put local-filename [ remote-filename ] |
Download a file from the FTP server to the local device. |
get remote-filename [ local-filename ] |
Display the current directory on the FTP server. |
|
Change the current directory on the FTP server. |
cd pathname |
Create a directory on the FTP server. NOTE:
|
mkdir remote-directory |
Delete a directory from the FTP server. |
rmdir remote-directory |
Display or change the current directory on the FTP client. |
lcd [local-directory ] |
Display the specified directory or file on the FTP server. |
ls [ remote-filename ] [ local-filename ] |
Display details on a directory or a file on the FTP server. |
dir [ remote-filename ] [ local-filename ] |
Delete a file from the FTP server. |
delete remote-filename |
Change the login account and log in again. |
user user-name [ password ] |
Close the connection with the FTP server, but stay in the FTP view. |
|
Close the connection with the FTP server and return to the user view. |