What is the alternative of netstat in linux?
by Dhruvin Shah from LinuxQuestions.org on (#541F4)
'netstat' is deprecated for Linux os. So I am looking for the right alternative of the 'netstat', So what will be right alternative for netstat?
I found out one 'SS' command but it is not sufficient enough to achieve our requirements.
We are looking for the following fields:
In IP:
packets dropped
In TCP:
segments retransmitted
detected reordering
segments received
segments send out
In UDP:
packets to unknown port received
packet receive errors
packets received
packets sent
Is there any command available by which we can get the above-mentioned field? If I can collect all the above-mentioned fields by multiple commands then also it will be fine for me.


I found out one 'SS' command but it is not sufficient enough to achieve our requirements.
We are looking for the following fields:
In IP:
packets dropped
In TCP:
segments retransmitted
detected reordering
segments received
segments send out
In UDP:
packets to unknown port received
packet receive errors
packets received
packets sent
Is there any command available by which we can get the above-mentioned field? If I can collect all the above-mentioned fields by multiple commands then also it will be fine for me.