aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-04-24 17:11:15 +0000
committersconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-04-24 17:11:15 +0000
commitcaa199a3cf338098d179c984eb1a8e5b83371245 (patch)
tree6bc7efa8dd68e32e705312e6bb41dd1e360879c4 /src/lib
parent983a8ecdeaaf7e98ca2a0791457b670a0726a184 (diff)
downloadsos-caa199a3cf338098d179c984eb1a8e5b83371245.tar.gz
Added optional traceroute collection to networking plugin
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@127 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-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