Subject: | |
From: | |
Reply To: | VANCE,JEFF (HP-Cupertino,ex1) |
Date: | Thu, 31 Oct 2002 11:48:50 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> Anyone have a brilliant idea how to get a high-water mark of
> the number of
> sessions on at any one time? Say during a one month period?
I don't claim this to be brilliant, in fact it may not work well
at all, but... you could have a background job (maybe in its own
job queue) wake up every X minutes and see how many session are
logged on. Something like this may work:
!job ...
!setvar max_sessions 0
!while true do
! if setvar(num_sess,jobcnt('@S')) > max_sessions then
! setvar max_sessions num_sess
! endif
!endwhile
!...
From another job/session you can interrogate this background
job's "max_sessions" variable to see what the high mark is. Eg.
:showvar max_sessions; job=#Jnnnn
Or, the background job can write the max_session value to a file,
etc.
HTH,
Jeff Vance, "CSY"
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|