Blame SOURCES/sos-bz1961458-collect-nstat.patch

2ed6e8
From 575ddeddf2f6e1d6a639922f9ccc51c7e46fbe12 Mon Sep 17 00:00:00 2001
2ed6e8
From: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
2ed6e8
Date: Fri, 14 May 2021 09:49:33 +0900
2ed6e8
Subject: [PATCH] [networking] Add nstat command support
2ed6e8
2ed6e8
As netstat command is being deprecated,
2ed6e8
we need nstat as an alternative to "netstat -s".
2ed6e8
2ed6e8
Signed-off-by: Seiichi Ikarashi <s.ikarashi@fujitsu.com>
2ed6e8
---
2ed6e8
 sos/report/plugins/networking.py | 2 ++
2ed6e8
 1 file changed, 2 insertions(+)
2ed6e8
2ed6e8
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py
2ed6e8
index 8b4614bb..acfa027f 100644
2ed6e8
--- a/sos/report/plugins/networking.py
2ed6e8
+++ b/sos/report/plugins/networking.py
2ed6e8
@@ -87,6 +87,7 @@ class Networking(Plugin):
2ed6e8
                             root_symlink="netstat")
2ed6e8
 
2ed6e8
         self.add_cmd_output([
2ed6e8
+            "nstat -zas",
2ed6e8
             "netstat -s",
2ed6e8
             "netstat %s -agn" % self.ns_wide,
2ed6e8
             "ip route show table all",
2ed6e8
@@ -198,6 +199,7 @@ class Networking(Plugin):
2ed6e8
                 ns_cmd_prefix + "netstat %s -neopa" % self.ns_wide,
2ed6e8
                 ns_cmd_prefix + "netstat -s",
2ed6e8
                 ns_cmd_prefix + "netstat %s -agn" % self.ns_wide,
2ed6e8
+                ns_cmd_prefix + "nstat -zas",
2ed6e8
             ])
2ed6e8
 
2ed6e8
             ss_cmd = ns_cmd_prefix + "ss -peaonmi"
2ed6e8
-- 
2ed6e8
2.26.3
2ed6e8