cc/td/doc/product/ong/15216/216edf
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table Of Contents

FTP Command Line

7.1 FTP Command Line

7.1.1 Example of FTP from a Remote Server

7.1.2 Example of FTP to a Remote Server

7.2 FTP Commands


FTP Command Line


This chapter discusses the Cisco ONS 15216 EDFA2 FTP command line and explains how to get and send image and configuration files between an FTP server and the ONS 15216 EDFA2.

7.1 FTP Command Line

To start an FTP session, use the following command:

ash:hostname:ONS15216 EDFA2> network host ftp FTP_server_IP_address

To log off, type quit at the FTP command line. This command disconnects the user from the remote server and exits the FTP shell.

7.1.1 Example of FTP from a Remote Server

The following procedure shows how to FTP an image file from a remote server to the FFS of the ONS 15216 EDFA2.


Step 1 At the hostname prompt, enter the following command to log in to the FTP site.

ash:hostname:ONS15216 EDFA2> network host ftp FTP_server_IP_address

The ONS 15216 EDFA2 should respond as follows:

connecting to FTP_server_IP_address
connected to FTP_server_IP_address

Once the login process is completed, the ftp prompt should be available.

Step 2 At the ftp prompt, enter the command as shown below to complete the FTP logon.

ftp> login FTP_username

Step 3 When prompted, enter the FTP user password as shown.

Password: *****

The ONS 15216 EDFA2 should respond as follows:

230 User FTP_username logged in.

Step 4 At the ftp prompt, change directories to where the remote file is located 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, get the file from the remote server using the following command:

ftp> get 15216EdfaSw_2.x.x

When the command is entered, the file transfer begins. When the file transfer is complete, the following information should be displayed:

Bytes received: 1963195
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 At the hostname prompt, check that the file was transferred and is complete using the following command:

ash:hostname:ONS15216 EDFA2> ffs file list


7.1.2 Example of FTP to a Remote Server

The following procedure shows how to FTP a database backup file from the FFS of the ONS 15216 EDFA2 to a remote server.


Step 1 At the hostname prompt, enter the following command to log in to the FTP site.

ash:hostname:ONS15216 EDFA2> network host ftp FTP_server_IP_address

The ONS 15216 EDFA2 should respond as follows:

connecting to FTP_server_IP_address
connected to FTP_server_IP_address

Once the login process is completed, the ftp prompt should be available.

Step 2 At the ftp prompt, enter the command as shown below to complete the FTP logon.

ftp> login FTP_username

Step 3 When prompted, enter the FTP user password as shown.

Password: *****

The ONS 15216 EDFA2 should respond as follows:

230 User FTP_username logged in.

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.

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.
type t Set type to t, either I image/binary or A ascii.

hometocprevnextglossaryfeedbacksearchhelp

Posted: Sun Apr 2 03:23:30 PDT 2006
All contents are Copyright © 1992--2006 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.