diff options
author | Jon Stanley <jonstanley@gmail.com> | 2012-06-12 09:37:59 -0400 |
---|---|---|
committer | Jon Stanley <jonstanley@gmail.com> | 2012-06-12 09:37:59 -0400 |
commit | d0777c5dd7765776bf8af6a819b966dbc0e66442 (patch) | |
tree | fcc763a6fd7ee21463223ef95c9461de0f68047f | |
parent | a3aeae702e4ce35377369277db3309544e2b3adb (diff) | |
download | sos-d0777c5dd7765776bf8af6a819b966dbc0e66442.tar.gz |
Use 'ip -o addr' instead of ifconfig for parseable output
The 'ifconfig' command is deprecated, and the 'ip' command should
be used instead for multiple reasons. This is also a more easily
parseable format.
-rw-r--r-- | sos/plugins/networking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index b0b3010c..1497c835 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -51,7 +51,7 @@ class networking(Plugin, RedHatPlugin): "/etc/xinetd.d", "/etc/host*", "/etc/resolv.conf"]) - ifconfigFile=self.collectOutputNow("/sbin/ifconfig -a", root_symlink = "ifconfig") + ifconfigFile=self.collectOutputNow("/sbin/ip -o addr", root_symlink = "ip_addr") self.collectExtOutput("/sbin/route -n", root_symlink = "route") self.collectIPTable("filter") self.collectIPTable("nat") |