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

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