FTP Server Activity Log

The FTP Server Activity Log displays data for FTPs that are still in progress, as well as those FTPs that have completed. The FTP command enables you to transfer data sets between your local host and any host that supports TCP/IP. Information shown in the FTP Server Log includes the commands typed in for each FTP during the progress of the session.

In the log, you may select four kinds of events:

Open connection

The initial stage of FTP logon, or whenever the user executes an OPEN command to open a new connection. This record contains the IP address.

Password verification

Immediately after the user enters the password. The password is not shown.

FTP Subcommand

Whenever the user enters an FTP command - Get, Put, Delete, etc. In this type of event, you may see an "Arg" field that may contain additional information such as the data set name being transferred. To view more FTP subcommands and explanation, please select FTP subcommands.

FTP Completion (POST)

The completion of the FTP commands RETR, STOR, STOU, APPE, DELE and RNTO.  This record contains the reply code, directory type (MVS or HFS), file type (SEQ, JES or SQL), and the close reason code (file transfer completion code) of the FTP command.  The close reason code contains the following information:

0 – Transfer completed normally.

4 – Transfer completed with errors; a reply text string will also be displayed.

8 – Transfer completed with socket communication errors; transfer is ended and no response can be sent to client.

12 – Transfer aborted after data connection was established.

16 – Transfer aborted with SQL file errors after data connection was established.

Note: This record is generated by the FTPOSTPR exit, which is available only in OS/390 2.10, and z/OS 1.1 and later releases.

 


A sample output of the FTP Server Activity Log follows:

FTP Open Connection, IP=137.72.43.26,Port=1050
FTP LOGIN, USER=P390
FTP CMD=USER ,USER=  ,ARG=p390
FTP CMD=PASS ,USER=P390 ,ARG=
FTP CMD=TYPE ,USER=P390 ,ARG=A
FTP CMD=PORT ,USER=P390 ,ARG=137,72,43,26,4,27
FTP CMD=RETR ,USER=P390 ,ARG= aes.t40djc.c(aest002)
FTP CMD=CWD ,USER=P390T ,ARG= AESCYT1.MAIN.C

Figure 69. FTP Server Log Filter 

You may select the following fields to filter the log:

Start Date

Select FROM this date of transmission. (mm/dd/yyyy)

Start Time

Select FROM this time of transmission. (hh:mm:ss)

End Date

Select TO this date of transmission. (mm/dd/yyyy)

End Time

Select TO this time of transmission. (hh:mm:ss)

Address

Select records only for this IP address.

User ID

Select records only for this User ID.

Foreign Port

Select records only for this remote port number.

FTP Subcommand

Select records only for this type of FTP subcommand. Valid subcommands include: STOR, REN, DELE, etc. Select FTP subcommands to view more FTP subcommands/explanations.

FTP Reply Code

Select FTP Completion records with a reply code that is either equal to or not equal to the specified value.

FTP Reason Code

Select FTP Completion records with a reason code that is either equal to or not equal to the specified value.  Valid values are: 0, 4, 8, 12 and 16.

The following is a listing of FTP subcommands and their functions:

Subcommand

Description

?

Provides information to use FTP.

!

Passes an OS/390 UNIX System Services command to the local OS/390 shell. This command must be executed while using FTP in the OS/390 shell.

ACcount

Sends host-dependent account information.

APpend

Appends a data set on your local host to a file on the foreign host.

AScii

Sets the transfer type to ASCII.

BIG5

Sets the transfer type to BIG5. BIG is the minimum abbreviation for BIG5.

Binary

Sets the transfer type to IMAGE.

Block

Sets the data transfer mode to block mode. This is equivalent specifying the MODE B subcommand.

CD

Changes the working directory.

CDUp

Changes to the parent of the current working directory.

Close

Disconnects from the foreign host.

COMpress

Sets the data transfer mode to compressed mode. This is equivalent to specifying the MODE C subcommand.

CWd

Changes the working directory. (Synonymous with CD)

DEBug

Toggles or sets internal debug options.

DELEte

Deletes a single file on the foreign host.

DELImit

Displays the delimiter character between the file_name and file_type.

Dir

Lists the directory entries for files on the foreign.

Ebcdic

Sets the transfer type to EBCDIC.

Euckanji

Sets the transfer type to EUCKANJI.

File

Sets the file structure to file. This is equivalent to specifying the STRUCTURE F subcommand.

Get

Copies a file from the foreign host to your local host.

GLob

Toggles globbing (the expansion of metacharacters in file names) for the MDELETE, MGET, and MPUT subcommands.

Hangeul

Sets the transfer type to HANGEUL.

Help

Displays help information for FTP.

Ibmkanji

Sets the transfer type to IBMKANJI.

JIS78kj

Sets the transfer type to JIS78KJ.

JIS83kj

Sets the transfer type to JIS83KJ.

Ksc5601

Sets the transfer type to KSC5601.

LCd

Changes the current directory on the local host.

Lmkdir

Creates a PDS on the local host.

LOCSIte

Specifies information that is used by the local host to provide services specific to that host system.

LOCSTat

Displays FTP status information for the local host.

LPwd

Displays the name of the active working directory on the local host.

LS

Lists the names of files on the foreign host.

Mdelete

Deletes multiple files on the foreign host.

Mget

Copies multiple files from the foreign host to your local host.

Mkdir

Creates a directory on the foreign host.

Mode

Specifies the mode or data format of the transfer.

Mput

Copies multiple files on your local host to the foreign host.

Noop

Checks whether the foreign host is still responding.

Open

Opens a connection to a foreign host.

Pass

Supplies a password to the foreign host.

When you are finished entering parameters, click the Submit button to open the Server Activity Log screen.

See also: