get active connections

Linux would be more interesting once we get in deep. Share your linux knowledge and post your doubts regarding Linux OS

get active connections

New postby vizhi on Fri Nov 06, 2009 12:36 pm

Hi..
Which command is used to see the active connections?
vizhi
Active
Active
 
Posts: 54
Joined: Thu Apr 02, 2009 10:34 am


Re: get active connections

New postby Suji on Fri Nov 06, 2009 4:47 pm

Hi,

pktstat :: Displays active connections on your network interface, with bandwidth details in linux.

pktstat is a top-like utility for network connections usage which displays a real-time list of active connections seen on a network interface, and how much bandwidth is being used by what.


To install pktstat in ubuntu, simply run the following command:
Code: Select all
sudo apt-get install pktstat


To run pktstat, use the following command:
Code: Select all
sudo pktstat -i eth0


Regards
Suji
Suji
Newbee
Newbee
 
Posts: 35
Joined: Thu Sep 27, 2007 3:52 pm

Re: get active connections

New postby rekha on Fri Nov 06, 2009 4:54 pm

Is there any difference between netstat and pktstat ?
rekha
Enthusiast
Enthusiast
 
Posts: 191
Joined: Sat Sep 22, 2007 1:39 pm

Re: get active connections

New postby nirmala on Sat Nov 07, 2009 3:29 pm

netstat:
netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics. It is available on Unix, Unix-like, and Windows NT-based operating systems.
It is used for finding problems in the network and to determine the amount of traffic on the network as a performance measurement.
pktstat:
pktstat - display packet activity on a crt.
The pktstat program displays a real-time summary of packet activity on an interface. Each line displays the data rate associated with a particular class of packets. The class is determined by the packet header.
nirmala
Enthusiast
Enthusiast
 
Posts: 299
Joined: Fri Feb 29, 2008 3:38 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest