intop [-i interface] [[-i interface]] [filter expression]
-i Specifies the network interface used by intop If multiple interfaces are used then the -i flag has to be repeated for each interface. For instance '-i eth0 -i lo'.
intop can then be started with a BPF filter (for instance 'intop src host jake.unipi.it or dst host jake.unipi.it'). See the tcpdump man page for further information about this topic.
intop implements a bare, command line based interface, with an apparently spartan look and feel, but a lot of functionality already implemented, and others planned for future releases.
Current functionaly include:
Once you started the program, a shell is promted where you type commands to the program's shell. Usually you will want to open a network interface and start looking at network packets.
To open a network interface on your system, you must use the program's open command:
open -i <interface name>where <interface name> is a network device suitable for packet capturing.
You should now see the command prompt change to reflect the name of the current network interface. If you are in trouble with network names available for your system, you can always have the list of all avaialable network interface on your system with the lsdev command.
After the open command completes successfully, you have a network interface open for doing the job of packet capturing though the process of capturing is not really started until the sniff command has been issued.
intop uses the GNU Readline library for history and command line completion.
Because intop has been designed and implemented with emphasis to usability, you can start playing at intop by typing the sniff command and using the '-i' flag to specify a network interface. The program has an internal concept of the status of the interface, so is is able to decide wich operations should be done to satisfy user command. In the latter case the network interface is first opened and then enabled for packet sniffing.
intop claims to offer to the user a common interface, which is independent from the specific command. So, for example each command has its own help usage string (you can display it using the '-h' flag) and support command line arguments passed via arguments, in the same way most Unix commands do.
Morevover, to avoid typing and increase usability, each command acts on the latest referenced network interface, unless the -i flag is used.
help
help open
q This causes intop to quit.
n This causes intop to toggle the IP address format (numeric vs. symbolic vs. MAC Address vs. Nw Board Manufacturer).
p This causes intop to toggle the traffic format (percentage vs. absolute vs. throughput).
l This causes intop to toggle the host list content (local vs. remote hosts).
d This causes intop to toggle the host list content (idle vs. active hosts).
t This causes intop to sort hosts according to the data received or sent.
y This causes intop to sort traffic according to the various protocols being displayed in the current screen.
<space> This causes intop to show further traffic information. Each time the space bar is pressed the last three
intop columns are toggled. Please note that these columns represent either the traffic sent or received, according to the the way the list is sorted (see previous command).
"traffic/throughput" This line displays general information about the network traffic: the number of packets that have been seen, the total traffic (IP or non IP), the actual and the max observed throughput. Please note that if a filter expression is used, these values are relatives only to the traffic that satisfies the filter expression.
Host This column contains the host name in either symbolic or numeric format.
Act This column contains further information about the host activity since the last screen update. The value 'B' (both) indicates that the host has both sent and received data, 'R' (receive) that the host has received but not sent data, 'S' (sent) that the host has sent but not received data, 'I' (idle) that the host has been idle (no data sent or received).
Rcvd This column contains the traffic received by the host either in absolute or percentage format. If the host list is sorted according this field, then the column label becomes -Rcvd-.
Sent This column contains the traffic sent by the host either in absolute or percentage format. If the host list is sorted according this field, then the column label becomes -Sent-.
<protocol> The last three columns contain further information concerning the IP protocols. Data represented in these columns change according to the traffic type (either sent or received). The 'y' key allows users to interactively change the sort order of these columns, whereas the space bar toggles the protocol list.