how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and

I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times

my final destination is monitor process

logical volume usage above X % and number of Logical voluage above

can I not to use interact command like top smh or sam
I need use general command without interactive

thanks

top -i

top -i will not work on HP-UX.

vmstat will give you cpu and memory info.

man vmstat. iostat, swapinfo, top (option -f), sar ...
After the reading you should be in the mood of writing a script to do what you want...