View Single Post

   
  #2 (permalink)  
Old 01-12-2008, 05:52 AM
Dragan Cvetkovic
 
Posts: n/a
Default Re: How to find memory usage information

demone33@yahoo.it (Sara) writes:

> OS: Solaris 8
>
> I need to periodically monitor my host memory usage (not single
> process memory usage) using a script like this:
>
> while true;
> do
> echo $(date) >> $OUTPUT_FILE # to get system time
> <command_to_get_memory_info> | grep <some useful string>
> sleep 30
> done
>
> Any suggestions on <command_to_get_memory_info> | grep <some useful
> string>?
> Thank you.



You can use top -d1 and grep for Memory ...

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Reply With Quote