SMTP - HTTP - FTP Codes and Errors

From FactotumNW Wiki

Jump to: navigation, search

Contents



SMTP Event Codes

Event # Event Type Description
0 Message transfer in The message transfer agent (MTA) received a message from a server, connector, or gateway.
1 Probe transfer in The MTA received an X.400 probe from a server, connector, or gateway.
2 Report transfer in A delivery receipt or non-delivery report (NDR) was received from a server, connector, or gateway.
4 Message submission A local e-mail client submitted a message (through the information store).
5 Probe submission A local e-mail client submitted an X.400 probe (usually through the information store).
6 Probe transfer out The MTA completed transfer of an X.400 probe to a gateway, X.400 link, or another MTA.
7 Message transfer out The MTA sent the message to a server, connector, or gateway.
8 Report transfer out The MTA sent the delivery receipt or NDR to a server, connector, or gateway.
9 Message delivered The message was delivered to a mailbox or public folder.
10 Report delivered A delivery receipt or NDR was delivered to a mailbox.
26 Distribution list expansion A recipient distribution list was expanded so that the message can be sent to different addresses.
28 Message redirected The message was sent to a mailbox other than that of the recipient.
29 Message rerouted The message was routed to an alternate path.
31 Downgrading The MTA has mapped a message, report, or probe into the 1984 X.400 protocol before transferring it to a remote 1984 MTA.
33 Report absorption The MTA has scheduled a report for deletion because the user did not request it. In the X.400 protocol, NDRs are always routed back to the sending MTA even if the user did not request a report.
34 Report generation A delivery receipt or NDR has been created.
43 Unroutable report discarded The MTA has discarded a report because the report cannot be routed to its destination.
50 Gateway deleted message The administrator deleted an X.400 message that was queued by the MTA for transfer to a gateway. No delivery report is generated.
51 Gateway deleted probe The administrator deleted an X.400 probe that was queued by the MTA for transfer to a gateway. No delivery report is generated.
52 Gateway deleted report The administrator deleted an X.400 report that was queued by the MTA for transfer to a gateway. No delivery report is generated.
1000 Local delivery The sender and recipient are on the same server.
1001 Backbone transfer in Mail was received from another Messaging Application Programming Interface (MAPI) system across a connector or gateway.
1002 Backbone transfer out Mail was sent to another MAPI system across a connector or gateway.
1003 Gateway transfer out The message was sent through a gateway.
1004 Gateway transfer in The message was received from a gateway.
1005 Gateway report transfer in A delivery receipt or NDR was received from a gateway.
1006 Gateway report transfer out A delivery receipt or NDR was sent through a gateway.
1007 Gateway report generation A gateway generated an NDR for a message.
1010 SMTP queued outbound  
1011 SMTP transferred outbound Outbound mail was transferred to an Internet recipient.
1012 SMTP received inbound Inbound mail was received from the SMTP connector.
1013 SMTP transferred inbound  
1014 SMTP message rerouted An Internet message was rerouted or forwarded to the proper location.
1015 SMTP report transferred in The SMTP connector received a delivery receipt or NDR.
1016 SMTP report transferred out A delivery receipt or NDR was sent to the SMTP connector.
1017 SMTP report generated A delivery receipt or NDR was created.
1018 SMTP report absorbed The receipt or NDR could not be delivered.
1019 SMTP submitted message to advanced queuing  
1020 SMTP outbound transfer  
1021 SMTP bad mail  
1022 SMTP advanced queuing failure  
1023 SMTP local delivery  
1024 SMTP submit message to categorizer  
1025 SMTP begin submit message  
1026 SMTP advanced queuing failed message  
1027 SMTP submit message to store driver The information store driver has picked up a message from the information store.
1028 SMTP store driver local delivery The information store driver has delivered a message to the information store for local delivery.
1029 SMTP store driver gateway delivery The information store driver has delivered a message to the information store for gateway delivery.
1030 SMTP NDR all  
1031 SMTP end outbound transfer  

Note: 5.4.0 means authoritative host was not found

Working with Protocol Logging Properties and Fields When you enable protocol logging, you specify the properties that you want to track. The more properties you track, the more system resources protocol logging requires. Table 15-1 summarizes key properties that you'll want to track. The first column shows the name of the logging property. The second column shows the name of the field in the protocol log file.

Table 15-1. Key Protocol Logging Properties and Fields

