regarding vmstat output
Hello ... :)
I am quite new to Linux..... I have a query regarding vmstat and manipulation to be done on its output. vmstat gives output that contains averages, calculated from the time the system was last booted. vmstat 1 10 gives output displays one new line per second, but only for the next ten seconds Now if I take output of both the command at an interval of 1 minutes, vmstat gives one constant o/p., whereas, vmstat 1 10 gives variations in results as far as cpu time is concerned. Is it possible to extract o/p of vmstat 1 10 and get avg of cpu usage for every one minute ? Do I have to write my own code for this ? If yes ... can someone of you give me a little start ? Or some ref. book or name of the site from where I can get little help ? Thanks in advance.... -Chandresh |
Forgive me if I am not understanding the problem, but doesn't
vmstat 60 N (where N is an integer, or left out) do what you are wanting? |
All times are GMT -5. The time now is 03:14 AM. |