1 '\" te
2 .\" Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
5 .TH NETSTAT 1M "Sep 02, 2015"
6 .SH NAME
7 netstat \- show network status
8 .SH SYNOPSIS
9 .LP
10 .nf
11 \fBnetstat\fR [\fB-anvR\fR] [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
12 .fi
13
14 .LP
15 .nf
16 \fBnetstat\fR \fB-g\fR [\fB-nv\fR] [\fB-f\fR \fIaddress_family\fR]
17 .fi
18
19 .LP
20 .nf
21 \fBnetstat\fR \fB-p\fR [\fB-n\fR] [\fB-f\fR \fIaddress_family\fR]
22 .fi
23
24 .LP
25 .nf
26 \fBnetstat\fR \fB-s\fR [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
27 [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
28 .fi
29
30 .LP
31 .nf
317 .sp .6
318 .RS 4n
319 Show per-protocol statistics. When used with the \fB-M\fR option, show
320 multicast routing statistics instead. When used with the \fB-a\fR option,
321 per-interface statistics will be displayed, when available, in addition to
322 statistics global to the system. See DISPLAYS, below.
323 .RE
324
325 .sp
326 .ne 2
327 .na
328 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
329 .ad
330 .sp .6
331 .RS 4n
332 Display a time stamp.
333 .sp
334 Specify \fBu\fR for a printed representation of the internal representation of
335 time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See
336 \fBdate\fR(1).
337 .RE
338
339 .sp
340 .ne 2
341 .na
342 \fB\fB-v\fR\fR
343 .ad
344 .sp .6
345 .RS 4n
346 Verbose. Show additional information for the sockets, STREAMS memory
347 statistics, routing table, and multicast group memberships.
348 .RE
349
350 .sp
351 .ne 2
352 .na
353 \fB\fB-I\fR \fIinterface\fR\fR
354 .ad
355 .sp .6
356 .RS 4n
|
1 '\" te
2 .\" Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
5 .TH NETSTAT 1M "Jul 12, 2016"
6 .SH NAME
7 netstat \- show network status
8 .SH SYNOPSIS
9 .LP
10 .nf
11 \fBnetstat\fR [\fB-anuvR\fR] [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
12 .fi
13
14 .LP
15 .nf
16 \fBnetstat\fR \fB-g\fR [\fB-nv\fR] [\fB-f\fR \fIaddress_family\fR]
17 .fi
18
19 .LP
20 .nf
21 \fBnetstat\fR \fB-p\fR [\fB-n\fR] [\fB-f\fR \fIaddress_family\fR]
22 .fi
23
24 .LP
25 .nf
26 \fBnetstat\fR \fB-s\fR [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
27 [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
28 .fi
29
30 .LP
31 .nf
317 .sp .6
318 .RS 4n
319 Show per-protocol statistics. When used with the \fB-M\fR option, show
320 multicast routing statistics instead. When used with the \fB-a\fR option,
321 per-interface statistics will be displayed, when available, in addition to
322 statistics global to the system. See DISPLAYS, below.
323 .RE
324
325 .sp
326 .ne 2
327 .na
328 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
329 .ad
330 .sp .6
331 .RS 4n
332 Display a time stamp.
333 .sp
334 Specify \fBu\fR for a printed representation of the internal representation of
335 time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See
336 \fBdate\fR(1).
337 .RE
338
339 .sp
340 .ne 2
341 .na
342 \fB\fB-u\fR\fR
343 .ad
344 .sp .6
345 .RS 4n
346 When specified, for each network endpoint \fBnetstat\fR will print the list of
347 the processes currently have an open file descriptor pointing to that endpoint.
348 \fBnetstat\fR will list the username, process id, and the program for each
349 process in that list.
350 .RE
351
352 .sp
353 .ne 2
354 .na
355 \fB\fB-v\fR\fR
356 .ad
357 .sp .6
358 .RS 4n
359 Verbose. Show additional information for the sockets, STREAMS memory
360 statistics, routing table, and multicast group memberships.
361 .RE
362
363 .sp
364 .ne 2
365 .na
366 \fB\fB-I\fR \fIinterface\fR\fR
367 .ad
368 .sp .6
369 .RS 4n
|