3 Replies Latest reply on Nov 20, 2013 4:16 PM by Russell Christopher

    Automating tableau server status

    Venkata Krishna

      I'm automating tableau server status using a bat file and facing a situation after it checks that server is running or not and if it's not it has to send an email that server is not up and runnning.


      Below is the code snippet which is not working.


      tabadmin.exe status | findstr /i RUNNING

         if "%errorlevel%"=="0" GOTO IsRunning

         ECHO "Server is not running!"


         ECHO "Server is running!"


      Also, how can we send an email in the above code.