You can translate the question and the replies:

Script for automate the windows services

Hi , Can any one provide the script for automation to get an alert when the denodo services are goes down. or script for automation to check for every 5 minutes the denodo services are in started or stopped state.
user
14-04-2016 22:45:12 -0400
code

2 Answers

We sometimes have an issue on Sunday mornings after our server is rebooted and it doesn't start up cleanly. We schedule this script to run - it assumes the service name is vdpserver50 - we also do the scheduler one. @ echo off for /F "tokens=3 delims=: " %%H in ('sc query "vdpserver50" ^| findstr " STATE"') do ( if /I "%%H" NEQ "RUNNING" ( net start "vdpserver50" ) ) for /F "tokens=3 delims=: " %%H in ('sc query "schedulerserver50" ^| findstr " STATE"') do ( if /I "%%H" NEQ "RUNNING" ( net start "schedulerserver50" ) ) echo Done
user
17-04-2016 11:40:10 -0400
Thank you .
user
18-04-2016 06:21:53 -0400
You must sign in to add an answer. If you do not have an account, you can register here