Operation Manual

tux@mercury:~> netstat -s -t
Tcp:
2427 active connections openings
2374 passive connection openings
0 failed connection attempts
0 connection resets received
1 connections established
27476 segments received
26786 segments send out
54 segments retransmited
0 bad segments received.
6 resets sent
[...]
TCPAbortOnLinger: 0
TCPAbortFailed: 0
TCPMemoryPressures: 0
13.5.2 Interactive Network Monitor: iptraf
The iptraf utility is a menu based Local Area Network (LAN) monitor. It generates
network statistics, including TCP and UDP counts, Ethernet load information, IP
checksum errors and others.
If you enter the command without any option, it runs in an interactive mode. You can
navigate through graphical menus and choose the statistics that you want iptraf to
report. You can also specify which network interface to examine.
Figure 13.1
iptraf Running in Interactive Mode
The command iptraf understands several options and can be run in a batch mode as
well. The following example will collect statistics for network interface eth0 (-i) for
System Monitoring Utilities 195