Tool of the week – iptstate

Valic —  December 7, 2010 — Leave a comment

I recently came across this neat tool called IP Tables State or in short iptstate. It basically works like top but displays the network stat in real-time. It also has the ability to delete/remove an entry from the stat table.

This tool can be very helpful in troubleshooting or simply analyzing your stat table by sorting and filtering the table in several different ways such as by protocol or service.

Screen:

iptstate

First, the wireless interface has to be activated. In this case I am using Debian and the interface name is wlan0.

Step 1. Activate the wireless interface

ifconfig wlan0 up

Step 2. Scan for the wireless networks

iwlist wlan0 scan

The output should be sometshig like this:

wlan0     Scan completed :
          Cell 01 - Address: 00:17:53:0B:30:C0
                    ESSID:"linksys"
                    Mode:Master
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=47/100  Signal level:-76 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=0000010b1bfe2181
                    Extra: Last beacon: 28ms ago

Continue Reading…

iftop is a command-line system monitor tool that produces a frequently-updated list of network connections. By default, the connections are ordered by bandwidth usage, with only the “top” bandwidth consumers shown. iftop must be run with sufficient permissions to monitor all network traffic on the interface.

Step 1. Installation.

apt-get install iftop

Step 2. Usage.

iftop is easy to use if you just want to see your current network connections and how much bandwidth is being used by each remote host.

Simply launch it from the command line, passing the -i option with the interface you want to monitor, and optionally the -B option to display values in bytes.

Some other options:

Continue Reading…

Trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
Currently, trickle supports the shaping of any SOCK_STREAM (see socket(2)) connection established via the socket(2) interface. Furthermore, trickle will not work with stati-cally linked executables, nor with setuid(2) executables. trickle is highly configurable; download and upload rates can be set separately, or in an aggregate fashion.

Step 1. Installation.

apt-get install trickle

Step 2. Usage of trickle.

trickle  -d 200  apt-get upgrade

Launch apt-get upgrade limiting its  download capacity at 20o KB/s.

Continue Reading…

Slurm – network load monitor

Valic —  July 15, 2010 — 1 Comment

Slurm started as a port of pppstatus to FreeBSD and now is a generic curses based network load monitor.

It was then transformed into a generic network load monitor that supports *BSD, Linux, HP-UX, and Solaris.

Slurm shows `realtime’ traffic statistics, has three graph modes, can monitor any network device, and uses curses to draw ascii graphics, including ascii theme support.

Step 1. Installation:

apt-get install slurm

Step 2. Slurm usage:

Continue Reading…

Page 3 of 512345