How to monitor system activity while executing tests

I need to monitor system activity (RAM, CPU usage, execution time)
while running some tests on solaris, linux and aix and save the output.
Please advise whether there's a utility available for these systems?
How can time the execution of the command?
Thanks!

For memory and CPU usgae take a look at sar, vmstat, mpstat and top.
For execution time take a look at time or timex.

you can use dimstat for it

Dimitri (dim) Tools HOMEPAGE

Technology for Sun Partners