Re: vmstat -m/-z field parsing

From: John Baldwin <jhb_at_freebsd.org>
Date: Mon, 19 Oct 2009 16:02:17 -0400
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
Received on Mon Oct 19 2009 - 18:34:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC