disk and memory monitoring problem

Hi all,

I am looking for api to get me system monitoring statictics every 5 minutes.

I am looking at the following statistics:

  1. System CPU Usage
  2. Process CPU Usage
  3. Process Memory Usage
  4. I/O Usage for a certain disk.
  5. Process I/O bytes/sec utilization.

I have seen very nice api pstat_* for HP but I am also looking for api on Linux and solaris as well.

Any bit of generic unix would be of great use.

Thanks,
Raj

Solaris as root user with the
smc
command! (This opens a GUI)

Solaris prstat is also available!

This GUI helps!
Br Joerg

USE THE BELOW COMMANDS
prstat -a
top
iostat -xtc 5 2
vmstat 5