⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netstat.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)netstat.1	8.2	11/7/90.TH netstat 1.SH Namenetstat \- show network status.SH Syntax.B netstat[ .B \-Aan] [.B \-f.I address_family] [.I system] [.I core].br.B netstat[ .B \-himnrs] [.B \-f.I address_family] [.I system] [.I core].br.B netstat[ .B \-n] [.B \-I.I interface].I interval[.I system] [.I core].br.B netstat[.B \-I.I interface.B \-s] [.I system] [.I core].SH Description.NXR "netstat command".NXAM "network" "local area network".NXAM "network" "uucp utility".NXA "netstat command" "iostat command".NXA "netstat command" "vmstat command".NXR "network" "displaying status"The.PN netstat command displays the contents of network-relateddata structures symbolically.Depending on the options supplied to .PN netstat ,there are a number of output formats..PPThe first form of the command displays a list of active sockets for eachprotocol.  The second form presents the contents of one of the other network data structures according to the option selected.  The third form, withan.I intervalspecified, continuously displays the information regarding packet traffic on the configured network interfaces.The fourth form displays the Digital Network Architecture (DNA) EthernetData Link Layer counters for an Ethernet interface,or the DNA Fiber Distributed Data Interface (FDDI) Data Link Layer counters for an FDDI interface. It also presents the FDDI adapter's status and characteristics for the FDDI interface.  .PPIf no options are specified,.PN netstat displays the state of all active sockets from those using any ofthe protocols listed in .PN /etc/protocols ..PPThe arguments, .I systemand.I coreallow substitutes for the defaults .PN /vmunixand.PN /dev/kmem ..PPIf an .I intervalis specified,.PN netstatdisplay the information regarding packettraffic on the configured network interfaces continuously, pausing.I intervalseconds before refreshing the screen..PPThere are a number of display formats, depending on the informationpresented.  The default display, for active sockets, shows the localand remote addresses, send and receive queue sizes (in bytes), protocol,and, optionally, the internal state of the protocol..PPAddress formats are either of the form host.port or network.port,if a socket's address specifies a network but no specific host address.When known, the host and network addresses are displayed symbolicallyaccording to the data bases .PN /etc/hostsand .PN /etc/networks ,respectively.  If a symbolic name for an address is unknown, or ifthe .B \-noption is specified,the address is printed in the Internet dot format.Refer to .MS inet 3nfor more information regarding this format.Unspecified,or wildcard, addresses and ports appear as an asterisk (*)..PPThe interface display provides a table of cumulativestatistics regarding packets transferred, errors, and collisions..NXR "network" "interface display"The network address (currently Internet specific) of the interfaceand the maximum transmission unit (mtu) are also displayed..PPThe routing table display indicates the available routes andtheir status.  .NXR "network" "routing table display"Each route consists of a destination host or networkand a gateway to use in forwarding packets.  The flags field showsthe state of the route (for example, U if up), whether the routeis to a gateway (G), and whether the route was created dynamicallyby a redirect (D).  Direct routes are created for eachinterface attached to the local host.The gateway field for such entries shows the address of the outgoinginterface.The refcnt field gives thecurrent number of active uses of the route.  Connection orientedprotocols normally hold on to a single route for the duration ofa connection, while connectionless protocols obtain a route while sendingto the same destination.  The use field provides a countof the number of packetssent using that route.  The interface entry indicates the networkinterface utilized for the route..PPWhen .PN netstatis invoked with an.I intervalargument, it displays a running count of statistics related tonetwork interfaces.This display consists of a column for the primary interface (the firstinterface found during autoconfiguration), and a columnsummarizing information for all interfaces.The primary interface may be replaced with another interface with the \-Ioption.  The first line of each screen of information contains a summarysince the system was last rebooted.Subsequent lines of output show valuesaccumulated over the preceding interval..SH Options.NXR "netstat command" "options".IP \fB\-A\fR 20Displays the address of any associated protocol control blocks; usedfor debugging..IP \fB\-a\fR 20Displays the information for all sockets.  Normally sockets used byserver processes are not shown..IP "\fB\-f \fIaddress_family\fR" 20Limits statistics or address control block reportsto those of the specified.I address family.Recognized address families are.I inet,for AF_INET,and.I unix,for AF_UNIX..IP \fB\-h\fR 20Displays the state of the IMP host table..IP "\fB\-I \fIinterface\fR" 20Shows information only about this interface.  Used with an .I intervaldisplayed below..IP "\fB\-I \fIinterface\fR -s" 20Displays the DNA Ethernet Data Link Layer counters for an Ethernet interface.Displays the DNA FDDI Data Link Layer counters, adapter's status andcharacteristics for an FDDI interface. .IP \fB\-i\fR 20Displays status information for autoconfigured interfaces .Interfaces statically configured into a system, but notlocated at boot time are not shown..IP \fB\-m\fR 20Displays information for the memory management routinesThe network manages a private share of memory..IP \fB\-n\fR 20Displays network addresses as numbers.  Normally .PN netstatinterprets addresses and attempts to display themsymbolically..IP \fB\-r\fR 20Displays the routing tables.  When \-s is also present, shows routingstatistics instead..IP \fB\-s\fR 20Displays per-protocol statistics..IP \fB\-t\fR 20Displays time until interface watchdog routine starts up(used only in conjunction with.B \-ioption)..SH See Alsoiostat(1), vmstat(1), hosts(5), networks(5), protocols(5),services(5), trpt(8c)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -