Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Enjoy The TCP/IP Guide? Get the complete PDF!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Application Layer Protocols, Services and Applications (OSI Layers 5, 6 and 7)
      9  TCP/IP Key Applications and Application Protocols
           9  TCP/IP Administration and Troubleshooting Utilities and Protocols

Previous Topic/Section
TCP/IP DNS Registry Database Lookup Utility (whois/nicname)
Previous Page
Pages in Current Topic/Section
1
2
3456
Next Page
TCP/IP Configuration Utilities (ipconfig, winipcfg and ifconfig)
Next Topic/Section

TCP/IP Network Status Utility (netstat)
(Page 2 of 6)

UNIX netstat

On most UNIX systems the netstat utility is very full-featured, with a typical implementation including dozens of options that can be used to control what information is displayed. These options may not all be used simultaneously; rather, they are arranged into option groups, each of which presents one class of information. Within each group, one option is mandatory; it identifies the group, and hence, the general kind of information that will be displayed. Other options are also possible in each group, which are optional and modify the command to provide better control on exactly what is output. In essence, then, netstat is really like many related utilities rolled into one.

UNIX netstat Option Groups, Options and Parameters

Table 296 provides a simplified summary of the option groups for a typical UNIX netstat implementation, in this case FreeBSD.


Table 296: Typical UNIX netstat Option Groups, Options and Parameters

Option Group, Options and Parameters

Description

netstat [-AaLSW] [-f <family>]
[-p <protocol>] [-n]

This is the default invocation of netstat, with no mandatory options. It prompts the utility to display a list of active sockets on the host machine. The other options shown can be used to control what precisely is output; for example, “-a” causes server processes also to be shown.

netstat -i
[-abdt] [-f <family>] [-n]
netstat -I <interface>
[-abdt] [-f <family>] [-n]

Tells netstat to provide information about all network interfaces (“-i”) or a particular network interface (“-I <interface>”). The “-a” option causes multicast addresses to be shown as well, “-b” displays bytes of data in and out on the interface, “-d” shows the number of dropped packets, and “-t” displays the value of watchdog timers.

netstat -w <interval> -d
[-I <interface>]

Displays packet traffic information on all interfaces every “<interval>” seconds, or just on the specified interface if “-I <interface>” is included. If “-d” is included, also indicates the number of dropped packets.

netstat -s [-s] [-z] [-f <family>]
[-p <protocol>]

Shows system-wide statistics for each of the protocols on the system (which may be modified to show information for only a particular address family or protocol). If the “-s” option is repeated, counters that have a value of zero are suppressed; the “-z” option resets the statistics after they are displayed.

netstat -i -s
[-f <family>] [-p <protocol>]
netstat -I <interface> -s
[-f <family>] [-p <protocol>]

Displays statistics as for “netstat -s” just above, but on a per-interface basis rather than aggregated for the whole system.

netstat -m

Outputs memory management routine statistics.

netstat -r [-Aa] [-f <family>]
[-n] [-W]

Displays the contents of the host’s routing tables. The options “-A” and “-a” provide additional information about the routes.

netstat -rs [-s]

Displays routing statistics; “-s” suppresses counters with a zero value.

netstat -g [-W] [-f <family>]

Shows multicast routing information.

netstat -gs [-s] [-f <family>]

Shows multicast routing statistics; “-s” suppresses counters with a zero value.


Previous Topic/Section
TCP/IP DNS Registry Database Lookup Utility (whois/nicname)
Previous Page
Pages in Current Topic/Section
1
2
3456
Next Page
TCP/IP Configuration Utilities (ipconfig, winipcfg and ifconfig)
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.