•
You must use the ftp command to enter FTP client view for configurations under this view. For more
information, see "ftp".
Before executing the FTP client configuration commands in this section, make sure you have configured
•
the proper authority for users on the FTP server, including view the files under the current directory,
read/download the specified file, create directory/upload files, and rename/remove files).
The prompt information in the following examples varies with FTP server types.
•
ascii
Syntax
ascii
View
FTP client view
Default level
3: Manage level
Parameters
None
Description
Use the ascii command to set the file transfer mode to ASCII.
By default, the file transfer mode is ASCII.
The carriage return characters vary with operating systems, so the FTP transmission mode must be
applied to ensure the correct resolution of the files. For example, to indicate the end of a line and transfer
to the next line, the H3C device system and Windows system use characters /r/n, and the Linux system
uses characters /n.
FTP transfers files in two modes:
Binary mode: for program file or picture transmission.
•
•
ASCII mode: for text file transmission.
Related commands: binary.
Examples
# Set the file transfer mode to ASCII.
[ftp] ascii
200 Type set to A.
binary
Syntax
binary
View
FTP client view
Default level
3: Manage level
52