COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: gatorfe on 02 Sep 2015 01:11:28 PM

Title: How to check if Cognos website is down
Post by: gatorfe on 02 Sep 2015 01:11:28 PM
We are trying to create a checkpoint(preferably through a scheduled task) to make sure the cognos connection website is up and running.  We outsourced our servers and there has been some issues with server up time during business hours.  Before the users notice that the website is down we would like to get notified by email or text.  Any simple solutions exist out there?
Title: Re: How to check if Cognos website is down
Post by: bdbits on 02 Sep 2015 03:29:59 PM
You can use Powershell. Here is an example.
https://dmitrysotnikov.wordpress.com/2008/05/29/monitor-web-site-availability/ (https://dmitrysotnikov.wordpress.com/2008/05/29/monitor-web-site-availability/)

(I have no affiliation or endorsement of the above site, I just googled for it.)
Title: Re: How to check if Cognos website is down
Post by: nagoole on 17 Sep 2015 05:19:43 AM
Hi bdbits,

Can you please let me the step by step to do this ?

How to use this code in Power shell ?

Thanks,
Nagoole
Title: Re: How to check if Cognos website is down
Post by: MFGF on 17 Sep 2015 08:07:22 AM
Quote from: nagoole on 17 Sep 2015 05:19:43 AM
Hi bdbits,

Can you please let me the step by step to do this ?

How to use this code in Power shell ?

Thanks,
Nagoole

Well, if I read Bob's post accurately, he just told you he googled for that answer. That says to me that he hasn't used it much if at all. Why in that case are you asking him for step-by-step instructions? Why aren't you out there on the internet researching how to do it yourself and then posting up the answer once you figure it out?

MF.
Title: Re: How to check if Cognos website is down
Post by: nagoole on 17 Sep 2015 09:23:21 AM
Thanks for your advise  ;D
Title: Re: How to check if Cognos website is down
Post by: Michael75 on 17 Sep 2015 02:45:56 PM
There's also this command to find out the status of a Cognos server:

http://<machine.domain.com>:<9300>/p2pd/servlet (//http://<machine.domain.com>:<9300>/p2pd/servlet)

Insert your own <server name> and <port>

I'm attaching sample output from this. The final line shows "State: Running" for a primary server, and "State: Running as standby" for a secondary server.

If you're not comfortable with the PowerShell suggestion, maybe you could run this command and then parse its output?

Title: Re: How to check if Cognos website is down
Post by: gatorfe on 16 Oct 2015 09:47:42 PM
We got the command to work and shows us a status.  Thank you.  Any info on how to automate that into a scheduled task?