You can use the DBUG subcommand to track down problems on the FTP server.
The FTP server can be traced from any iSeries™ or non-iSeries server that runs TCP/IP. There are two ways to trace the FTP server. The FTP server DBUG subcommand traces within an FTP server session. The Trace TCP/IP Application (TRCTCPAPP) command allows system wide tracing of all the FTP servers.
To trace the FTP server, follow these steps:
___________________________________________________________________________________ | | | File Transfer Protocol | | | | Previous FTP subcommands and messages: | | Connecting to host name xxxxxnnn.xxxxxxxx.xxx.xxx at address | | n.nnn.nn.nnn using port 21. | | 220-QTCP at xxxxxnnn.xxxxxxxx.xxx.xxx. | | 220 Connection will close if idle more than 5 minutes. | | 215 i5/OS is the remote operating system. The TCP/IPversion is | | "V4R4M0". | | > | | 331 Enter password. | | 230 TEST logged on. | | 250 Now using naming format "0". | | 257 "QGPL" is current library. | | > quote dbug | | 250 Debug mode is now ON. | | Enter an FTP subcommand. | | ===> quote dbug | | | | | | | | F3=Exit F6=Print F9=Retrieve | | F17=Top F18=Bottom F21=CL command line | | | | | |__________________________________________________________________________________|
DSPSYSVAL QPRTDEV
For example, the following display appears:
__________________________________________________________________________________ | | | Display System Value | | System value . . . . . : QPRTDEV | | Description . . . . . : Printer device description | | Printer device . . . . : PRT01 Name | | |
The printer device is also the name of the default system output queue.
WRKOUTQ OUTQ(printer-device)
Replace printer-device with the printer device recorded in the previous display. PRT01 is the output queue in this example. For example, the following display appears:
__________________________________________________________________________________ | | | Work with Output Queue | | Queue: PRT01 Library: QGPL Status: RLS | | Type options, press Enter. | | 1=Send 2=Change 3=Hold 4=Delete 5=Display 6=Release 7=Messages | | 8=Attributes 9=Work with printing status | | Opt File User User Data Sts Pages Copies Form Type Pty | | _ QTCPPRT QTCP QTMSMTP HLD 46 1 *STD 5 | | _ QTMFFTRC QSECOFR HLD 44 1 *STD 5 | |
Indicate in the problem report that the trace was tried and it failed. Send whatever trace information there is with the problem report.
The following example uses the FTP server DBUG subcommand:
___________________________________________________________________________________ | | | File Transfer Protocol | | | | Previous FTP subcommands and messages: | | Connecting to host name xxxxxnnn.xxxxxxxx.xxx.xxx at address | | n.nnn.nn.nnn using port 21. | | 220-QTCP at xxxxxnnn.nnnnnnnn.nnn.nnn. | | 220 Connection will close if idle more than 5 minutes. | | 215 i5/OS is the remote operating system. The TCP/IPversion is | | "V4R4M0". | | > | | 331 Enter password. | | 230 TEST logged on. | | 250 Now using naming format "0". | | 257 "QGPL" is current library. | | | | | | | | Enter an FTP subcommand. | | ===> quote dbug | | | | | | | | F3=Exit F6=Print F9=Retrieve | | F17=Top F18=Bottom F21=CL command line | | | | | |__________________________________________________________________________________|
The Trace TCP/IP Application (TRCTCPAPP) command allows system-wide tracing of all the FTP servers.
The TRCTCPAPP command is provided specifically for trained service and development personnel. *SERVICE special authority is required to use this command. Use TRCTCPAPP in situations that require the capturing of trace data for service and development use. This command allows experienced personnel to dynamically start and stop tracing for applications.
Here are two examples of the use of the TRCTCPAPP command:
Example 1:
TRCTCPAPP APP(*FTP) SET(*ON)
This will start tracing for all FTP servers. Tracing for all other TCP applications is not affected.
Example 2:
TRCTCPAPP APP(*FTP) SET(*CHK)
This command is used to check the status of the tracing for the FTP server job(s). Assume that the last command entered was: >
TRCTCPAPP APP(*FTP) SET(*ON) USER(JOECOOL)
The format of the response to this command would be a set of messages that would look similar to the following commands:
TCP45B7 TRCTCPAPP APP(*FTP) SET(*ON) USER(JOECOOL) MAXSTG(*DFT) TRCFULL(*WRAP) TCP45B1 Tracing active for *FTP. TCP45B2 Data capture begun for *FTP. TCP45B3 Data buffer wrapped for *FTP.