aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/sos/plugins/networking.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/sos/plugins/networking.py b/src/lib/sos/plugins/networking.py
index 31e753e6..8158bd79 100644
--- a/src/lib/sos/plugins/networking.py
+++ b/src/lib/sos/plugins/networking.py
@@ -18,6 +18,7 @@ import os,re,commands
class networking(sos.plugintools.PluginBase):
"""This plugin gathers network related information
"""
+ optionList = [("traceroute", "collects a traceroute to rhn.redhat.com", "slow", 0)]
def get_interface_name(self,ifconfigFile):
"""Return a dictionnary for wich key are intefrace name according to the
@@ -56,8 +57,6 @@ class networking(sos.plugintools.PluginBase):
self.addCopySpec("/etc/xinetd.d")
self.addCopySpec("/etc/host*")
self.addCopySpec("/etc/resolv.conf")
- # self.addCopySpec("/etc/sysconfig/iptables-config")
- # The above is redundant
ifconfigFile=self.collectExtOutput("/sbin/ifconfig -a")
self.collectExtOutput("/sbin/route -n")
self.collectExtOutput("/sbin/ipchains -nvL")
@@ -68,6 +67,8 @@ class networking(sos.plugintools.PluginBase):
if ifconfigFile:
for eth in self.get_interface_name(ifconfigFile):
self.collectExtOutput("/sbin/ethtool "+eth)
+ if self.isOptionEnabled("traceroute"):
+ self.collectExtOutput("/bin/traceroute rhn.redhat.com")
return