Property Name Log Field Description
Date Date Connection date.
Time Time Connection time.
Client IP Address c-ip IP address of the client making the request.
User Name cs-username Account name of an authenticated user.
Service Name s-sitename Name of the service processing the command.
Server Name s-computername Server on which the log entry was generated.
Server IP Address s-ip IP address of the server on which the log entry was generated.
Method cs-method Protocol command sent by the client.
Protocol Status sc-status Protocol reply code.
Win32 Status sc-win32-status Microsoft Windows 2000 status or error code. Zero indicates success.
Bytes Sent sc-bytes Bytes sent by the server.
Bytes Received cs-bytes Bytes received by the server.
Time Taken time-taken Length of time the action took in milliseconds.

HTTP, SMTP, and NNTP support a slightly different set of properties. If a protocol doesn't support a property, the related field is recorded with a dash (-) or a zero (0).


Top of page


HTTP Log Codes

1xx - Informational These status codes indicate a provisional response. The client should be prepared to receive one or more 1xx responses before receiving a regular response.

100 - Continue.
101 - Switching protocols.

2xx - Success This class of status codes indicates that the server successfully accepted the client request.

200 - OK. The client request has succeeded.
201 - Created.
202 - Accepted.
203 - Non-authoritative information.
204 - No content.
205 - Reset content.
206 - Partial content.

3xx - Redirection The client browser must take more action to complete the request. For example, the browser may have to request a different page on the server or repeat the request by using a proxy server.

301 - Moved Permanently
302 - Object moved Temporarily
303 - See Other
304 - Not modified.
307 - Temporary redirect.

4xx - Client Error An error occurs, and the client appears to be at fault. For example, the client may request a page that does not exist, or the client may not provide valid authentication information.

400 - Bad request.
401 - Access denied. IIS defines a number of different 401 errors that indicate a more specific cause of the error. These specific error codes are displayed in the browser but are not displayed in the IIS log:
401.1 - Logon failed.
401.2 - Logon failed due to server configuration.
401.3 - Unauthorized due to ACL on resource.
401.4 - Authorization failed by filter.
401.5 - Authorization failed by ISAPI/CGI application.
401.7 – Access denied by URL authorization policy on the Web server. This error code is specific to IIS 6.0.
403 - Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error:
403.1 - Execute access forbidden.
403.2 - Read access forbidden.
403.3 - Write access forbidden.
403.4 - SSL required.
403.5 - SSL 128 required.
403.6 - IP address rejected.
403.7 - Client certificate required.
403.8 - Site access denied.
403.9 - Too many users.
403.10 - Invalid configuration.
403.11 - Password change.
403.12 - Mapper denied access.
403.13 - Client certificate revoked.
403.14 - Directory listing denied.
403.15 - Client Access Licenses exceeded.
403.16 - Client certificate is untrusted or invalid.
403.17 - Client certificate has expired or is not yet valid.
403.18 - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0.
403.19 - Cannot execute CGIs for the client in this application pool. This error code is specific to IIS 6.0.
403.20 - Passport logon failed. This error code is specific to IIS 6.0.
404 - Not found. 404.0 - (None) – File or directory not found.
404.1 - Web site not accessible on the requested port.
404.2 - Web service extension lockdown policy prevents this request.
404.3 - MIME map policy prevents this request.
404.4 - No Handler (IIS 7)
404.5 - Request Filtering: URL Sequence Denied (IIS 7)
404.6 - Request Filtering: Verb denied (IIS 7)
404.7 - Request Filtering: File extension denied (IIS 7)
404.8 - Request Filtering: Denied by hidden namespace (IIS 7)
404.9 - Denied since hidden file attribute has been set (IIS 7)
404.10 - Request Filtering: Denied because request header is too long (IIS 7)
404.11- Request Filtering: Denied because URL doubled escaping (IIS 7)
404.12 - Request Filtering: Denied because of high bit characters (IIS 7)
404.13 - Request Filtering: Denied because content length too large (IIS 7)
404.14 - Request Filtering: Denied because URL too long (IIS 7)
404.15 - Request Filtering: Denied because query string too long (IIS 7)
405 - HTTP verb used to access this page is not allowed (method not allowed.)
406 - Client browser does not accept the MIME type of the requested page.
407 - Proxy authentication required.
412 - Precondition failed.
413 – Request entity too large.
414 - Request-URI too long.
415 – Unsupported media type.
416 – Requested range not satisfiable.
417 – Execution failed.
423 – Locked error.

5xx - Server Error The server cannot complete the request because it encounters an error.

