On 9/5/15, 2:53 AM, Ben Hutchings wrote:
On Thu, 2015-06-25 at 03:28 +0200, Robert Urban wrote:
Hello,

there doesn't seem to be any flag to request ethtool to present its output in a
script-friendly form.  Things like:
         Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                              100baseT/Half 100baseT/Full
                                              1000baseT/Full
are kind of pain to parse.

Something to consider?
Or write a library for using SIOCETHTOOL.  The interface is fairly well
documented now and there are other users besides the ethtool utility.

one of the requests which we usually get is ethtool output in json format. since iproute2 tools are already getting an option to print in json format, would be nice if we considered an option to print in json for ethtool too.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to