Operating System - HP-UX
1838703 Members
3497 Online
110128 Solutions
New Discussion

monitoring bufcache without glance

 
SOLVED
Go to solution
Michael Dalanek
Advisor

monitoring bufcache without glance


How can i monitor my unixbuffer cache size without using glance ?
3 REPLIES 3
Stefan Farrelly
Honored Contributor
Solution

Re: monitoring bufcache without glance

Heres a little script to display bufcache size every 15 mins;

#!/bin/ksh
while true
do
DATESTAMP=`date +"%d-%m-%Y.%H:%M".%S`
CURRENT=`sysdef|grep bufpages|awk '{print $2}'`
(( BUF_IN_MB=(CURRENT*4) / 1024 ))
print "$BUF_IN_MB MB at $DATESTAMP"
sleep 15
done
Im from Palmerston North, New Zealand, but somehow ended up in London...
Paula J Frazer-Campbell
Honored Contributor

Re: monitoring bufcache without glance

Hi

Using sar

sar -b 10 100

Will collect every 10 seconds 100 times - see man sar.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Glerick Dale
Frequent Advisor

Re: monitoring bufcache without glance

You can use sar as Paula said and have the results save to file. see sar man pages.