Skip to contentSkip to conversation

parsing ethtool output in programs/scripts

DISCUSSION Robert Urban 2 participants 2 messages Sep 2, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I wish you would consider adding a switch to ethtool (and the corresponding functionality) to produce output in machine-readable format.

This would be *extremely* useful.

Why not add the "--machine-readable" switch mentioned here:

http://www.hezmatt.org/~mpalmer/blog/2011/12/17/rethtool-how-i-learned-to-stop-worrying-and-love-the-ioctl.html

and another page which talks about the difficulty of parsing ethtool's output:

    http://pjrlost.blogspot.de/2011/11/linuxunix-and-new-output-pipe-stdobj.html

cheers,
Robert Urban

#1 lore raw
Quoted 8 lines · On Wed, 2 Sep 2015 02:22:18 +0200 Robert Urban <[email protected]> wrote:

Hello,

I wish you would consider adding a switch to ethtool (and the corresponding functionality) to produce output in machine-readable format.

This would be *extremely* useful.

Why not add the "--machine-readable" switch mentioned here:

Why not use json and --json flag like iproute2 tools are getting (gradually).