HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to purge FTP log file

 
Biessy Bernard
Occasional Visitor

How to purge FTP log file

Hello,

Before, in my SYS$SYSDEVICE:[UCX$FTP] directory, I have many few log files :
UCX$FTPD.LOG;15109 2 6-SEP-2004 03:47:17.11
UCX$FTPD.LOG;15108 4 6-SEP-2004 03:21:54.97
UCX$FTPD.LOG;15107 6 6-SEP-2004 03:10:06.10
UCX$FTPD.LOG;15106 4 6-SEP-2004 02:51:28.06

Now, I have only one big file :
UCX$FTPD.LOG;15110 258549 6-SEP-2004 03:59:45.37
who is locked by UCX$FTPD process.

My version ?
$ ucx sho vers
Digital TCP/IP Services for OpenVMS Alpha Version V4.2 - ECO 4
on a AlphaServer 4X00 5/533 4MB running OpenVMS V7.1-2

So, my question is : how can I come back to before, or for example, one file by day, if possible without stopping the process.

Thank's for your help.
8 REPLIES
Wim Van den Wyngaert
Honored Contributor

Re: How to purge FTP log file

You need to stop the ftpd process.
But why is the process always present ?

Doing ftp all the time or is the timeout set on service ftp put on a very high value ? If you set the timeout e.g. to 5 minutes the process will stop without intervention when there is no activity during 5 minutes.

Wim
Wim
Biessy Bernard
Occasional Visitor

Re: How to purge FTP log file


Yes, I have many activity, but no more than before, for example, now :
$ sho sys /proc=*ftp*
OpenVMS V7.1-2 on node ADONIS 26-OCT-2004 14:44:59.03 Uptime 79 22:25:28
Pid Process Name State Pri I/O CPU Page flts Pages
2026FC66 UCX$FTPC_503683 HIB 5 320 0 00:00:00.27 759 247 N
203C4D74 UCX$FTPD LEF 9 32683651 0 02:51:51.64 289 258 N
202A7DAE UCX$FTPC_502004 HIB 5 1169 0 00:00:00.36 246 239 N
2025F9EA UCX$FTPC_449786 HIB 6 8381 0 00:00:07.71 258 272 N
202931FD UCX$FTPC_492246 HIB 6 6940 0 00:00:05.10 262 275 N


And the inactivity is already set to 5 :
$ ucx sho service ftp /FULL

Service: FTP
State: Enabled
Port: 21 Protocol: TCP Address: 0.0.0.0
Inactivity: 5 User_name: UCX$FTP Process: UCX$FTPD
Limit: 50 Active: 7 Peak: 19

File: SYS$SYSDEVICE:[UCX$FTP]UCX$FTPD_STARTUP.COM
Flags: None

Socket Opts: Rcheck Scheck
Receive: 0 Send: 0

Log Opts: Acpt Actv Dactv Conn Error Exit Logi Logo Mdfy Rjct TimO Addr
File: SYS$SYSDEVICE:[UCX$FTP]UCX$FTPD_STARTUP.LOG

Security
Reject msg: not defined
Accept host: 0.0.0.0
Accept netw: 0.0.0.0

Another question, what's happend if I stop/start the FTPD process during activity with SYS$STARTUP:UCX$FTPD_SHUTDOWN.COM and UCX$FTPD_STARTUP.COM ?
Biessy Bernard
Occasional Visitor

Re: How to purge FTP log file

It is 1 hour since my previous reply and I see that there is the same clients processes :

$ sho sys /proc=*ftp*
OpenVMS V7.1-2 on node ADONIS 26-OCT-2004 15:54:48.21 Uptime 79 23:35:17
Pid Process Name State Pri I/O CPU Page flts Pages
203C4D74 UCX$FTPD LEF 9 32727106 0 02:52:04.21 289 258 N
202A7DAE UCX$FTPC_502004 HIB 6 1490 0 00:00:00.43 246 239 N
2025F9EA UCX$FTPC_449786 HIB 6 8381 0 00:00:07.71 258 272 N
202931FD UCX$FTPC_492246 HIB 6 6940 0 00:00:05.10 262 275 N

So, why the client doesn't disconnect after the FTP transfert ?
Wim Van den Wyngaert
Honored Contributor

Re: How to purge FTP log file

As I understand it, the service inactivity timeout is for FTPD. For the client it is determined by logical UCX$FTPD_IDLETIMEOUT which defaults to 15 minutes.

But on my 6.2 / ucx 4.2 the FTPD never dies and the client dies directly upon exit of ftp (no logical active). Strange.

In any case, stopping ftpd with stop/id (or by name) will stop the ftpd process and leaves the clients alive. It will restart on next arrival of an ftp request.

Wim
Wim
Willem Grooters
Honored Contributor

Re: How to purge FTP log file

If the FTP server component is defined and started, this log-file will be created and as long as the server is running, the file will be locked. Under quiet circumstances the server won't do anything but listening to port 21.

To purge the logs you have to stop the server - UCX$FTPD. There is no way around it.
Willem Grooters
OpenVMS Developer & System Manager
Bojan Nemec
Honored Contributor

Re: How to purge FTP log file

Hi,

Seems that ftp clients can hang on this and previous versions of UCX. I see such hangs when I try to ftp from a linux system to an VMS 6.2 UCX V4.1 - ECO 4 (from VMS to linux works properly).
Also some other services tends to not see when the network partner exited.
You can stop these processes (first see if they are enough "old" issuing a SHOW PROCESS/ID= /ACCOUNTING command).

Stoping FTPD on the V4.1 causes also the clients to abort with a:
421 Service not available
error. Next ftp session will reestablish the FTPD process. But all clients (FTPC) must be also stoped, because the new FTPD create clients with numbers in sequence and when encouters a process with an equal name the client dies with:
530 Failed to create child process. Login rejected.
So be careful when stoping processes.

Bojan
Antoniov.
Honored Contributor

Re: How to purge FTP log file

Hello Biessy,
from me Welcom to VMS :-)

Who is your client? I guess some your client has activate keepalive functionality so server never die.
To workaround keepalive you must set time out less little than keepalive refresh time; you can try with a very little value than increase it until server never die.

HTH
Antonio Vigliotti
Antonio Maria Vigliotti
Biessy Bernard
Occasional Visitor

Re: How to purge FTP log file

Hello,

Thank's for your reply, they help me. I don't know my clients, there are thousand computers in our computer rooms, but most are NT and Solaris.

VMS plate-form is a cluster with 2 nodes who centralize many files exchange (with FTP) between applications.

Regards.