Operating System - HP-UX
1826325 Members
3554 Online
109692 Solutions
New Discussion

Re: How to retrieve Cache Bytes

 
Ninad Sarwate
New Member

How to retrieve Cache Bytes

What is the tool / command to retrieve the Cache Bytes?
Cache Bytes is the sum of the System Cache Resident Bytes, System Driver Resident Bytes, System Code Resident Bytes, and Pool Paged Resident Bytes counters.
Thanks.
11 REPLIES 11
Bill Hassell
Honored Contributor

Re: How to retrieve Cache Bytes

Is this an HP-UX system? Those names do not sound familiar.


Bill Hassell, sysadmin
Stephen Keane
Honored Contributor

Re: How to retrieve Cache Bytes

They are windoze things.
HGN
Honored Contributor

Re: How to retrieve Cache Bytes

Hi

Could this be moved to windows forum.

Rgds

HGN
Ninad Sarwate
New Member

Re: How to retrieve Cache Bytes

It is an HP-UX system. And yes, these are Windows counters.
I want the analogous counters in HP-UX.
I am not sure of the terminology too,so all the help will be appreciated.
Thank you.
Arunvijai_4
Honored Contributor

Re: How to retrieve Cache Bytes

Hello,

You can use NetIQ to setup these counters to collect data.

More information is at, http://www.netiq.com/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ninad Sarwate
New Member

Re: How to retrieve Cache Bytes

I need to do this using shell scripts and in-built tools and commands. Can't use third party tools.
Sorry not to have mentioned this before.
Thanks.
Arunvijai_4
Honored Contributor

Re: How to retrieve Cache Bytes

Hello, You can use HP-UX built-in commands like, vmstat, top to collect these details.

man vmstat
man top

for more details.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ninad Sarwate
New Member

Re: How to retrieve Cache Bytes

I am using vmstat and top for other things, but they do not have information about Cache.
:(
Stephen Keane
Honored Contributor

Re: How to retrieve Cache Bytes

You should do a man on pstat(2), specifically pstat_getvminfo() and maybe look at the header file /usr/include/sys/pstat/vm_pstat_body.h which lists some of the fields you can return. If this is the sort of info you are looking for, I'd be happy to post a short piece of C to get you started.
Ninad Sarwate
New Member

Re: How to retrieve Cache Bytes

I need to get it done using scripts.
Thank you.
Stephen Keane
Honored Contributor

Re: How to retrieve Cache Bytes

Try man sar, in particular "sar -b", might be what you need?