Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 331

Table of Contents

Advertisement

loopback
*
default
192.168.22.254
tester@linux:~> netstat -i
Kernel Interface table
Iface
MTU Met
RX-OK RX-ERR RX-DRP RX-OVR
eth0
1500
0 1624507 129056
lo
16436
0
23728
When displaying network connections or statistics, you can specify the socket type to
display: TCP (-t), UDP (-u), or raw (-r). The -p option shows the PID and name
of the program to which each socket belongs.
The following example lists all TCP connections and the programs using these connec-
tions.
linux:~ # netstat -t -p
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address
tcp
0
0 linux:33513
tcp
0
352 linux:ssh
tcp
0
0 localhost:ssh
In the following, statistics for the TCP protocol are displayed:
tester@linux:~> 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
255.0.0.0
U
0.0.0.0
UG
TX-OK TX-ERR TX-DRP TX-OVR Flg
0
0
7055
0
0
0
23728
Foreign Address
www.novell.com:www-http ESTABLISHED 6862/fi
linux2.:trc-netpoll
localhost:17828
0 0
0 lo
0 0
0 eth0
0
0
0 BMNRU
0
0
0 LRU
State
PID/Pro
ESTABLISHED 19422/s
ESTABLISHED -
System Monitoring Utilities
331

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents