1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
netstat.md 4.73 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

netstat

Command Function

The netstat command is a console command and is used for monitoring the TCP/IP network. It can display the actual network connections and the status of each network interface device. It is used to display the statistics related to the TCP and UDP protocols and check the network connection to each port on the device (board).

Syntax

netstat

Parameter Description

None

Usage

Run the command directly.

Example

Enter netstat.

Figure 1 Output information

Output

Table 1 Output description

Parameter

Description

Proto

Indicates the protocol type.

Recv-Q

Indicates the amount of data that is not read by the user.

For Listen TCP, the value indicates the number of TCP connections that have completed three-way handshake but are not accepted by users.

Send-Q

For a TCP connection, this value indicates the amount of data that has been sent but not acknowledged.

For a UDP connection, this value indicates the amount of data buffered before IP address resolution is complete.

Local Address

Indicates the local IP address and port number.

Foreign Address

Indicates the remote IP address and port number.

State

Indicates the TCP connection status. This parameter is meaningless for UDP.

NOTE: The command output like "========== total sockets 32 ====== unused sockets 22 BootTime 27 s ==========" indicates that there are 32 sockets in total, 22 sockets are not used, and it has been 27 seconds since the system starts.

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助