How to get Server Statistics Programmatically?

Is there a Formula or Lotus Script Function to get Statistics values of the Domino Server ?

e.g. “Mail.Delivered” or “Mail.TotalRouted.NRPC” statistics

Thank You

Regards,

Bharat Kothari

Subject: How to get Server Statistics Programmatically ?

Hi Bharat

There are quite a few standard Domino databases which collect an absolutely huge range of stats, very neatly and regularly.

I suggest you look these up and grab your data using lotus script from these databases rather than to use a script that directly collects the stats. The reason is that Lotus have done such a great job providing all the stats that re-doing the work ‘may’ be a waste of time.

Look up admin help. It is all in there. Or look at the advanced templates on the domino server and read their About docs.

Good luck

Bizhan

Subject: RE: How to get Server Statistics Programmatically ?

Hi Bizhan,

Thank You for the reply.

So, it means the way to get the statistics value would be to do a lookup against those databases. Those databases may have access related issues for my user.

What I was looking for is, if there is any formula - something like: @GetStatisticsValue(“StatisticName”) which will get the job done.

I don’t think there is any, but just wanted to confirm this.

Thanks,

Bharat

Subject: RE: How to get Server Statistics Programmatically ?

Hi Bharat

I’m not saying those script classes do not exist. I haven’t seen any personally and also someone may have a custom library that does that job.

But I doubt if anyone could possibly come up with such a comprehensive way of getting stats as Lotus have already done and I can’t see whay anyone would need to when it is all available.

Now about your user’s access issue … that is not a problem. Your options are:

A) to give the person or a group that he and others are put in, eg “StatsReaders”, Reader access to those databases. I think the Default user’s access is either Reader or Author for many such DBs anyway.

OR

B) you cna use your formula or script code to grab the values from those DBs in exactly the way you have stated i.e. writing a script function such as

GetStatisticsValue(“StatisticName”)

You just have to look up the design of the stats DBs and to get the correct form and field names etc. Since your agent can run as ‘you’ (or an authorised id) and not as the user, there will be no access problems with respect to the databases AND your user does not even have to look up the databases. This option has the advantage that it can be integrated/used in any application or from within any DB.

You are only, mimutes of coding away from your objective. I hope this helps.

Good luck

Bizhan