In Linux, /usr/sbin/ss commmands gives the socket information similar to netstat. There are various options which are very useful.

[root@unixfoo ~]# /usr/sbin/ss
State       Recv-Q Send-Q   Local Address:Port      Peer Address:Port
ESTAB       0      0          192.12.2.45:1022      192.12.0.237:2245
ESTAB       0      0          192.12.2.45:1023      192.12.0.237:2245
ESTAB       0      0          192.12.2.45:1021      192.12.0.237:2245
ESTAB       0      0          192.12.2.45:1021      192.12.0.238:2245
ESTAB       0      0          192.12.2.45:1023      192.12.0.238:2245
ESTAB       0      0          192.12.2.45:1022      192.12.0.238:2245
ESTAB       0      0          192.12.2.45:1023       192.12.2.42:2245
ESTAB       0      0          192.12.2.45:1022       192.12.2.42:2245
ESTAB       0      0          192.12.2.45:1021       192.12.2.42:2245
ESTAB       0      0          192.12.2.45:1021       192.12.2.41:2245
ESTAB       0      0          192.12.2.45:1022       192.12.2.41:2245
ESTAB       0      0          192.12.2.45:1023       192.12.2.41:2245
[root@unixfoo ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *