Thursday, June 4, 2020

Clear Dispatcher cache remotely via shell script | Windows BAT script

There are number of ways to clear dispatcher cache- This article talks about how to clear it using batch or shell script.

Read the following article for other options e.g. curl script, replication agent etc.- https://aem6solutions.blogspot.com/2019/11/cache-clearance-in-dispatcher.html

Many times we need to ssh remote servers to run specific linux commands manually. If you have to run it quite often and run the same command on multiple servers doing it manually becomes hectic. Below is sample code which you can use to create a shell script (In Linux) or a Batch program (In Windows).

1. The first file is the executable batch file- I have wrote it for windows but it can be written in shell script for Linux as well.

2. The second file - clear-cache-remote.cmd - lists all the commands that you want to run as a group.

No comments:

Post a Comment

CDN | Clearing Cloudflare cache

In order to clear Cloudflare cache automatically via code, follow below steps: 1. Develop Custom TransportHandler Develop a custom Trans...