1-6 
Displaying FTP server information 
To do…  Use the command…  Remarks 
Display the information about FTP server 
configurations on a switch 
display ftp-server 
Display the source IP address set for an FTP 
server 
display ftp-server source-ip 
Display the login FTP client on an FTP server
display ftp-user 
Available in any 
view 
 
FTP Configuration: A Switch Operating as an FTP Client 
Basic configurations on an FTP client 
By default a switch can operate as an FTP client. In this case, you can connect the switch to the FTP 
server to perform FTP-related operations (such as creating/removing a directory) by executing 
commands on the switch. 
Follow these steps to perform basic configurations on an FTP client: 
To do…  Use the command…  Remarks 
Enter FTP client view 
ftp [ cluster | remote-server 
[ port-number ] ] 
— 
Specify to transfer files in ASCII 
characters 
ascii 
Specify to transfer files in 
binary streams 
binary 
Use either command. 
By default, files are transferred 
in ASCII characters. 
Set the data transfer mode to 
passive 
passive 
Optional 
passive by default. 
Change the working directory 
on the remote FTP server 
cd pathname 
Change the working directory 
to be the parent directory 
cdup 
Get the local working path on 
the FTP client 
lcd 
Display the working directory 
on the FTP server 
pwd 
Create a directory on the 
remote FTP server 
mkdir pathname 
Remove a directory on the 
remote FTP server 
rmdir pathname 
Delete a specified file 
delete remotefile 
Optional