500 - Internal server error.
500.12 - Application is busy restarting on the Web server.
500.13 - Web server is too busy.
500.15 - Direct requests for Global.asa are not allowed.
500.16 – UNC authorization credentials incorrect. This error code is specific to IIS 6.0.
500.18 – URL authorization store cannot be opened. This error code is specific to IIS 6.0.
500.100 - Internal ASP error.
501 - Header values specify a configuration that is not implemented.
502 - Web server received an invalid response while acting as a gateway or proxy.
502.1 - CGI application timeout.
502.2 - Error in CGI application.
503 - Service unavailable. This error code is specific to IIS 6.0.
504 - Gateway timeout.
505 - HTTP version not supported.


For more details see these resources :

· RFC 2616 - Http Status Codes

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

· Microsoft KB Article - Common HTTP Status Codes and Their Causes

http://support.microsoft.com/default.aspx?scid=kb;en-us;318380


· Fields separated by spaces

· Date - date - The date on which the request was made.
· Time - time - The time at which the request was made. Recorded as UTC (Greenwich Mean Time).
· Client IP Address - c-ip - The IP address of the client making the request e.g. 203.103.44.20.
· User Name - c-username - The name of the authenticated user making the request. This is only recorded if an authentication system is in place. If there is no authentication the user is 'anonymous' and is represented in the log file by a hyphen.
· Service Name & Instance Number - s-sitename - The Internet service and instance number that was running on the client computer.
· Server Name - s-computername - The name of the server that made the log entry.
· Server IP - s-ip - The IP address of the server that made the log entry.
· Method - cs-method - The type of action that was requested by the client (for example, a POST).
· URI Stem - cs-uri-stem - The actual resource accessed (for example, index.html).
· URI Query - cs-uri-query - The query that the client was trying to perform (if any).
· HTTP Status - sc-status - The HTTP status code of the action. See below for HTTP status code details.
· Win32 Status - sc-win32-status - The Win32 status code of the action.
· Bytes Sent - sc-bytes - The actual number of bytes sent by the server.
· Bytes received - cs-bytes - The actual number of bytes received by the server.
· Server Port - s-port - The port number the client is connected to.
· Time Taken - time-taken - The length of time taken to perform the requested action.
· Protocol Version - cs-protocol - The actual protocol used (HTTP or FTP) and version used by the client to make the request.
· User Agent - cs(User-Agent) - The browser used by the client.
· Cookie - cs(Cookie) - The content of the cookie either sent or received (if any).
· Referrer - cs(referrer) - The previous site visited by the user - direct link.


Top of page


Comprehensive List of FTP Status and Error Codes

During your FTP sessions, you'll receive various numbered codes from servers. CuteFTP displays these codes in the log window. Some codes represent errors. Most others simply communicate the status of the connection. Here are brief explanations for the most common status and error codes.

Code Description
100 Series The requested action is being initiated, expect another reply before proceeding with a new command.
110 Restart marker reply.
120 Service ready in nn minutes.
125 Data Connection already open, transfer starting.
150 File status okay, about to open data connection. FTP uses two ports: 21 for sending commands, and 20 for sending data. A status code of 150 indicates that the server is about to open a new connection on port 20 to send some data.
   
200 Series The requested action has been successfully completed.
200 Command okay.
202 Command not implemented, superfluous at this site.
211 System status, or system help reply.
212 Directory status.
213 File status.
214 Help message.
215 NAME system type. (Where NAME is an official system name from the list in the Assigned Numbers document.)
220 Service ready for new user.
221 Service closing control connection. Logged out if appropriate.
225 Data connection open; no transfer in progress.
226 Closing data connection. Requested file action successful (for example; file transfer or file abort). The command opens a data connection on port 20 to perform an action, such as transferring a file. This action successfully completes, and the data connection is closed.
227 Entering Passive Mode.
230 User logged in, proceed. This status code appears after the client sends the correct password. It indicates that the user has successfully logged on.
250 Requested file action okay, completed.
257 "PATHNAME" created.
   
300 Series The command has been accepted, but the requested action is on hold, pending receipt of further information.
331 User name okay, need password. You see this status code after the client sends a user name. This same status code appears regardless of whether the user name that is provided is a valid account on the system.
332 Need account for login.
350 Requested file action pending further information.
   
400 Series The command was not accepted and the requested action did not take place, but the error condition is temporary and the action may be requested again.
421 Error 421 Service not available, closing control connection.
  Error 421 User limit reached
  Error 421 You are not authorized to make the connection
  Error 421 Max connections reached
  Error 421 Max connections exceeded
  Possible Solutions: You may receive a 421 error if the FTP server you are connected to limits the total number of connections available or limits the connections available to one user. There are three things you can do:
