Webtrends Enterprise 7.x
Webtrends Professional 7.x
Webtrends Small Business 7.x
Webtrends Analysis Suite 7.x
Webtrends Log Analyzer Advanced 8.x
Webtrends Log Analyzer 8.x
Webtrends Log Analyzer 7.x
Webtrends Reporting Center 6.x
Webtrends Reporting Center 5.x
Webtrends Reporting Center 4.x
The Command line FTP is useful for troubleshooting those features of Webtrends software that use FTP services. All Windows-based machines have command-line FTP functions built into the operating system. Therefore, it is a useful tool that technicians can use as they guide clients through (an otherwise difficult) troubleshooting process.
What is FTP?
FTP was one of the earliest protocols used on TCP/IP networks and the Internet. FTP is used to transfer files from one computer on a network to another computer on the same network. FTP was especially useful for transferring files between different computers, such as transferring files from a UNIX computer to a computer running MS-DOS or Windows 3.1. Early FTP client software was character-based, and was similar to using the Windows NT command prompt to list and copy files. A character-based program was used to log on to the remote computer, browse directories, and to then transfer files. Internet Explorer simplifies this process by automatically logging you on to the FTP server if anonymous connections are permitted. Directory listings are automatically displayed as hypertext links, permitting point-and-click simplicity in traversing directories and copying files from a server to a client. (Note that you cannot copy files from a client to a server by using Internet Explorer.) FTP Clients Windows 95/98, Windows NT Workstation and Windows NT Server include a character-based FTP client (this client can be started only at the command prompt).
The Command-Line FTP Utility FTP is a connectivity command that transfers files to and from computers running an FTP service. The FTP command can be used interactively or by processing ASCII text files.
Syntax ftp [-v] [-n] [-i] [-d] [-g] [host] [-s: filename]
-v Suppresses display of remote server responses.
-n Suppresses autologon upon initial connection.
-i Turns off interactive prompting during multiple file transfers.
-d Enables debugging, displaying all FTP commands passed between the client and server.
-g Disables filename globbing, which permits the use of wildcard characters in local file and path names. (See the FTP glob command.) host Specifies the host name or IP address of the remote host to connect to.
-s: filename Specifies a text file containing FTP commands; the commands will automatically run after FTP starts. Use this switch instead of redirection.
To use the FTP command At the command prompt, type ftp plus any desired switches and press Enter.
For example, the following command will launch the FTP client and load any FTP-related commands found in the file "myfile.scr":
How to use the command line help feature
At the command prompt, type the command name followed by a space and /? For example, for information about the FTP command, type the following: ftp /?
Complete List of FTP Commands
The following table shows the complete list of FTP commands available when Microsoft TCP/IP is installed on a computer. Use "help" with any command to view syntax.
FTP Command Purpose
! - Runs the specified command on the local computer.
? - Displays descriptions for FTP commands. Identical to Help.
append - Appends a local file to a file on the remote computer, using the current file type setting.
ascii - Sets the file transfer type to ASCII, the default.
bell - Toggles a bell to ring after each file transfer command is completed. By default, the bell is off.
binary - Sets the file transfer type to binary.
bye - Ends the FTP session with the remote computer and exits FTP.
cd - Changes the working directory on the remote computer.
close - Ends the FTP session with the remote server and returns to the command interpreter.
debug - Toggles debugging. When debugging is on, each debug command sent to the remote computer is printed, preceded by the string --->. By default, debugging is off.
delete - Deletes files on remote computers. dir Displays a list of a remote directory files and subdirectories.
disconnect - Disconnects from the remote computer, retaining the FTP prompt.
get - Copies a remote file to the local computer, using the current file transfer type.
glob - Toggles filename globbing. Globbing permits use of glob wildcard characters in local file or path names. By default, globbing is on.
hash - Toggles hash-mark (#) printing for each 2048 bytes hash data block transferred. By default, hash-mark printing is off.
help - Displays descriptions for FTP commands. Changes the working directory on the local computer.
lcd - By default, the current directory on the local computer is used.
literal - Sends arguments, verbatim, to the remote FTP server. A single FTP reply code is expected in return.
ls - Displays an abbreviated list of a remote directory files and subdirectories.
mdelete - Deletes multiple files on remote computers.
mdir - Displays a list of a remote directory files and mdir subdirectories. Allows you to specify multiple files.
mget - Copies multiple remote files to the local c.omputer using the current file transfer type.
mkdir - Creates a remote directory. mls Displays an abbreviated list of a remote directory files and subdirectories.
mput - Copies multiple local files to the remote computer, using the current file transfer type.
open - Connects to the specified FTP server. Toggles prompting. During multiple file transfers, FTP provides prompts to allow you to selectively prompt retrieve or store files; mget and mput transfer all files if prompting is turned off. By default, prompting is on.
put - Copies a local file to the remote computer, using the current file transfer type.
pwd - "Present Working Directory".
quit - Ends the FTP session with the remote computer and exits FTP. Sends arguments, verbatim, to the remote FTP server.
quote - A single FTP reply code is expected in return. Identical to literal. recv Copies a remote file to the local computer, using the current file transfer type. Identical to get.
remotehelp - Displays help for remote commands.
rename - Renames remote files.
rmdir - Deletes a remote directory.
send - Copies a local file to the remote computer, using the current file transfer type. Identical to put.
status - Displays the current status of FTP connections and toggles.
trace - Toggles packet tracing; displays the route of each packet when running an FTP command.
type - Sets or displays the file transfer type.
user - Specifies a user to the remote computer.
verbose - Toggles verbose mode. If on, all FTP responses are verbose displayed; when a file transfer completes, statistics regarding the efficiency of the transfer are also displayed. By default, verbose is on.
Related TCP/IP Command-Line Utilities
TCP/IP utilities offer network connections to non-Microsoft hosts such as Unix- or Linux-based systems. You must have the TCP/IP network protocol installed to use the TCP/IP utilities. These tools are installed automatically when you install Microsoft TCP/IP.
arp - Displays and modifies the IP-to-Ethernet address translation tables.
ftp - Transfers files to and from a node running FTP service; similar to FTP.
nbtstat - Displays protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP.
netstat - Displays protocol statistics and current TCP/IP connections.
ping - Verifies connections to a remote host or hosts.
route - Manually controls network routing tables.
tracert - Determines the route taken to a destination.