aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Sanchez <juasanch@redhat.com>2023-05-12 16:03:34 +0200
committerJake Hunsaker <jhunsake@redhat.com>2023-05-15 10:33:24 -0400
commit76cf57c5989eb5c689fdda0c46a9295826573d53 (patch)
tree5b6c6ff028640241cfbbb27cf240903ddaa3132a
parentba7382529c67b7da92c368b2b0697e78ba9b17b3 (diff)
downloadsos-76cf57c5989eb5c689fdda0c46a9295826573d53.tar.gz
[networking] Collect `sysctl -a` from namespaces
Since some sysctl groups (e.g net.*) are namespaced, when gathering namespace data it's important to include the sysctl information as well. Resolves: #3232 Signed-off-by: Juanma Sanchez <juasanch@redhat.com>
-rw-r--r--sos/report/plugins/networking.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py
index 45e53c44..74626af4 100644
--- a/sos/report/plugins/networking.py
+++ b/sos/report/plugins/networking.py
@@ -210,6 +210,7 @@ class Networking(Plugin):
ns_cmd_prefix + "ip -4 rule list",
ns_cmd_prefix + "ip -6 rule list",
ns_cmd_prefix + "ip vrf show",
+ ns_cmd_prefix + "sysctl -a",
ns_cmd_prefix + "netstat %s -neopa" % self.ns_wide,
ns_cmd_prefix + "netstat -s",
ns_cmd_prefix + "netstat %s -agn" % self.ns_wide,