Page 1 of 1

How to automate LANSA web cleanup on a Windows app server ?

Posted: Fri Sep 27, 2024 5:15 am
by PatrickF
LANSA on the IBMi has a batch interface for running the LANSA web cleanup documented here https://docs.lansa.com/15/en/lansa085/c ... ek_005.htm so cleanup can be automated when the LANSA subsystem and/or Apache web server is restarted periodically.
On Windows, the documentation at https://docs.lansa.com/15/en/lansa085/c ... s0n010.htm tells me how to interactively run Web cleanup from Web Administrator , but no details on how to automate this from a BAT or Powershell Script run from the Windows Task scheduler.

The cleanup should end and restart the processes below. I noticed that ending and starting IIS did not cause them to stop. I know that Powershell can kill tasks, but the cleanup does cleanup to LANSA internal tables on Windows also. A webevent app is running on the Windows App Server.
Windows web processes.png
Windows web processes.png (45.4 KiB) Viewed 8807 times

Re: How to automate LANSA web cleanup on a Windows app server ?

Posted: Mon Sep 30, 2024 8:50 am
by BrendanB
Patrick,

in your ..\x_win95\x_lansa\execute directory you will find:

w3_p2200.exe

i believe this is the 'windows' version of W3@P2200 (and it looks like you can probably pass it parameter *WAMONLY if you only want to remove web session data).

so this is most likely the way to execute a cleanup from 'batch'.

Brendan.