sosreport/sosreport — pull request #58 by jds2001 (2012-06-12 16:06:24+00:00)
Title: Changes to networking plugin to support biosdevname

With the advent of biosdevname, we can no longer rely on Ethernet interfaces to be named ethX. This set commits changes the networking to support arbitrarily named interfaces. It depends on the link encapsulation as reported by 'ip',

The 'ifconfig' command is now deprecated, and can lead to incomplete data collection if you have IPoIB interfaces. The 'ip' command is also easier to parse the output of.

There are a few additional ethtool commands that we should invoke in order to gather some additional info on the interfaces as well.

One issue with this commit set is that I couldn't figure out how to use the file of 'ip -o addr' that I just created as input to get_interface_name(). Try as I might, it just wouldn't work. Therefore, there is the suboptimal calling of the program twice, once with collectOutputNow() and the second with callExtProg so that I could get the stdout. Suggestions and improvements welcomed.