Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Wednesday, June 10, 2020

Update Dispatcher Configuration in bulk remotely with Help of Batch/ Shell Script

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 - "sample-dispatcher-update-config-commands.cmd" - lists all the commands that you want to run as a group.

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.

Wednesday, July 31, 2019

Free port 80 in windows

Problem:

While you are using certain application like nginx, apache etc. which run on port 80, you may face issue sometimes with the starting up of these applications reason being the port 80 already in use by some other application. 

Solution:

In order to free the port, follow these steps:

1.    Click Start > Settings > Ethernet >Network and Internet > Windows Firewall
2.       In the left pane, click Advanced Settings
3.       In Windows Firewall with Advanced Security, click Inbound Rules.
4.    Sort Items by "Network Protocol" column
4.       Find Local Port 80 with Protocol TCP.  It might be "World Wide Web Services (HTTP Traffic-In)" or Citrix or Skype or Apache
5.       Once you find it, stop or disable that rule from Windows Services 

Try starting your application again.

CDN | Clearing Cloudflare cache

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