We have logging our disk array with iostat, and now have a 2 mb text file. Is it possible to read the file contents, and sort all occurrences in some way, with php or bash?
We also have shell access, so if you're a commande guru, that's also a possibility.
We want to read and sort the following information in a text file, ascending, by some of the following r/s, w/s, kr/s, kw/s, qlen, svc_t or %b values.
Possible, or too difficult?
extended device statistics
device r/s w/s kr/s kw/s qlen svc_t %b
da0 11.5 14.0 701.8 530.1 0 7.3 11
extended device statistics
device r/s w/s kr/s kw/s qlen svc_t %b
da0 0.0 0.0 0.0 0.0 1 0.0 0
extended device statistics
device r/s w/s kr/s kw/s qlen svc_t %b
da0 0.0 10.5 0.0 350.8 0 139.2 145