Skip to content

Commit 87a3efd

Browse files
authored
Add nstat.md and updata Readme.md (#632)
* Update README.md * Update README.md * add nstat.md
1 parent 9585b89 commit 87a3efd

File tree

2 files changed

+138
-1
lines changed

2 files changed

+138
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[![jsdelivr cdn](https://data.jsdelivr.com/v1/package/npm/linux-command/badge)](https://www.jsdelivr.com/package/npm/linux-command)
1414
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/linux-command?logo=docker)](https://hub.docker.com/r/wcjiang/linux-command)
1515

16-
当前仓库搜集了 580 多个 Linux 命令,是一个非盈利性的仓库,生成了一个 web 网站方便使用,目前网站没有任何广告,内容包含 Linux 命令手册、详解、学习,内容来自网络和网友的补充,非常值得收藏的 Linux 命令速查手册。版权归属原作者,对任何法律问题及风险不承担任何责任,没有任何商业目的,如果认为侵犯了您的版权,请来信告知。我不能完全保证内容的正确性。通过使用本站内容带来的风险与我无关。当使用本站时,代表您已接受了本站的使用条款和隐私条款。
16+
当前仓库搜集了 600 多个 Linux 命令,是一个非盈利性的仓库,生成了一个 web 网站方便使用,目前网站没有任何广告,内容包含 Linux 命令手册、详解、学习,内容来自网络和网友的补充,非常值得收藏的 Linux 命令速查手册。版权归属原作者,对任何法律问题及风险不承担任何责任,没有任何商业目的,如果认为侵犯了您的版权,请来信告知。我不能完全保证内容的正确性。通过使用本站内容带来的风险与我无关。当使用本站时,代表您已接受了本站的使用条款和隐私条款。
1717

1818
## Web 版本
1919

command/nstat.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
nstat
2+
===
3+
4+
nstat 是一个简单的监视内核的 SNMP 计数器和网络接口状态的实用工具。
5+
6+
## 补充说明
7+
8+
大多数命令行用户都熟悉 netstat ,这是 net-tools 软件包中的命令。目前新版本中 net-tools 软件包几乎完全被弃用,取而代之的是 ip 命令套件,而 nstat 属于新软件包。
9+
10+
### 语法
11+
12+
```s
13+
nstat [OPTION] [ PATTERN [ PATTERN ] ]
14+
```
15+
16+
### 选项
17+
18+
```shell
19+
-h:显示帮助信息;
20+
-V:显示指令版本信息;
21+
-z:转储零计数器。默认情况下不显示它们;
22+
-r:清零历史统计;
23+
-n:不显示任何内容,仅更新历史;
24+
-a:显示计数器的绝对值;
25+
-d:以守护进程模式运行并收集统计数据
26+
-s:不更新历史;
27+
-j:JSON格式输出。
28+
```
29+
30+
### 实例
31+
32+
直接输入以查询网络接口状态,以下展示了 IPv4,IPv6,TCP,UDP,ICMP 的统计数据:
33+
34+
```shell
35+
nstat
36+
#kernel
37+
IpInReceives 769152 0.0
38+
IpInAddrErrors 1 0.0
39+
IpInDelivers 769146 0.0
40+
IpOutRequests 764236 0.0
41+
IpOutDiscards 20 0.0
42+
IpOutNoRoutes 1 0.0
43+
IcmpInMsgs 92 0.0
44+
IcmpInDestUnreachs 92 0.0
45+
IcmpOutMsgs 94 0.0
46+
IcmpOutDestUnreachs 94 0.0
47+
IcmpMsgInType3 92 0.0
48+
IcmpMsgOutType3 94 0.0
49+
TcpActiveOpens 1786 0.0
50+
TcpPassiveOpens 142 0.0
51+
TcpAttemptFails 11 0.0
52+
TcpEstabResets 72 0.0
53+
TcpInSegs 756827 0.0
54+
TcpOutSegs 802908 0.0
55+
TcpRetransSegs 767 0.0
56+
TcpOutRsts 702 0.0
57+
UdpInDatagrams 12075 0.0
58+
UdpNoPorts 82 0.0
59+
UdpOutDatagrams 7045 0.0
60+
UdpIgnoredMulti 70 0.0
61+
Ip6InReceives 5005 0.0
62+
Ip6InDelivers 5005 0.0
63+
Ip6OutRequests 131 0.0
64+
Ip6OutDiscards 2 0.0
65+
Ip6OutNoRoutes 959 0.0
66+
Ip6InMcastPkts 4999 0.0
67+
Ip6OutMcastPkts 125 0.0
68+
Ip6InOctets 797462 0.0
69+
Ip6OutOctets 16421 0.0
70+
Ip6InMcastOctets 797030 0.0
71+
Ip6OutMcastOctets 15949 0.0
72+
Ip6InNoECTPkts 5005 0.0
73+
Icmp6InMsgs 3 0.0
74+
Icmp6OutMsgs 51 0.0
75+
Icmp6InNeighborAdvertisements 1 0.0
76+
Icmp6InMLDv2Reports 2 0.0
77+
Icmp6OutRouterSolicits 11 0.0
78+
Icmp6OutNeighborSolicits 4 0.0
79+
Icmp6OutMLDv2Reports 36 0.0
80+
Icmp6InType136 1 0.0
81+
Icmp6InType143 2 0.0
82+
Icmp6OutType133 11 0.0
83+
Icmp6OutType135 4 0.0
84+
Icmp6OutType143 36 0.0
85+
Udp6InDatagrams 4998 0.0
86+
Udp6OutDatagrams 76 0.0
87+
TcpExtTW 385 0.0
88+
TcpExtPAWSEstab 1 0.0
89+
TcpExtDelayedACKs 37133 0.0
90+
TcpExtDelayedACKLocked 57 0.0
91+
TcpExtDelayedACKLost 456 0.0
92+
TcpExtTCPHPHits 417717 0.0
93+
TcpExtTCPPureAcks 34186 0.0
94+
TcpExtTCPHPAcks 222980 0.0
95+
TcpExtTCPSACKReorder 1 0.0
96+
TcpExtTCPLossUndo 194 0.0
97+
TcpExtTCPLostRetransmit 169 0.0
98+
TcpExtTCPSlowStartRetrans 1 0.0
99+
TcpExtTCPTimeouts 494 0.0
100+
TcpExtTCPLossProbes 309 0.0
101+
TcpExtTCPBacklogCoalesce 571 0.0
102+
TcpExtTCPDSACKOldSent 281 0.0
103+
TcpExtTCPDSACKRecv 281 0.0
104+
TcpExtTCPAbortOnData 13 0.0
105+
TcpExtTCPAbortOnClose 30 0.0
106+
TcpExtTCPDSACKIgnoredOld 1 0.0
107+
TcpExtTCPDSACKIgnoredNoUndo 258 0.0
108+
TcpExtTCPSackShiftFallback 1 0.0
109+
TcpExtTCPRcvCoalesce 18314 0.0
110+
TcpExtTCPFastOpenActiveFail 2 0.0
111+
TcpExtTCPSpuriousRtxHostQueues 11 0.0
112+
TcpExtTCPAutoCorking 1684 0.0
113+
TcpExtTCPFromZeroWindowAdv 2 0.0
114+
TcpExtTCPToZeroWindowAdv 2 0.0
115+
TcpExtTCPSynRetrans 479 0.0
116+
TcpExtTCPOrigDataSent 359814 0.0
117+
TcpExtTCPHystartTrainDetect 13 0.0
118+
TcpExtTCPHystartTrainCwnd 550 0.0
119+
TcpExtTCPKeepAlive 18 0.0
120+
TcpExtTCPDelivered 361695 0.0
121+
TcpExtTCPZeroWindowDrop 1 0.0
122+
TcpExtTcpTimeoutRehash 494 0.0
123+
TcpExtTcpDuplicateDataRehash 2 0.0
124+
TcpExtTCPDSACKRecvSegs 281 0.0
125+
IpExtInNoRoutes 3 0.0
126+
IpExtInMcastPkts 5392 0.0
127+
IpExtOutMcastPkts 221 0.0
128+
IpExtInBcastPkts 70 0.0
129+
IpExtOutBcastPkts 10 0.0
130+
IpExtInOctets 2100280442 0.0
131+
IpExtOutOctets 226760631 0.0
132+
IpExtInMcastOctets 746608 0.0
133+
IpExtOutMcastOctets 27565 0.0
134+
IpExtInBcastOctets 5674 0.0
135+
IpExtOutBcastOctets 778 0.0
136+
IpExtInNoECTPkts 1885871 0.0
137+
```

0 commit comments

Comments
 (0)