1.\" Copyright (c) 1983, 1990, 1992, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)netstat.1 8.8 (Berkeley) 4/18/94 |
33.\" $FreeBSD: head/usr.bin/netstat/netstat.1 179027 2008-05-15 20:18:44Z gnn $ |
34.\" 35.Dd June 10, 2007 36.Dt NETSTAT 1 37.Os 38.Sh NAME 39.Nm netstat 40.Nd show network status 41.Sh DESCRIPTION 42The 43.Nm 44command symbolically displays the contents of various network-related 45data structures. 46There are a number of output formats, 47depending on the options for the information presented. 48.Bl -tag -width indent 49.It Xo 50.Bk -words 51.Nm |
52.Op Fl AaLnSWx |
53.Op Fl f Ar protocol_family | Fl p Ar protocol 54.Op Fl M Ar core 55.Op Fl N Ar system 56.Ek 57.Xc 58Display a list of active sockets 59(protocol control blocks) 60for each network protocol, --- 19 unchanged lines hidden (view full) --- 80the second count shows the amount of unaccepted incomplete connections, 81and the third count is the maximum number of queued connections. 82If 83.Fl S 84is also present, 85show network addresses as numbers (as with 86.Fl n ) 87but show ports symbolically. |
88If 89.Fl x 90is present display full socket buffer statistics for each internet socket. |
91.It Xo 92.Bk -words 93.Nm 94.Fl i | I Ar interface 95.Op Fl abdhntW 96.Op Fl f Ar address_family 97.Op Fl M Ar core 98.Op Fl N Ar system --- 353 unchanged lines hidden (view full) --- 452.It Li s Ta Dv BIOCGSEESENT No status: see packets originating locally and 453remotely on the interface. 454.It Li a Ta Packet reception generates a signal 455.It Li l Ta Dv BIOCLOCK No status: descriptor has been locked 456.El 457.Pp 458For more information about these flags, please refer to 459.Xr bpf 4 . |
460.Pp 461The 462.Fl x 463flag causes netstat to output all the information recorded about data 464stored in the socket buffers. The fields are: 465.Bl -column ".Li R-MBUF" 466.It Li R-MBUF Ta Number of mbufs in the receive queue. 467.It Li S-MBUF Ta Number of mbufs in the send queue. 468.It Li R-CLUS Ta Number of clusters, of any type, in the recieve 469queue. 470.It Li S-CLUS Ta Number of clusters, of any type, in the send queue. 471.It Li R-HIWA Ta Receive buffer high water mark, in bytes. 472.It Li S-HIWA Ta Send buffer high water mark, in bytes. 473.It Li R-LOWA Ta Receive buffer low water mark, in bytes. 474.It Li S-LOWA Ta Send buffer low water mark, in bytes. 475.It Li R-BCNT Ta Receive buffer byte count. 476.It Li S-BCNT Ta Send buffer byte count. 477.It Li R-BMAX Ta Maximum bytes that can be used in the receive buffer. 478.It Li S-BMAX Ta Maximum bytes that can be used in the send buffer. 479.El |
480.Sh SEE ALSO 481.Xr fstat 1 , 482.Xr nfsstat 1 , 483.Xr ps 1 , 484.Xr sockstat 1 , 485.Xr bpf 4 , 486.Xr inet 4 , 487.Xr route 4 , --- 19 unchanged lines hidden --- |