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.
Solved! Go to Solution.
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.
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.
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.
Allen:
Will you have some code in the 2nd batch file to check that ArcGIS Server has successfully stopped?