Operating System - HP-UX
1829580 Members
6316 Online
109992 Solutions
New Discussion

what is the best way to setup a monitor

 
hpuxhelp
Regular Advisor

what is the best way to setup a monitor

traffic for specific user?

There seems to be the slowleness in the system right now and we want to set up a montior to monitor the traffic on a specific user? Can we do this and how
3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor

Re: what is the best way to setup a monitor

A product called glance!

Install trial version from application CD incase you don't have installed!
Good Luck..
Alex Ostapenko
Advisor

Re: what is the best way to setup a monitor

Some other tools besides "glance"...

Some people like to use the "top" command. That will show real-time top users which may shed light on your problem.

To obtain very detailed information about users, you can also enable the HP-UX "audit" system. See "man audit" and associated man pages for more information. Just be careful that when you enable this, the audit log files will grow quickly, and the auditing activities will also use up system resources potentially slowing your system down even more.

Another way to track processes is with Measureware (included with GlancePlusPack). A useful tool for looking at Measureware data is Perfview, and on the graphical displays, you can drill down into "Process Detail" (sampled every minute) or "Disk Detail" (sampled every 5 minutes) seeing resource utilization for every active process (or disk) at the moment of sampling.

Happy hunting!

=:-) Alex
Stuart Abramson_2
Honored Contributor

Re: what is the best way to setup a monitor

glance and top only do instantaneus monitoring. Scope and PerfView do monitoring over time. HP changes the name periodically to confuse you, but they usually call it something like "MeasureWare Agent" and "PerfView". Actually, here they are:

B4967AA C.02.60.000 HP MeasureWare Server Agent for s800 11.0

B5013AA C.03.10.00 HP PerfView Analyzer for
s800 11.00


I also like "sar". Here is how you set up continuous monitoring:

1. To set it up:

Start sar:
cd /root/doc
crontab -l > crontab.mmdd
vi crontab.mmdd
add:
0 * * * * /usr/lib/sa/sa1 600 6
crontab < cron.mmdd
crontab -l
mkdir /var/adm/sa

2. To use it:

a. The sar collector puts data in:

/var/adm/sa/

in files named: saNN

sa01
sa02

where NN is the day of the month on which the data was collected.


abramsd@adedd09p:/var/adm/sa$ ll
total 294718
-rw-r--r-- 1 root sys 5810240 Oct 1 23:50 sa01
-rw-r--r-- 1 root sys 6243840 Oct 2 23:50 sa02
-rw-r--r-- 1 root sys 6243840 Oct 3 23:50 sa03
-rw-r--r-- 1 root sys 6243840 Oct 4 23:50 sa04
-rw-r--r-- 1 root sys 5723520 Oct 5 23:50 sa05
-rw-r--r-- 1 root sys 6243840 Oct 6 23:50 sa06
-rw-r--r-- 1 root sys 6113760 Oct 7 23:50 sa07
-rw-r--r-- 1 root sys 3382080 Oct 8 12:50 sa08
-rw-r--r-- 1 root sys 3409920 Sep 10 00:50 sa09
-rw-r--r-- 1 root sys 3409920 Sep 11 00:50 sa10
-rw-r--r-- 1 root sys 3409920 Sep 12 00:50 sa11
-rw-r--r-- 1 root sys 3409920 Sep 13 00:50 sa12
-rw-r--r-- 1 root sys 3409920 Sep 14 00:50 sa13
-rw-r--r-- 1 root sys 780480 Oct 14 23:50 sa14

b. To find out table space usage on ANY system right now:

sar -v 5 5

c. To get a 24 hour history of today:

sar -v

d. To get a 24 hour history of October 8:

sar -v -f /var/adm/sa/sa08

3. Maintenance:

a. The files in /var/adm/sa write over after 30 days:

October 1 was written on sa01
November 1 will overwrite sa01

b. You might want to put something in place to wipe out 2 week old files:

find /var/adm/sa -mtime +15 -exec rm {} \;