Posts Tagged ‘flushing’

Automated AR System MidTier Instances Cache flusing

September 8th, 2010

If you have a lot of Midtier Instances it is very cumbrous to flash all caches manually.

With this Windows batch script it is easy to flush all caches automatically.

Put the following content into a batch file and execute it. Windows XP don’t provide a sleep command, but you can download the Windows Resource Kit 2003 which will provide a sleep command.

Example for three Midtier instances:

start /B firefox.exe <url>/shared/config/config.jsp
sleep 10
start /B firefox.exe -new-tab <url>/shared/config/config.jsp
start /B firefox.exe -new-tab <url>/shared/config/config.jsp
sleep 10
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=logon^&password=<password>
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=logon^&password=<password>
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=logon^&password=<password>
sleep 10
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=Cache^&cache_flush=Yes
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=Cache^&cache_flush=Yes
start /B firefox.exe -new-tab
<url>/servlet/GoatConfigServlet?action=Cache^&cache_flush=Yes

Note: Update the bat file if necessary, like the browser that being used and login credentials

Get the batch file here.

Credits: risbo710 (REM Boris, Noack@eon.com)

%d bloggers like this: