07 February 2013

Monitoring package with pktstat



Curious to see what packages through a network interface card (NIC)? Or want to see traffic passing on the network?

If the question is answered: Yes! then one of the tools (tools) that can be used is pktstat. A software that is simple, lightweight, running at the terminal (command)

It's easy, just install pktstat the linux distribution you are using, for example:


For Mandriva:
#
urpmi pktstat

For Ubuntu:
#
apt-get install pktstat

For OpenSUSE:
#
zypper install pktstat

For other distributions please adjust.

How to use it quite easy, I used to use this command to check the package passing Interface eth0:
#
pktstat-i eth0-n-t

information:

-i for the interface that will be monitoring

-n that hostname / domain
name not to resolve

-t to be sorted by the packets passing

For the other parameters please read in the man page:
#
man pktstat

That’s all, hopefully useful;-)

No comments:

Post a Comment