1. Limit the number of connections to any one FTP site by selecting Tools > Global Options > Connection and set "Per site max connections / transfers" to 1 (By default it will be set to 2). If you have problems with finding a reliable essay service that offers assistance not only with creating essays but term and research paper writing as well, I highly recommend you to visit BestWritingService.Com.
2. Remove items from the Transfer Queue. The Transfer Queue is where you see items ready for transfer, in transit, or just transferred. Sometimes the Queue Pane can become cluttered with unfinished transfers. To clear the queue, right-click inside it and choose Remove All.
3. Make sure only one instance of CuteFTP is running on your system. Open the Windows Task Manager and see if CuteFTP is listed more than once.
425 Can't open data connection.
  Possible Solutions:
1. Try changing from PASV to PORT mode.
2. Check your firewall settings.
3. Try making an HTTP connection.
426 Connection closed; transfer aborted. The command opens a data connection to perform an action, but that action is canceled, and the data connection is closed.
450 Requested file action not taken. File unavailable (e.g., file busy).
451 Requested action aborted: local error in processing.
452 Requested action not taken. Insufficient storage space in system.
   
500 Series The command was not accepted and the requested action did not take place.
501 Syntax error in parameters or arguments.
502 Command not implemented. The server does not support this command.
503 Bad sequence of commands.
504 Command not implemented for that parameter.
530 Not logged in. Your password is being rejected, contact the server administrator. This status code indicates that the user cannot log on because the user name and password combination is not valid. If you use a user account to log on, you may have mistyped the user name or password, or the server may be configured to allow only Anonymous access.
532 Need account for storing files.
550 Requested action not taken. File unavailable (e.g., file not found, no access). Contact the server administrator. The command is not executed because the specified file is not available. For example, this status code occurs when you try to download (GET) a file that does not exist, or when you try to upload (PUT) a file in a directory for which you do not have Write access.
552 Requested file action aborted. Exceeded storage allocation (for current directory or data set). Contact the server administrator.
553 Requested action not taken. File name not allowed. Try changing the file name, or getting rid of spaces in the file name.
   
10,000 series Common Winsock Error Codes (complete list of Winsock error codes)
10054 Connection reset by peer. The connection was forcibly closed by the remote host.
10060 Can't connect to remote server (Generally a time-out error).

Try switching from PASV to PORT mode, or try increasing the time-out value (See Reconnect and resume in Transfer settings).

10061 Can't connect to remote server. The connection is actively refused by the server. Try switching the connection port.
10066 Directory not empty. The server will not delete this directory while there are files/folders in it.
10068 Too many users, server is full. Try connecting later. If the problem persists, Contact the server administrator.


Top of page


List of FTP commands for the Microsoft command-line FTP client Command-line options

