[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1382276662.3284.51.camel@edumazet-glaptop.roam.corp.google.com>
Date: Sun, 20 Oct 2013 06:44:22 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Hagen Paul Pfeifer <hagen@...u.net>
Cc: netdev@...r.kernel.org, shemminger@...tta.com,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH iproute2] ss: make socket statistic parseable
On Sun, 2013-10-20 at 15:24 +0200, Hagen Paul Pfeifer wrote:
> * Eric Dumazet | 2013-10-19 14:56:16 [-0700]:
>
> >Seems fine to me, maybe we want to support json for better parsing
> >capabilities ?
>
> Currently the parsing is straight forward with Python: split for
> whitespaces and subsequent split for colon to get a key/value list. Supporting
> an additional format may be overhead - not sure?! But yeah, JSON formated
> output is nice too. The current format has the advantage that it is human
> readable and "good" machine parseable. Except the first line:
>
Yes, I was only suggesting adding the -j flag, as done lately on other
iproute2 commands. Default would stay as is ;)
> tcp ESTAB 0 0 192.168.1.29:58951 208.68.163.218:xmpp-cli
>
> The line has a strict order, so it is not that hard to write a correct parser.
>
>
> Btw: for people not following google plus circus: I wrote an parser for ss(8)
> for plotting TCP stack variables:
>
> http://research.protocollabs.com/captcp/doc-socket-statistic-module.html
Yeah, I saw that on your Google+ page, very nice tool !
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists