aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Talbert <ptalbert@redhat.com>2017-03-24 14:03:50 -0400
committerBryn M. Reeves <bmr@redhat.com>2017-03-27 18:37:30 +0100
commit491c3779125b2d9e0649c3fd19e395dad3272432 (patch)
treee9b7a33b6f2184c570546e7703d76070b5e0860b
parentda7ccd3f135f6742220500f911932ed070ea8e7c (diff)
downloadsos-491c3779125b2d9e0649c3fd19e395dad3272432.tar.gz
[networking] Add ss socket output
Adds the following to the networking plugin: $ ss -peaonmi The ss tool provides much more detailed socket information than netstat and is almost guaranteed to be available while netstat not always so. ss provides some very useful extra TCP socket information such as memory allocations, the congestion window size, window scaling factor, segments sent/received, outstanding data, etc, etc. It also provides the socket address for every known socket type listed. The net-tools package is not part of the default package set for some minimal EL installs so it is not always available. ss is part of the more-modern iproute suite so is more likely to always be available. Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
-rw-r--r--sos/plugins/networking.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py
index 48014d0c..470fa35b 100644
--- a/sos/plugins/networking.py
+++ b/sos/plugins/networking.py
@@ -155,6 +155,7 @@ class Networking(Plugin):
self.add_cmd_output([
"netstat -s",
"netstat %s -agn" % self.ns_wide,
+ "ss -peaonmi",
"ip route show table all",
"ip -6 route show table all",
"ip -4 rule",