This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows NT help files. If you need to use the "raw" FTP commands instead of these interpreted commands (for example, if you're writing your own FTP client), please consult this list instead.

As you're starting the program from a Command prompt:

ftp [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [computer]

· -v - Suppresses verbose display of remote server responses.
· -n - Suppresses auto-login 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 chracters in local file and path names.
· -s:filename - Specifies a text file containing ftp commands; the commands will automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
· -a - Use any local interface when binding data connection.
· -w:windowsize - Overrides the default transfer buffer size of 4096.
· computer - Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last parameter on the line.

Client commands

· ! - Runs the specified command on the local computer
· ? - Displays descriptions for ftp commands
· append - Appends a local file to a file on the remote computer
· ascii - Sets the file transfer type to ASCII, the default
· bell - Toggles a bell to ring after each file transfer command is completed (default = OFF)
· binary - Sets the file transfer type to binary
· bye - Ends the FTP session and exits ftp
· cd - Changes the working directory on the remote computer
· close - Ends the FTP session and returns to the command interpreter
· debug - Toggles debugging (default = OFF)
· delete - Deletes a single file on a remote computer
· dir - Displays a list of a remote directory's files and subdirectories
· disconnect - Disconnects from the remote computer, retaining the ftp prompt
· get - Copies a single remote file to the local computer
· glob - Toggles filename globbing (wildcard characters) (default = ON)
· hash - Toggles hash-sign (#) printing for each data block transferred (default = OFF)
· help - Displays descriptions for ftp commands
· lcd - Changes the working directory on the local computer
· literal - Sends arguments, verbatim, to the remote FTP server
· ls - Displays an abbreviated list of a remote directory's files and subdirectories
· mdelete - Deletes one or more files on a remote computer
· mdir - Displays a list of a remote directory's files and subdirectories
· mget - Copies one or more remote files to the local computer
· mkdir - Creates a remote directory
· mls - Displays an abbreviated list of a remote directory's files and subdirectories
· mput - Copies one or more local files to the remote computer
· open - Connects to the specified FTP server
· prompt - Toggles prompting (default = ON)
· put - Copies a single local file to the remote computer
· pwd - Displays the current directory on the remote computer (literally, "print working directory")
· quit - Ends the FTP session with the remote computer and exits ftp (same as "bye")
· quote - Sends arguments, verbatim, to the remote FTP server (same as "literal")
· recv - Copies a remote file to the local computer
· remotehelp - Displays help for remote commands
· rename - Renames remote files
· rmdir - Deletes a remote directory
· send - Copies a local file to the remote computer (same as "put")
· status - Displays the current status of FTP connections
· trace - Toggles packet tracing (default = OFF)
· type - Sets or displays the file transfer type (default = ASCII)
· user - Specifes a user to the remote computer
· verbose - Toggles verbose mode (default = ON)

! Runs the specified command on the local computer. Syntax: ! [command] Parameter(s): command - Specifies the command to run on the local computer. If command is omitted, the local command prompt is displayed; type "exit" to return to ftp.

? Displays descriptions for ftp commands. ? is identical to help. Syntax: ? [command] Parameter(s): command - Specifies the name of the command about which you want a description. If command is not specified, ftp displays a list of all commands.

append Appends a local file to a file on the remote computer using the current file type setting. Syntax: append local-file [remote-file] Parameter(s): local-file - Specifies the local file to add. remote-file - Specifies the file on the remote computer to which local-file will be added. If remote-file is omitted, the local filename is used for the remote filename.

ascii Sets the file transfer type to ASCII, the default. Syntax: ascii Note FTP supports two file transfer types, ASCII and binary image. ASCII should be used when transferring text files. See also binary. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the target operating system.

bell Toggles a bell to ring after each file transfer command is completed. By default, the bell is off. Syntax: bell

binary Sets the file transfer type to binary. Syntax: binary Note FTP supports two file transfer types, ASCII and binary image. Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte. See also ascii.

bye Ends the FTP session with the remote computer and exits ftp. Syntax: bye

cd Changes the working directory on the remote computer. Syntax: cd remote-directory Parameter(s): remote-directory - Specifies the directory on the remote computer to change to.

close Ends the FTP session with the remote server and returns to the command interpreter. Syntax: close

debug Toggles debugging. When debugging is on, each command sent to the remote computer is printed, preceded by the string --->. By default, debugging is off. Syntax: debug

delete Deletes a single file on a remote computer. See also mdelete, which can delete multiple files. Syntax: delete remote-file Parameter(s): remote-file - Specifies the file to delete.

dir Displays a list of a remote directory's files and subdirectories. See also mdir, which can list multiple directories. Syntax: dir [remote-directory] [local-file] Parameter(s): remote-directory - Specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used. local-file - Specifies a local file to store the listing. If not specified, output is displayed on the screen.

disconnect Disconnects from the remote computer, retaining the ftp prompt. Syntax: disconnect

get Copies a remote file to the local computer using the current file transfer type. See also mget, which can copy multiple files. Syntax: get remote-file [local-file] Parameter(s): remote-file Specifies the remote file to copy. local-file Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.

glob Toggles filename globbing. Globbing permits use of wildcard characters in local file or path names. By default, globbing is on. Syntax: glob

hash Toggles hash-sign (#) printing for each data block transferred. The size of a data block is 2048 bytes. By default, hash mark printing is off. Syntax: hash

help Displays descriptions for ftp commands. Syntax: help [command] Parameter(s): command - Specifies the name of the command about which you want a description. If command is not specified, ftp displays a list of all commands.

lcd Changes the working directory on the local computer. By default, the working directory is the directory in which ftp was started. Syntax: lcd [directory] Parameter(s): directory - Specifies the directory on the local computer to change to. If directory is not specified, the current working directory on the local computer is displayed.

literal Sends arguments, verbatim, to the remote FTP server. A single FTP reply code is expected in return. Syntax: literal argument [ ...] Parameter(s): argument - Specifies the argument to send to the FTP server.

ls Displays an abbreviated list of a remote directory's files and subdirectories. Syntax: ls [remote-directory] [local-file] Parameter(s): remote-directory - Specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used. local-file - Specifies a local file to store the listing. If not specified, output is displayed on the screen.

mdelete Deletes one or more files on a remote computer. Syntax: mdelete remote-files [ ...] Parameter(s): remote-files - Specifies the remote files to delete.

mdir Displays a list of a remote directory's files and subdirectories. Mdir allows you to specify multiple files. Syntax: mdir remote-files [ ...] local-file Parameter(s): remote-files - Specifies the directory for which you want to see a listing. Remote-files must be specified; type "-" to use the current working directory on the remote computer. local-file - Specifies a local file to store the listing. Type "-" to display the listing on the screen.

mget Copies one or more remote files to the local computer using the current file transfer type. Syntax: mget remote-files [ ...] Parameter(s): remote-files - Specifies the remote file(s) to copy to the local computer.

mkdir Creates a remote directory. Syntax: mkdir directory Parameter(s): directory - Specifies the name of the new remote directory.

mls Displays an abbreviated list of a remote directory's files and subdirectories. Syntax: mls remote-files [ ...] local-file Parameter(s): remote-files - Specifies the files for which you want to see a listing. Remote-files must be specified; type "-" to use the current working directory on the remote computer. local-file - Specifies a local file to store the listing. Type "-" to display the listing on the screen.

mput Copies one or more local files to the remote computer using the current file transfer type. Syntax: mput local-files [ ...] Parameter(s): local-files - Specifies the local files to copy to the remote computer.

open Connects to the specified FTP server. Syntax: open computer [port] Parameter(s): computer - Specifies the remote computer to connect to. Computer can be specified by IP address or computer name (a DNS or HOSTS file must be available). If auto-login is on (default), FTP also attempts to automatically log the user in to the FTP server (see Ftp command-line options to disable auto-login). port - Specifies a port number to use to contact an FTP server.

prompt Toggles prompting. Ftp prompts during multiple file transfers to allow you to selectively retrieve or store files; mget and mput transfer all files if prompting is turned off. By default, prompting is on. Syntax: prompt

put Copies a local file to the remote computer using the current file transfer type. See also mput, which can copy multiple files. Syntax: put local-file [remote-file] Parameter(s): local-file - Specifies the local file to copy. remote-file - Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.

pwd Displays the current directory on the remote computer. Syntax: pwd

quit Ends the FTP session with the remote computer and exits ftp. Syntax: quit

quote Sends arguments, verbatim, to the remote FTP server. A single FTP reply code is expected in return. Quote is identical to literal. Syntax: quote argument [ ...] Parameter(s): argument - Specifies the argument to send to the FTP server.

recv Copies a remote file to the local computer using the current file transfer type. Recv is identical to get. Syntax: recv remote-file [local-file] Parameter(s): remote-file - Specifies the remote file to copy. local-file - Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.

remotehelp Displays help for remote commands. Syntax: remotehelp [command] Parameter(s): command - Specifies the name of the command about which you want help. If command is not specified, ftp displays a list of all remote commands.

rename Renames remote files. Syntax: rename filename newfilename Parameter(s): filename - Specifies the file you want to rename. newfilename - Specifies the new filename.

rmdir Deletes a remote directory. Syntax: rmdir directory Parameter(s): directory - Specifies the name of the remote directory to delete. send Copies a local file to the remote computer using the current file transfer type. Send is identical to put. Syntax: send local-file [remote-file] Parameter(s): local-file - Specifies the local file to copy. remote-file - Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.

status Displays the current status of FTP connections and toggles. Syntax: status

trace Toggles packet tracing; trace displays the route of each packet when running an ftp command. Syntax: trace

type Sets or displays the file transfer type. Syntax: type [type-name] Parameter(s): type-name - Specifies the file transfer type; the default is ASCII. If type-name is not specified, the current type is displayed. Note FTP supports two file transfer types, ASCII and binary image. ASCII should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the destination's operating system. Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte.

user Specifes a user to the remote computer. Syntax: user user-name [password] [account] Parameter(s): user-name - Specifies a user name with which to log in to the remote computer. password - Specifies the password for user-name. If not specified, but required, ftp prompts for the password. account - Specifies an account with which to log on to the remote computer. If account is not specified, but required, ftp prompts for the account.

verbose Toggles verbose mode. If on, all ftp responses are displayed; when a file transfer completes, statistics regarding the efficiency of the transfer are also displayed. By default, verbose is on. Syntax: verbose


Top of page

Personal tools