netstat

プロトコルの統計と現在の TCP/IP ネットワーク接続を表示します。

TCP/IP Netstat コマンド


netstat

  • C:\Windows\system32\NETSTAT.EXE /?

STDERR:


プロトコルの統計と現在の TCP/IP ネットワーク接続を表示します。

NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [-x] [-y] [interval]

  -a            すべての接続とリッスン ポートを表示します。
  -b            それぞれの接続またはリッスン ポートの作成に使われた実行可能
                ファイルを表示します。場合により、よく知られた実行可能ファイルが
                複数の独立したコンポーネントをホストすることもあり、その
                場合、接続またはリッスン ポートの作成に使われたコンポーネント
                群が表示されます。この場合、実行可能ファイル名は下に [ ] で表示
                され、上には TCP/IP に到達するまで順に呼び出したコンポーネント
                が表示されます。このオプションには時間がかかり、十分なアクセス
                許可がないとエラーが発生することに
                注意してください。
  -e            イーサネットの統計を表示します。これは、-s オプションと
                併用できます。
  -f            外部アドレスの完全修飾ドメイン名 (FQDN) を
                表示します。
  -n            アドレスとポート番号を数値形式で表示します。
  -o            各接続に関連付けられた各接続を所有するプロセス ID を表示します。
  -p proto      proto で指定されたプロトコルの接続を表示します。
                proto は次のいずれかです: TCP、UDP、TCPv6、UDPv6。プロトコルごとの
                統計を表示するために -s オプションと併用する場合、proto は次のいずれかです:
                IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP、UDPv6。
  -q            すべての接続、リッスン ポート、およびバインドされている
                非リッスン TCP ポートを表示します。バインドされている非リッスン ポートは、
                アクティブな接続に関連付けられている場合と関連付けられていない場合があります。
  -r            ルーティング テーブルを表示します。
  -s            プロトコルごとの統計を表示します。既定では、IP、IPv6、ICMP、
                ICMPv6、TCP、TCPv6、UDP、UDPv6 の統計が表示されます。
                -p オプションを使って、既定のプロトコルのサブセットを指定できます。
  -t            現在の接続のオフロード状態を表示します。
  -x            NetworkDirect の接続、リスナー、共有エンドポイントを
                表示します。
  -y            すべての接続の TCP 接続テンプレートを表示します。
                他のオプションとの併用はできません。
  interval      各表示で interval 秒間一時停止しながら、選択した統計を再表示
                します。統計の再表示を停止するには、Ctrl+C を押します。
                interval が省略された場合、現在の構成情報を
                一度だけ表示します。

Displays protocol statistics and current TCP/IP network connections.

NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [-x] [-y] [interval]

  -a            Displays all connections and listening ports.
  -b            Displays the executable involved in creating each connection or
                listening port. In some cases well-known executables host
                multiple independent components, and in these cases the
                sequence of components involved in creating the connection
                or listening port is displayed. In this case the executable
                name is in [] at the bottom, on top is the component it called,
                and so forth until TCP/IP was reached. Note that this option
                can be time-consuming and will fail unless you have sufficient
                permissions.
  -e            Displays Ethernet statistics. This may be combined with the -s
                option.
  -f            Displays Fully Qualified Domain Names (FQDN) for foreign
                addresses.
  -n            Displays addresses and port numbers in numerical form.
  -o            Displays the owning process ID associated with each connection.
  -p proto      Shows connections for the protocol specified by proto; proto
                may be any of: TCP, UDP, TCPv6, or UDPv6.  If used with the -s
                option to display per-protocol statistics, proto may be any of:
                IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
  -q            Displays all connections, listening ports, and bound
                nonlistening TCP ports. Bound nonlistening ports may or may not
                be associated with an active connection.
  -r            Displays the routing table.
  -s            Displays per-protocol statistics.  By default, statistics are
                shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
                the -p option may be used to specify a subset of the default.
  -t            Displays the current connection offload state.
  -x            Displays NetworkDirect connections, listeners, and shared
                endpoints.
  -y            Displays the TCP connection template for all connections.
                Cannot be combined with the other options.
  interval      Redisplays selected statistics, pausing interval seconds
                between each display.  Press CTRL+C to stop redisplaying
                statistics.  If omitted, netstat will print the current
                configuration information once.

Return Code: 1


C:\Windows\system32\NETSTAT.EXE
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size39936bytes
Creation Time2019/12/07 18:09:34
LastWrite Time2019/12/07 18:09:34
ProductVersion10.0.19041.1889
FileVersion10.0.19041.1889 (WinBuild.160101.0800)
HashValue
MD57fddd6681ea81ce26e64452336f479e6
SHA1c038069021cea437ae40b421929e9d4d1a3440b3
SHA2248b0a58877270ff55d2971eba95125d4b6c8d434ac8c0d680cccc4624
SHA256b094e827af70241d71bed9767ec1a254fdc4164a646b2ba4c7105cd783adba0d
SHA384ff4ee704245143a96f73efd8e3d075bdda71fa140302f66adbefc68e2bce5a44c6685956f2a76903c8c2ec13e80a34b7
SHA5129a7c50e83ca4575a46d574a2e148190ccebdb6eec1f6fb21a1f31418b3be475b344f0d64e0f2efe54184bbd4efac21bdf86e7eaa462d89dbb57342e25beae4e9
Built with Hugo
テーマ StackJimmy によって設計されています。