MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » January 2014

Re: put time stamp in FTP session log



fixed

On 24-Jan-2014 09:49 -0800, Gary Thompson wrote:
I want to see "system time" in our FTP logs.

We transfer bunches of files daily to a central distribution point
from where the files are translated and re-distributed to various
points around the Western US.

The ability to chase/fix problems has us working to get detailed and
accurate info about each file transfer at each point in the "path".

A quick check of my V6R1 FTP manual shows LIST or NLST subcommands
produce entries which include "modification time".

I want "current system time" so the hack that comes to mind is:
have a dedicated folder: systime
update a dedicated file: /systime/curtime
issue FTP LIST command: LIST systime curtime

A better way ?

I have a simple CL program that I call to do that:
QUOTE RCMD CALL TIMESTAMP

The FTP log is kind enough to copy the result of an Escape message to its log. Of course the RCMD feature can not be disabled. The CLP is of course nothing but RTVSYSVAL QDATETIME and then SNDPGMMSG an escape to the invoker.






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact