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

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