Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch process to check Cognos Services 1

Status
Not open for further replies.

Moortt

MIS
Apr 17, 2007
6
I would like to know if its possible to have a scheduled job that checks the cognos services every morning to see if all the services are running. Would it be possible to restart a service via the batch program if it has been disabled ? Any help will be appreciated

Thanks
Thangam
 
I don't know about checking, but I have a script that stops and starts the PPES service so that I can work on the audit file. 'tis trivial to amend it so that it stops and starts all the relevant services.
Code:
Rem Stop Service
Net Stop "Cognos PowerPlay Enterprise Server (cer5)"

"C:\Program Files\Cognos\cer5\bin\PPESAuditFileProcessor" -dbname PPES -dbconnect ";LOCAL;OD;DSN=PPES" -dbuser dr.lex -dbpass clarkkent -auditlocation "C:\Program Files\Cognos\cer5\ppserver"

Rem Start Service
Net Start "Cognos PowerPlay Enterprise Server (cer5)"

soi la, soi carré
 
The Net Stop command seems to work. I had to make sure that the Cognos IWR Service Manager was running every morning so i just added the commands to stop and restart the services to the scheduled job. Thank you so much for your help.

- Thangam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top