From 2e1f80742e4e2950351656f3b519a6b911b32452 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index 2c7af926fa..5ae41b7f81 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -92,6 +92,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", @@ -169,6 +170,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]