Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Program call

&pagelevel(5)&pagelevel

The program is installed under /usr/bin/netstat. If it is called without options or with the -h or -? option, the following help text is shown:


netstat [-a][-ia][-h][-i [<ifname>[,...]]][-ir [<ifname>[,...]]][-is]
  [-isr][-d][-dsr][-g][-gm][-m][-ma][-mn][-mo][-mp][-r][-s][-si][-sc]
  [-st][-su][-t][-tl][-te][-tpo][-tw][-ac][-u][-?]
  [<waittime>][<repetitions>]


Description of the options

You can specify several options at the same time. The corresponding outputs are shown for every repetition.

-a
         

Show IP addresses.
The display corresponds to the IP-ADDRESSES = *YES parameter under BS2000.

-ia

Show own IP/IPv6 internet addresses.
The display corresponds to the INTERNET-ADDRESSES = *YES parameter under BS2000.

-h

Show this help.
The help text described above is shown.

-i [<ifname>[,...]]:


Show interface values.
If one or more comma-separated interface names are specified, only the values of the corresponding interfaces are shown. The display corresponds to the INTERFACE-VALUES =*YES parameter under BS2000.

-ir [<ifname>[,...]]:


Show interface rate.
If one or more comma-separated interface names are specified, only the values of the corresponding interfaces are shown. The display corresponds to the INTERFACE-RATE =*YES parameter under BS2000.

-is

Show sum of all interfaces.
The display corresponds to the INTERFACE-SUM =*YES parameter under BS2000.

-isr

Show sum interface rate of all interfaces.
The display corresponds to the INTERFACE-SUM-RATE =*YES parameter under BS2000.

-d

Show device connections.
Displays the device connections in BS2000.

-dsr

Show sum device rate of all devices.

-g

show global information in BCAM.
The display corresponds to the BCAM-GLOBAL =*YES parameter under BS2000.

-gm

show memory information in BCAM.
The display corresponds to the BCAM-MEMORY =*YES parameter under BS2000.

-m

Show MAC addresses.
The display corresponds to the MAC-ADDRESSES =*YES parameter under
BS2000.

-ma

Show all MAC addresses.
The display corresponds to the ALL-MAC-ADDRESS =*YES parameter under BS2000.

-mn

Show all MAC addresses and all their corresponding IP addresses.

-mo

Show own MAC addresses.
The display corresponds to the OWN-MAC-ADDRESS =*YES parameter under BS2000.

-mp

Show partner MAC addresses.
The display corresponds to the PARTNER-MAC-ADDRESS =*YES parameter under BS2000.

-r

Show routing information.
The display corresponds to the ROUTING=*YES parameter under BS2000.

-s

Show ICMP, IP, TCP and UDP statistics.
The display corresponds to the ALL-STATISTICS=*YES parameter under BS2000.

-si

Show IP statistics.
The display corresponds to the IP-STATISTICS=*YES parameter under BS2000.

-sc

Show ICM statistics.
The display corresponds to the ICMP-STATISTICS=*YES parameter under BS2000.

-st

Show TCP statistics.
The display corresponds to the TCP-STATISTICS=*YES parameter under BS2000.

-su

Show UDP statistics.
The display corresponds to the UDP-STATISTICS=*YES parameter under BS2000.

-t

Show TCP connections.
The display corresponds to the TCP-CONNECTIONS=*YES parameter under BS2000.

-tl

Show TCP connections in state "listen".

-te

Show TCP connections in state "established".

-tpo

Show own proxy (tunnel) TCP connection, if available.

-tw

Show TCP connections in state "timewait".

-ac

Show all TCP connections.
The display corresponds to the ALL-CONNECTIONS=*YES parameter under BS2000.

-u

Show opened UDP ports.
The display corresponds to the UDP-PORTS=*YES parameter under BS2000.

-? 

Show this help
Shows the help text described above.

<waittime>


Wait time (in seconds) between 2 displays of the selected functions.

<repetitions>


Number of times the display of the selected functions is repeated.

If you don’t specify the <waittime> parameter or the <repetitions> parameter, a display is shown and the program is terminated.

If you only specify the <waittime> parameter, the selected functions are output until the program is aborted (with @@C).

If you also specify the <repetitions> parameter, the program is terminated after the corresponding number of repetitions.