Loyd

I don't think you will ever get the exact string as entered, say, in a Windows client, because what is entered in the client is never passed as is - it is translated into server side requests. In this case, it appears that your "put" from the viewpoint of the client is converted to a "get" (STOR, probably) from the viewpoint of the server. And it has converted the NAMEFMT 0 (library/object) syntax of "loyd/me" to the NAMEFMT 1 (path naming) syntax.

So you need to do some parsing to get what you want, and it still may not get you everything. E.g., I don't know enough of the RFC for FTP to know how the server knows what is the object on the client - unless it doesn't, and it only knows to read from a socket. That makes sense - it only needs to know where on its machine to put the data.

HTH
Vern

At 11:58 AM 4/15/2004 -0500, you wrote:
Hi Rob,

I'm already looking at the FTP exit points, V5R2.

The information center shows 3 exit points for FTP: client request
validation, server request validation, and server logon. None of these shows
me the command issued by the client.

>From my XP box:
ftp> put me.savf loyd/me

What I see in the FTP server request validation exit point (VLRQ0100
format):
Application ID: 1 (ftp server)
Operation ID: 7 (receive file from client)
Operation information: /QSYS.LIB/LOYD.LIB/ME.FILE (requested target path)

Nowhere do I see "put me.savf loyd/me"

I want to see/log the actual put command (or any other command) the client
issues. I would write this information to a log file on the iSeries.

Thanks,
Loyd

-----Original Message-----
From: rob@xxxxxxxxx [mailto:rob@xxxxxxxxx]
Sent: Thursday, April 15, 2004 10:46
To: Midrange Systems Technical Discussion
Subject: Re: FTP server side logging?

Search for FTP EXIT POINT. I've done this myself.

Rob Berendt

"Goodbar, Loyd (ETS - Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>

Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Is it possible to log the commands issued by the client, on the FTP
server?
I'm working with the FTP server request validation (QIBM_QTMF_SERVER_REQ).
While it is useful to know the class of command being requested (get
files,
list files, etc.), it would be really nice to know the exact command as
presented by the client for auditing/logging purposes.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.