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

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
PatrickF
Posts: 30
Joined: Thu Nov 26, 2015 1:31 pm

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

Post 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 8804 times
BrendanB
Posts: 134
Joined: Tue Nov 24, 2015 10:29 am

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

Post 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.
Post Reply