FINAL DRAFT - CISCO CONFIDENTIAL
7-3
CiscoONS 15216 EDFA2 Operations Guide
78-16033-01
Chapter7 FTP Command Line
FTP Commands
Step 4 At the ftp prompt, change directories to where the file is to be placed using the following command:
ftp> cd /Directory_of_FTP_site
Step 5 At the ftp prompt, enter the following command:
ftp> type i
The ONS 15216 EDFA2 should respond as follows:
type set to BINARY
Step 6 At the ftp prompt, put the file on the remote server using the following command:
ftp> put bkupfilename.txt
When the command is entered, the file transfer begins. When the file transfer is complete, the following
information should be displayed:
Bytes sent: 18547
Transfer complete.
Step 7 At the ftp prompt, enter the following command:
ftp> quit
The FTP session is terminated and the following response should be displayed:
Ftp session terminated.
The ONS 15216 EDFA2 then returns to the hostname prompt.
Step 8 On the remote server, check that the file is present and complete.
7.2 FTP Commands
Typing the help command in FTP command line mode displays a list of all FTP commands. See
Example 7-1.
Example7-1 FTP Help Command
ftp> help
Available commands (optional parameters are in []):
cd dir Change remote directory to dir.
cdup Change remote directory to parent.
close Close ftp connection and quit ftp shell.
get remote_file Get remote_file from remote server and save as local_file.
lls List local files.
login [username] Login to remote server as username (prompted for password).
ls [expr] Detailed listing of remote files matching expr.
nls [expr] Name only listing of remote files matching expr.
open ip_address Open a connection to server at ip_address and port.
put local_file Send local_file to remote server and save as remote_file.
pwd Show current remote directory.
quit Lose ftp connection and quit ftp shell.
type t Set type to t, either I image/binary or A ascii.