aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schuppert <mschuppert@redhat.com>2016-12-30 11:41:50 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-27 18:39:56 +0100
commitd576f79f451692fee9ea36a2a4aab4422b9a95c7 (patch)
tree269eaa65d9136506931ca662655b2003675de6c3
parent491c3779125b2d9e0649c3fd19e395dad3272432 (diff)
downloadsos-d576f79f451692fee9ea36a2a4aab4422b9a95c7.tar.gz
[networking] collect socket stat from each namespace
added command to collect 'ss -lnp' within each namespace (edited to use -peaonmi for consistence with collection in the main namespace. -- bmr). Resolves: #966. Signed-off-by: Martin Schuppert <mschuppert@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/networking.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py
index 470fa35b..9d8aac66 100644
--- a/sos/plugins/networking.py
+++ b/sos/plugins/networking.py
@@ -291,7 +291,8 @@ class Networking(Plugin):
self.add_cmd_output([
cmd_prefix + namespace + " ip address show",
cmd_prefix + namespace + " ip route show table all",
- cmd_prefix + namespace + " iptables-save"
+ cmd_prefix + namespace + " iptables-save",
+ cmd_prefix + namespace + " ss -peaonmi"
])
# Devices that exist in a namespace use less ethtool