From caa199a3cf338098d179c984eb1a8e5b83371245 Mon Sep 17 00:00:00 2001 From: sconklin Date: Tue, 24 Apr 2007 17:11:15 +0000 Subject: Added optional traceroute collection to networking plugin git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@127 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/lib/sos/plugins/networking.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit