Print this page
XXXX adding PID information to netstat output
   1 NETSTAT(1M)                  Maintenance Commands                  NETSTAT(1M)
   2 
   3 
   4 
   5 NAME
   6        netstat - show network status
   7 
   8 SYNOPSIS
   9        netstat [-anvR] [-f address_family] [-P protocol]
  10 
  11 
  12        netstat -g [-nv] [-f address_family]
  13 
  14 
  15        netstat -p [-n] [-f address_family]
  16 
  17 
  18        netstat -s [-f address_family] [-P protocol]
  19             [-T u | d ] [interval [count]]
  20 
  21 
  22        netstat -m [-T u | d ] [-v] [interval [count]]
  23 
  24 
  25        netstat -i [-I interface] [-an] [-f address_family]
  26             [-T u | d ] [interval [count]]
  27 
  28 
  29        netstat -r [-anvR] [-f address_family | filter]


 189            entry if needed.
 190 
 191 
 192        -s
 193 
 194            Show per-protocol statistics. When used with the -M option, show
 195            multicast routing statistics instead. When used with the -a option,
 196            per-interface statistics will be displayed, when available, in
 197            addition to statistics global to the system. See DISPLAYS, below.
 198 
 199 
 200        -T u | d
 201 
 202            Display a time stamp.
 203 
 204            Specify u for a printed representation of the internal
 205            representation of time. See time(2). Specify d for standard date
 206            format. See date(1).
 207 
 208 








 209        -v
 210 
 211            Verbose. Show additional information for the sockets, STREAMS
 212            memory statistics, routing table, and multicast group memberships.
 213 
 214 
 215        -I interface
 216 
 217            Show the state of a particular interface. interface can be any
 218            valid interface such as hme0 or eri0. Normally, the status and
 219            statistics for physical interfaces are displayed. When this option
 220            is combined with the -a option, information for the logical
 221            interfaces is also reported.
 222 
 223 
 224        -M
 225 
 226            Show the multicast routing tables. When used with the -s option,
 227            show multicast routing statistics instead.
 228 


 648        the DEFAULT_IP setting.
 649 
 650        If you need to examine network status information following a kernel
 651        crash, use the mdb(1) utility on the savecore(1M) output.
 652 
 653        The netstat utility obtains TCP statistics from the system by opening
 654        /dev/tcp and issuing queries. Because of this, netstat might display an
 655        extra, unused connection in IDLE state when reporting connection
 656        status.
 657 
 658        Previous versions of netstat had undocumented methods for reporting
 659        kernel statistics published using the kstat(7D) facility. This
 660        functionality has been removed. Use kstat(1M) instead.
 661 
 662        netstat restricts its output to information that is relevant to the
 663        zone in which netstat runs. (This is true for both shared-IP and
 664        exclusive-IP zones.)
 665 
 666 
 667 
 668                                September 2, 2015                   NETSTAT(1M)
   1 NETSTAT(1M)                  Maintenance Commands                  NETSTAT(1M)
   2 
   3 
   4 
   5 NAME
   6        netstat - show network status
   7 
   8 SYNOPSIS
   9        netstat [-anuvR] [-f address_family] [-P protocol]
  10 
  11 
  12        netstat -g [-nv] [-f address_family]
  13 
  14 
  15        netstat -p [-n] [-f address_family]
  16 
  17 
  18        netstat -s [-f address_family] [-P protocol]
  19             [-T u | d ] [interval [count]]
  20 
  21 
  22        netstat -m [-T u | d ] [-v] [interval [count]]
  23 
  24 
  25        netstat -i [-I interface] [-an] [-f address_family]
  26             [-T u | d ] [interval [count]]
  27 
  28 
  29        netstat -r [-anvR] [-f address_family | filter]


 189            entry if needed.
 190 
 191 
 192        -s
 193 
 194            Show per-protocol statistics. When used with the -M option, show
 195            multicast routing statistics instead. When used with the -a option,
 196            per-interface statistics will be displayed, when available, in
 197            addition to statistics global to the system. See DISPLAYS, below.
 198 
 199 
 200        -T u | d
 201 
 202            Display a time stamp.
 203 
 204            Specify u for a printed representation of the internal
 205            representation of time. See time(2). Specify d for standard date
 206            format. See date(1).
 207 
 208 
 209        -u
 210 
 211            When specified, for each network endpoint netstat will print the
 212            list of the processes currently have an open file descriptor
 213            pointing to that endpoint.  netstat will list the username, process
 214            id, and the program for each process in that list.
 215 
 216 
 217        -v
 218 
 219            Verbose. Show additional information for the sockets, STREAMS
 220            memory statistics, routing table, and multicast group memberships.
 221 
 222 
 223        -I interface
 224 
 225            Show the state of a particular interface. interface can be any
 226            valid interface such as hme0 or eri0. Normally, the status and
 227            statistics for physical interfaces are displayed. When this option
 228            is combined with the -a option, information for the logical
 229            interfaces is also reported.
 230 
 231 
 232        -M
 233 
 234            Show the multicast routing tables. When used with the -s option,
 235            show multicast routing statistics instead.
 236 


 656        the DEFAULT_IP setting.
 657 
 658        If you need to examine network status information following a kernel
 659        crash, use the mdb(1) utility on the savecore(1M) output.
 660 
 661        The netstat utility obtains TCP statistics from the system by opening
 662        /dev/tcp and issuing queries. Because of this, netstat might display an
 663        extra, unused connection in IDLE state when reporting connection
 664        status.
 665 
 666        Previous versions of netstat had undocumented methods for reporting
 667        kernel statistics published using the kstat(7D) facility. This
 668        functionality has been removed. Use kstat(1M) instead.
 669 
 670        netstat restricts its output to information that is relevant to the
 671        zone in which netstat runs. (This is true for both shared-IP and
 672        exclusive-IP zones.)
 673 
 674 
 675 
 676                                  July 12, 2016                     NETSTAT(1M)