Votes: 0Posted On: Jun 21, 2017 06:49:29
It is very important for a system/network admin to monitor the inflow and outflow of the traffic from the server. There are many tools available these days that can help to view the information graphically. However, the most common and extensively used command is "NETSTAT"
Using netstat you can monitor every connection going in and out of your computer. This monitors all major protocols including tcp and udp, and every port. netstat is a standard Unix program, so it is likely installed.
# netstat -t -u (-u for displaying continuously)
the output is as follows -
tcp 0 0 126.96.36.199:57053 71-95-19-141.stat:16359 ESTABLISHED
tcp 0 19109 188.8.131.52:49249 5ac33076.bb.sky.c:52782 ESTABLISHED
tcp 0 0 184.108.40.206:53874 catv54039CF5.pool:16628 ESTABLISHED
tcp 0 0 220.127.116.11:37182 host86-140-193-28.:6881 ESTABLISHED
tcp 0 0 18.104.22.168:45563 61-224-49-29.dyna:48227 ESTABLISHED
tcp 0 0 22.214.171.124:47665 126.96.36.199:43837 ESTABLISHED