AS/400 HELP
"FTPLOG2”

FTPLOG2 is a combination of two programs.
FTPLOG2 is an EXIT program attached to
4 exit points that log FTP command
activity to a file .
FTPHIST2 displays the file.
FTPLOG2 was developed and tested at V4r5
and V5r1.
PC INSTRUCTIONS:
Download "FTPLOG2LB to your PC.
Go to a DOS session and enter the following;
FTP SYSTEM (system = your AS/400’s
name or IP address)
Enter a valid user id and password
CD QGPL
LCD C:\DIRECTORY (directory= the directory on your pc where you
downloaded “ ftplog2lb.savf”
QUOTE
SITE NAMEFMT 1
BIN
PUT
FTPLOG2LB.SAVF
QUOTE RCMD
RSTLIB SAVLIB(FTPLOG2) DEV(*SAVF)
SAVF(QGPL/FTPLOG2LB)
Note: If there is a security problem restoring all
objects with the command above, sign on
to your as/400 as Qsecofr and run RSTLIB
from the command line.
AS/400
INSTRUCTIONS:
DO NOT ATTEMPT
TO INSTALL FTPLOG2 WITHOUT PERMISSION FROM YOUR AS/400 ADMINSTRATOR.
DO NOT ATTEMPT
TO INSTALL FTPLOG2 WITHOUT A FULL UNDERSTANDING OF THE COMMANDS LISTED BELOW.
1) In order for
FTPLOG2 to work it must be registered as an EXIT program.
2) The log files
FTPLOG2 and its logical FTPLOG2L1 must be copied to library QUSRSYS as it’s assumed QUSRSYS is in the
library list when FTPPOG2 is called.
Use the command: DSPSYSVAL
QSYSLIBL to verify that QUSRSYS is in the list. If not you must change this
library list to include QUSRSYS. Do NOT
install FTPLOG2 if QUSRSYS is not in this library list as the FTP server may
reject all command requests. (for some reason FTPLOG2 failed with certain
libraries when I put LIBLOG2 & FTPLOG2L1 in QGPL hence the instruction to
move the files into QUSRSYS)
3) The
instructions below were tested on V4r5 and V5r1 AS/400s. They may not apply or
work on other releases. FTPLOG2 may not work on subsequent releases.
4) Take note of
all EXIT PROGRAMS before you install a new release as IBM may erase them during
the install process of the new release.
On the command
line enter:
MOVOBJ
OBJ(FTPLOG/FTPLOG2) OBJTYPE(*FILE) TOLIB(QUSRSYS)
MOVOBJ
OBJ(FTPLOG/FTPLOG2L1) OBJTYPE(*FILE) TOLIB(QUSRSYS)
WRKREGINF
scroll down to “QIBM_QTMF_CLIENT_REQ VLRQ0100”
OPTION 8
OPTION 1
(add) enter OPT
Exit Library
1 FTPLOG2 FTPLOG2
press enter to
add FTPLOG2 as an exit program
Repeat the WRKREGINF command for:
Exit Point Format
“QIBM_QTMF_SERVER_REQ VLRQ0100”
“QIBM_QTMX_SERVER_REQ VLRQ0100”
“QIBM_QTMX_SVR_SELECT RXCS0100”
The FTP &
REXEC servers must be stopped and restarted in order for FTPLOG2 to work.
Enter:
ENDTCPSVR
SERVER(*FTP)
ENDTCPSVR
SERVER(*REXEC)
STRTCPSVR
SERVER(*FTP)
STRTCPSVR
SERVER(*REXEC)
NOTE: if FTPLOG2
is not properly installed your FTP / REXEC servers may reject all users. To
cancel FTPLOG2 use the following commands:
WRKREGINF use option 8 (remove) on the above Exit
Points
ENDTCPSVR
SERVER(*FTP)
ENDTCPSVR
SERVER(*REXEC)
STRTCPSVR
SERVER(*FTP)
STRTCPSVR
SERVER(*REXEC)
To view FTP
server sign-on attempts:
ADDLIBLE FTPLOG2
CALL FTPHIST2