Operating System - OpenVMS
1753466 Members
4742 Online
108794 Solutions
New Discussion юеВ

Re: OpenVMS Monthly Uptime Report

 
SOLVED
Go to solution
Dante_5
Occasional Advisor

OpenVMS Monthly Uptime Report

I have been looking for a solution to gather the monthly uptime for OpenVMS systems. I am thinking of a DCL procedure to keep track of this time. As we know when a system is rebooted, the OpenVMS Uptime is reseted and starts over.

I need to get a percentage for more than 100 hosts, in this is in regard of diverse SLAs we have.

I have found a couple of software tools that might help, Availability Mgr. from HP, and Heroix eQ Management Suite, but I think the use of these software seems to be too much just for getting this number, and they might not be worse buying.

Any helps or tips would really be appreciated.

Thanks.
Dante Villarreal
21 REPLIES 21
John Gillings
Honored Contributor
Solution

Re: OpenVMS Monthly Uptime Report

Dante,

This depends on your definition of "uptime" and the granularity you require. You obviously know about F$GETSYI("BOOTTIME"), so it's easy to work out if the boot time is before the start of the current month (100%!), the tricky bit is if the boot time was within the month - how to work out how much time the system was up prior to the boot?

There are numerous places to look for time stamped evidence of a startup - OPERATOR.LOG, ACCOUNTNG.DAT, SECURITY.AUDIT$JOURNAL. You can either rely on things you expect to find on a "normal" system or put things there yourself. The biggest trick would be working out when an unexpected shutdown occurred.

The biggest problem would be finding matching pairs of time stamps that represent downtime.

Perhaps a simple mechanism which would measure time that the system was operating normally is a kind of "piggy bank". Give the system a token for each uptime sample.

Have a batch job execute at regular intervals (the interval will be the granularity of the measurement). Use a system logical name to keep track of the last execution, take the difference and write a record, with time stamp, to a file.
Your report can then be calculated for any time period by summing the records in your period of interest. If there is no previous time, then you must be the first execution since boot time.

There's also the "Uptimes Project" at http://uptimes.hostingwired.com/

I have no idea what their definition is, how the agent works, if you can access the information they collect directly from the node, or if it works without feeding the data back to the project web site.
A crucible of informative mistakes
Dante_5
Occasional Advisor

Re: OpenVMS Monthly Uptime Report

Thank you so much for your help John. I am not really experienced in writing DCL procedures, but you certainly have given me good ideas and I am going to research on that.
Regards,
Dante
Anton van Ruitenbeek
Trusted Contributor

Re: OpenVMS Monthly Uptime Report

Dante,

What we do is every day and during booting time we rename the operator.log to operator_._ . Because VMS is (in our case) creating at boottime this file, writing also when shutting down. When a system boots we need to check for more versions (also during the daily rename) . When you want to get track of the uptime (or downtime depends of how you looking) you can create a job to look simply across these filename in stead of digging these files.

AvR
NL: Meten is weten, maar je moet weten hoe te meten! - UK: Measuremets is knowledge, but you need to know how to measure !
Stephen_67
New Member

Re: OpenVMS Monthly Uptime Report

Hi Dante,

HP has a product for VMS called LAR (Local Availability Reporter) This reports uptime, if downtime was planned, unplanned etc. It produces monthly reports and emails them to you and also into eSMG (Electronic Site Management Guide) . If you contact your HP Services rep they will be arrnage for you to get a copy and see if it meets your needs

regards
Steve
Mobeen_1
Esteemed Contributor

Re: OpenVMS Monthly Uptime Report

Hello Dante,
If you consider uptime to be the time for which a node has been up and running. Then i would suggest that you use lexical function GETSYI and look for BOOTTIME on each of the nodes that you want to capture the uptime on and then you need to do some DCL.

Take current time in your DCL for each node and then subtract it from the boot time that you get from your lexical.

I would say that you start of on one node ... get the BOOTTIME and CURRENT TIME
Then subtract the BOOTTIME from CURRENT TIME. Once you deem that this is what you are looking for. Then you can look at other nodes/clusters.

If your clusters are spread across diff networks and time zones then you may run into other issues. Once you get there, throw the issue out here and i am sure, one of us will come up with a solution/idea/workaround.

All the best

regards
Mobeen
Dante_5
Occasional Advisor

Re: OpenVMS Monthly Uptime Report

Many thanks to Stephen and Mobeen.
I had not heard of that product, i'll find out , sounds it might be the easy way.

Stephen: Do you know if this product is included with the Operating System at no extra cost ?

Mobeen: I am currently working on lexical functions. The most difficult part is to calculate the uptime for a calendar month, let's day, May 1st at 00:00 to May 31st 23:59. I need to calculate this, but considering that we have planeed downtime. If for example the host was up during the normal operational hours, and just except for the planned maintenance windows, then that host would have a 100% uptime.
Stephen_67
New Member

Re: OpenVMS Monthly Uptime Report

Hi Dante

It depends on the Level of Service you have with HP. In the UK we include it usages at varies levels within the cost of the Service Agreement, please feel free to ask you HP Service rep to contact me and I will provide them with the information.

Kind regards
Steve
Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS Monthly Uptime Report

Also usable :

when you use performance advisor for the whole month, it will report the missing data timeframe, t.i. the time the system was unavaible (or data collector was down).

Wim
Wim
Dante_5
Occasional Advisor

Re: OpenVMS Monthly Uptime Report

Thanks. Is this product "Performance Advisor" an HP product and have any link to it?