Hi Al,
Just use a phantom writing the data to a file and then import it to
Excel for graphing. You can use the following code
PRINT SYSTEM(35)
TOTAL.UNIVERSE = 0
EXECUTE 'sh -c "ipcs -m|grep aceb|wc -l"' CAPTURING STUFF
TOTAL.UNIVERSE = STUFF<1>
TOTAL.PHANTOMS = TOTAL.UNIVERSE - SYSTEM(35)
PRINT SYSTEM(37)
PRINT TOTAL.PHANTOMS
This give the total universe users rather than the number of interactive
sessions. You can change the prints to writing the totals out to a file.
I use the ipcs command (this is on a unix box, it won't work on a
Windows machine) to count totals which include the phantoms as the
system(35) call only seems to count the interactive sessions or those
which take a license.
You should be able to use a scheduler of some kind (cron on unix) to
make it run every 10-15 minutes and log the results. You can then import
it direct to Excel for further analysis.
Regards
David Logan
Database Administrator
HP Managed Services
139 Frome Street,
Adelaide 5000
Australia
+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Al DeWitt
Sent: Friday, 25 June 2004 8:40 AM
To: ([EMAIL PROTECTED])
Subject: [U2] Monitoring a count of users logged on
I need to be able to monitor the number of users logged into the server.
I
would want this to run periodically (say every 10 minutes) Monday
through
Friday, 08:00 - 15:00. I would like the output to go to a text file for
later analysis. The output could be as simple as Date, Time, # of Users
logged in.
Is this something I can do via UniAdmin? Do I need to write a basic
program
and run it as a phantom?
Thanks.
Al DeWitt
Stylmark, Inc.
763-574-8705
[EMAIL PROTECTED]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/