script to monitor memory and cpu usage
Im just trying to write some script to caputre memory and cpu usage on SLES servers, I just wanna use "top |grep Mem" and "top |grep Cpu". when I ran the above command, it just keep going. i just want to get one line each for memory and cpu. Any one have an idea. Thanks
|
Better yet you can graph the result using a combination of SNMP and rddtools
|
Quote:
Code:
[user@machine:~] top -b -n 1 | grep Mem Code:
-b : Batch mode operation |
Thanks it works!!
|
All times are GMT -5. The time now is 07:56 AM. |