home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13107 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  7.3 KB

  1. Xref: sparky comp.unix.aix:13107 comp.unix.questions:15284 comp.protocols.tcp-ip:5843
  2. Newsgroups: comp.unix.aix,comp.unix.questions,comp.protocols.tcp-ip
  3. Path: sparky!uunet!psinntp!eco.twg.com!eco.twg.com!larry
  4. From: larry@eco.twg.com (Lawrence B. Henry III)
  5. Subject: Re: ftp: subcommand error codes
  6. Message-ID: <1993Jan7.192157.18720@eco.twg.com>
  7. Keywords: ftp AIX error
  8. Lines: 142
  9. Sender: larry@vishnu.eco.twg.com (Lawrence B. Henry III)
  10. Nntp-Posting-Host: eco.twg.com
  11. Reply-To: larry@eco.twg.com
  12. Organization: The Wollongong Group (East Coast Operations)
  13. References:  <160@bjcong.bj.co.uk>
  14. Date: Thu, 7 Jan 93 19:21:57 GMT
  15. Lines: 142
  16.  
  17.  
  18. In article <160@bjcong.bj.co.uk>, maf@bjcong.bj.co.uk (AUSTIN FARR) writes:
  19. |>
  20. |>ftp on AIX: subcommand errors
  21. |>-----------------------------
  22. |>
  23. |>What is the meaning of the 3-digit numbers in messages relating to ftp (on AIX)
  24. |>subcommands?  In particular, how is a failure signalled?
  25. |>
  26. |>The following is an extract from an ftp dialogue:
  27. |>ftp> get absent
  28. |>200 PORT command successful
  29. |>550 absent: No such file or directory
  30. |>ftp> cd tmp
  31. |>250 CWD command successful
  32. |>
  33. |>The leading 3-digit numbers in messages from ftp appear to relate to
  34. |>interactions with the remote machine.  A number beginning with '5' appears to
  35. |>signify failure of the operation.  If the last message before the 'ftp>' prompt begins with a digit other than '5' - is this a sufficient test for successful
  36. |>completion of the last subcommand?
  37. |>
  38. |>I would be grateful for further information.  Please reply by email.
  39. |>Thank you.
  40. |>
  41.  
  42. Austin,
  43.     Check out rfc640.. I believe that this is the latest source of 
  44. information on this topic.. it is readily available from nic.ddn.mil in the
  45. RFC sub-directory..
  46.  
  47. -Larry.
  48.  
  49.  
  50. ---Excerpt from RFC640 showing response codes for FTP---
  51.  
  52.        There are four values for the first digit of the reply code:      11a
  53.  
  54.        1yz   Positive Preliminary reply                                  11b
  55.  
  56.           The requested action is being initiated; expect another
  57.           reply before proceeding with a new command.  (The
  58.           user-process sending another command before the  completion
  59.           reply would be in violation of protocol; but server-FTP
  60.           processes should queue any commands that arrive while a
  61.           preceeding command is in progress.)  This type of reply can
  62.           be used to indicate that the command was accepted and the
  63.           user-process may now pay attention to the data connections,
  64.           for implementations where simultaneous monitoring is
  65.           difficult.                                                    11b1
  66.  
  67.        2yz   Positive Completion reply                                   11c
  68.  
  69.           The requested action has been successfully completed.  A
  70.           new request may be initiated.                                 11c1
  71.  
  72.        3yz   Positive Intermediate reply                                 11d
  73.  
  74.           The command has been accepted, but the requested action is
  75.           being held in abeyance, pending receipt of further
  76.           information.  The user should send another command
  77.           specifying this information.  This reply is used in command
  78.           sequence groups.                                              11d1
  79.  
  80.        4yz   Transient Negative Completion reply                         11e
  81.  
  82.           The command was not accepted and the requested action did
  83.           not take place, but the error condition is temporary and
  84.           the action may be requested again.  The user should return
  85.           to the beginning of the command sequence, if any.  It is
  86.           difficult to assign a meaning to "transient", particularly
  87.           when two distinct sites (Server and User-processes) have to
  88.           agree on the interpretation.  Each reply in the 4yz
  89.           category might have a slightly different time value, but
  90.           the intent is that the user-process is encouraged to try
  91.           again.  A rule of thumb in determining if a reply fits into
  92.           the 4yz or the 5yz (Permanent Negative) category is that
  93.           replies are 4yz if the commands can be repeated without any
  94.           change in command form or in properties of the User or
  95.           Server (e.g. the command is spelled the same with the same
  96.  
  97.     NWG/RFC# 640                               JBP NJN 5-JUN-74 16:07  30843
  98.     Neigus                                       FTP Reply Codes  [5]
  99.  
  100.  
  101.  
  102.           arguments used; the user does not change his file access or
  103.           user name; the server does not put up a new
  104.           implementation.)                                              11e1
  105.  
  106.        5yz   Permanent Negative Completion reply                         11f
  107.  
  108.           The command was not accepted and the requested action did
  109.           not take place.  The User-process is discouraged from
  110.           repeating the exact request (in the same sequence).  Even
  111.           some "permanent" error conditions can be corrected, so the
  112.           human user may want to direct his User-process to
  113.           reinitiate the command sequence by direct action at some
  114.           point in the future (e.g. after the spelling has been
  115.           changed, or the user has altered his directory status.)       11f1
  116.  
  117.        The following function groupings are encoded in the second
  118.        digit:                                                            11g
  119.  
  120.           x0z   Syntax - These replies refer to syntax errors,
  121.                   syntactically correct  commands that don't fit any
  122.                   functional category, unimplemented or superfluous
  123.                   commands.                                             11g1
  124.  
  125.           x1z   Information -  These are replies to requests for
  126.                   information, such as status or help.                  11g2
  127.  
  128.           x2z   Connections - Replies referring to the TELNET and
  129.                   data connections.                                     11g3
  130.  
  131.           x3z   Authentication and accounting - Replies for the logon
  132.                   process and accounting procedures.                    11g4
  133.  
  134.           x4z   Unspecified as yet                                      11g5
  135.  
  136.           x5z   File system - These replies indicate the status of
  137.                   the Server file system vis-a-vis the requested
  138.                   transfer or other file system action.                 11g6
  139.  
  140.        The third digit gives a finer gradation of meaning in each of
  141.        the function categories, specified by the second digit.  The
  142.        list of replies below will illustrate this.  Note that the
  143.        text associated with each reply is suggestive, rather than
  144.        mandatory, and may even change according to the command with
  145.        which it is associated.  The reply codes, on the other hand,
  146.        should strictly follow the specifications in the last section;
  147.        that is, Server implementations should not invent new codes
  148.        for situations that are only slightly different from the ones
  149.        described here, but rather should adapt codes already defined.
  150.  
  151.     NWG/RFC# 640                               JBP NJN 5-JUN-74 16:07  30843
  152.     Neigus                                       FTP Reply Codes  [6]
  153.  
  154.  
  155.  
  156.        If additional codes are found to be necessary, the details
  157.        should be submitted to the FTP committee, through Jon Postel.     11h
  158.                                                                              
  159.