I'm looking to schedule an automatic restart of ArcGIS Server

2649
3
Jump to solution
11-02-2015 10:33 AM
AllenScully
Occasional Contributor II

Using a batch file + windows task scheduler.  Looks like AGSSOM is not an option (we're using 10.3.1)  No need to look at indivicual services, just whole ArcGIS Server Service on a machine, essentially as part of a maintenance window (windows updates done over the weekend occasionally have a detrimental effect on our service).

This seems very straightforward, but am having a hard time finding a way to do this.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

I think you'll just need a very small batch file along the lines of:

@echo off

net stop "ArcGIS Server"

net start "ArcGIS Server"

save as whatever.bat and schedule it. Will need admin permissions to run. I'm guessing that it'll wait for the service stop before it tries to restart, but not sure.

View solution in original post

3 Replies
by Anonymous User
Not applicable

I think you'll just need a very small batch file along the lines of:

@echo off

net stop "ArcGIS Server"

net start "ArcGIS Server"

save as whatever.bat and schedule it. Will need admin permissions to run. I'm guessing that it'll wait for the service stop before it tries to restart, but not sure.

AllenScully
Occasional Contributor II

Great - that works, thanks.

Just going to have 2 batch files - one to stop, one to start, where the start one runs after the stop one successfully completes.

MichaelVolz
Esteemed Contributor

Allen:

Will you have some code in the 2nd batch file to check that ArcGIS Server has successfully stopped?

0 Kudos