vmstat -m/-z field parsing
    John Baldwin 
    jhb at freebsd.org
       
    Mon Oct 19 20:34:36 UTC 2009
    
    
  
On Thursday 15 October 2009 3:47:59 pm grarpamp wrote:
> Sure, it's a workaround for vmstat -z, but not easy for vmstat -m
> which has no handy colons/commas to key from.
You could key off the number of fields (e.g. using $NF) and assume the first N 
fields are the name. :)
> Shouldn't stats be easy to parse in order to be useful to many
> rather than a test of a few users script fu ? :)
They should also be easily readable for humans, and I do find the spaces more 
readable than the underscores FWIW.
> Are there detailed docs on what all the fields mean in the various
> tools... vmstat -z/-m, systat -vm, netstat -m, top, ps.  Most docs
> seem to just list the field names a command line switch will display,
> instead what sense to make of them.
Not really. :-/
-- 
John Baldwin
    
    
More information about the freebsd-current
mailing list