A while back we needed to see how many users were logging on from a
particular account. We didn't need anything fancy, so we took a very
simple approach and didn't include a date/time stamp. Below is a command
script that was run every 5 minutes from a batch job.
purge sjlist
file sjlist;rec=-80,48,f,ascii;disc=384;nocctl;save
showjob [log in to unmask];*sjlist
reset sjlist
grep.hpbin.sys "'JOBS (DISPLAYED):' SJLIST" >> jscnt
Before the command script is run for the first time, build the file "jscnt"
file with something like:
build jscnt;rec=-80,48,f,ascii;disc=4800
Set the limit to something large enough to hold the number of samples you
want to collect.
Next, change the "user.account" ("@.comm" in the above) to whatever account
you want to monitor.
The "jscnt" file will end up looking something like:
1 JOBS (DISPLAYED):
6 JOBS (DISPLAYED):
5 JOBS (DISPLAYED):
6 JOBS (DISPLAYED):
6 JOBS (DISPLAYED):
4 JOBS (DISPLAYED):
5 JOBS (DISPLAYED):
6 JOBS (DISPLAYED):
4 JOBS (DISPLAYED):
Note that the "grep" won't find a line to append to the file if there are
no users logged onto the specified account, so the "jscnt" file won't grow
when there are no users logged on.
Hope this helps,
John
At 01:22 PM 5/18/98 +0000, SIMPKINS, Terry wrote:
>I need to determine the maximum number of concurrent logons in a given
account,
>during a period of time.
>
>We are considering splitting a subset of our users off onto their own
machine,
>and I need to size the user license. I have a good idea of howmany I
need, but
>I would rather have some imperical evidence to support my "guess". And,
since
>these users are three timezones behind me, I'd rather not have to continually
>check the "showjob".
>
>Anyone know of an easy way to do this?
>
>Terry Simpkins
>
>
--------------------------------------------------------------
John Korb email: [log in to unmask]
Innovative Software Solutions, Inc.
The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.
|