是否有任何命令可以显示发送和接收的数据量,就像发送和已收到我的 LAN 连接的数据是什么(如下图所示)?
我需要将此信息传输到文件中以供进一步使用。
答案1
你可以试试:
netsh interface ip show ipstats
这将为您提供一个表格,其中包含有关接收、发送、丢弃的数据包等的信息。
答案2
您应该指定 Windows 的版本,但以下命令应该可以工作:
net statistics Workstation
给出如下输出:
Workstation Statistics for \\NETBIOSNAME
Statistics since 18/04/2013 6:37:30 PM
Bytes received 438062
Server Message Blocks (SMBs) received 4351
Bytes transmitted 537108
Server Message Blocks (SMBs) transmitted 4346
Read operations 0
Write operations 0
Raw reads denied 0
Raw writes denied 0
Network errors 0
Connections made 312
Reconnections made 0
Server disconnects 0
Sessions started 1
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 467
Failed use count 0