From netstat's man page: This program is mostly obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route. Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr. Perhaps we should just avoid external commands and dig around in /proc ourselves.
Backwards compat note: RHEL5 has both ss and ip.
Also note bug 6125 where the performance of this command can be a problem.
Facebook has written a Python lib for using Netlink, if we want to avoid dealing with subprocesses: https://github.com/facebook/gnlpy
(In reply to comment #0) > > Perhaps we should just avoid external commands and dig around in /proc > ourselves. As noted on bug 6125, /proc is slow and should be avoided.
(In reply to comment #3) > Facebook has written a Python lib for using Netlink, if we want to avoid > dealing with subprocesses: > > https://github.com/facebook/gnlpy Requires at least Python 2.6 judging from the __future__ imports.
Solved by solving bug 6125.
Basis function verified on: - Fedora 25 - RHEL 6 - RHEL 5 - Ubuntu 16.04 - SLES 12 tl-setup works well: > 2017-02-06 15:07:44,224: 'ss' not found Tested package names on: - RHEL 6 - Ubuntu 16.04 - SLES 12 checkenvironment: > Starting ThinLinc vsmagent > ss is missing.