Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: vmstat output to db
>Also, the vmstat header lines repeat, so the 'sed' command will
>only remove the first instance of them.
Note that the first 'data' line is _always_ a summary of data since the server restart. This should be ignored - else you will get incorrect data.
In any case, use of 'vmstat' begs this question: Why not use 'sar'? When properly configured, sar files store _much_ more information that vmstat and that too persistently in '/var/adm/sa' directory. Thus, you could have a script that parses the output of 'sar -<whatever_options> -f <previous_day's_file>' and load it up.
John Kanagaraj <><
DB Soft Inc
Phone: 408-970-7002 (W)
Listen to great, commercial-free christian music 24x7x365 at http://www.klove.com
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Wed Jul 28 2004 - 18:26:20 CDT