Tuesday, September 12, 2017

Start & Stop Cordys Services though a batch file

If at all Cordys has been installed on your local machine then abnormal termination of  system always leads to getting crash of your CARS / Monitor, to come out of this you can always create a batch file to start/stop cordys services

To start the Services
======================================================
@ECHO OFF
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Started all services
PAUSE

To Stop the Servics
=======================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
ECHO Stopped all services
PAUSE

To restart
====================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Restarted all services
PAUSE


-- Narasimha Reddy, Lomadi

No comments:

Post a Comment

Generating a CSR with Java keytool , deploying the certificates in keystore and configuring the same in the tomEE server.

  Deploying security certificates is a three-step process in general 1. CSR Generation 2. Importing the certificatates into the keystore 3. ...