From 4f0b44af1c473f966d6a8ff731fa66bfaa7074c6 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 17 Jul 2024 22:13:49 +0100 Subject: [PATCH] [networking] Capture more networking commands Capture more ethtool, ss, and netstat command outputs. Related: #3708 Signed-off-by: Jose Castillo --- sos/report/plugins/networking.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index e4375c635..1b73f81a1 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -95,6 +95,7 @@ def setup(self): self.add_cmd_output([ "nstat -zas", "netstat -s", + "netstat -s -6", f"netstat {self.ns_wide} -agn", "networkctl status -a", "ip -6 route show table all", @@ -196,6 +197,8 @@ def collect_ss_ip_ethtool_info(self): required={'kmods': 'all'}) self.add_cmd_output(ss_cmd, pred=ss_pred, changes=True) + ss_stats_cmd = "ss -s" + self.add_cmd_output(ss_stats_cmd, pred=ss_pred, changes=True) # Get ethtool output for every device that does not exist in a # namespace. _ecmds = [f"ethtool -{opt}" for opt in self.ethtool_shortopts] @@ -208,6 +211,8 @@ def collect_ss_ip_ethtool_info(self): "ethtool --phy-statistics %(dev)s", "ethtool --show-priv-flags %(dev)s", "ethtool --show-eee %(dev)s", + "ethtool --show-fec %(dev)s", + "ethtool --show-ntuple %(dev)", "tc -s filter show dev %(dev)s", "tc -s filter show dev %(dev)s ingress", ], devices="ethernet")