7-3
Cisco ONS 15216 EDFA2/EDFA2-A Operations Guide, R2.4
July 2004
Chapter 7 File Transfers
7.1.3 FTP Commands
The ONS 15216 EDFA2 should respond as follows:
230 User
FTP_username
logged in.
Step 5 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 6 At the ftp prompt, enter the following command:
ftp>
type i
The ONS 15216 EDFA2 should respond as follows:
type set to BINARY
Step 7 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 8 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 9 On the remote server, check that the file is present and complete.
7.1.3 FTP Commands
Typing the help command in FTP command line mode displays a list of all FTP commands. See
Example 7-1.
Example 7-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.
Comments to this Manuals