如何通过命令行监视Windows上的网络通信;特别是下载/上传速度和上传/下载的数据量?是否有脚本/批处理?如何通过命令行监视Windows上的网络通信
3
A
回答
3
7
虽然tshark
真的很强大,如果你想有细粒度的统计数据(根据主机,协议......),它有主要的缺点是在它运行的时间段内收集统计数据。因此,它是只在报告“即时”的统计数据,但不以固定的点及时报告调查交通好有相处的日子,一周如何网络流量变化的看法,...
此外,由于tshark
使数据包捕获,有一些开销。
因此,根据您的需要,您可能会对MS Windows net
或netstat
命令感兴趣(netstat
可选择按协议报告统计信息)。 'net statistics [Server|workstation]'
或'netstat [-e|-s]'
是,据网络流量统计而言,Linux的'ifconfig'
的微软Windows当量(或'cat /proc/net/dev'
如果您愿意)。
请注意,如ifconfig
那样,net
或netstat
只会报告自从接口启动以来的数据量。
为了获得流量速率,你必须时间戳这些命令您的来电,并做了计算自己。
AFAIK,这两个命令都附带了所有最新的MS Windows版本。
3
Windows中的typeperf应该能够获取数据。
typeperf "\Network Interface(*)\....
typeperf -q "Network Interface" will list all the object
\Network Interface(*)\Bytes Total/sec
\Network Interface(*)\Packets/sec
\Network Interface(*)\Packets Received/sec
\Network Interface(*)\Packets Sent/sec
\Network Interface(*)\Current Bandwidth
\Network Interface(*)\Bytes Received/sec
\Network Interface(*)\Packets Received Unicast/sec
\Network Interface(*)\Packets Received Non-Unicast/sec
\Network Interface(*)\Packets Received Discarded
\Network Interface(*)\Packets Received Errors
\Network Interface(*)\Packets Received Unknown
\Network Interface(*)\Bytes Sent/sec
\Network Interface(*)\Packets Sent Unicast/sec
\Network Interface(*)\Packets Sent Non-Unicast/sec
\Network Interface(*)\Packets Outbound Discarded
\Network Interface(*)\Packets Outbound Errors
\Network Interface(*)\Output Queue Length
\Network Interface(*)\Offloaded Connections
+0
这个答案让我得到我的公式完整 尼克利用率=((总字节数\秒* 8)/当前带宽)* 100 – vicky 2018-02-06 07:34:06
相关问题
- 1. 如何监视SQL Server网络通信
- 2. exec()通过命令行运行,但不通过网络运行
- 3. 如何通过命令行选择多个网络连接?
- 4. 如何通过命令行
- 5. 在Windows 10中通过命令触发网络Flyout/Toast UI
- 6. 用户控件通过命令进行通信 - 如何?
- 7. 绕行JSON网络令牌通过broswer
- 8. 通过网络执行指令
- 9. Windows上Julia的命令行通配符
- 10. 在Windows中通过网络与驱动程序通信
- 11. WPF客户端通过网络与WCF Windows服务进行通信可行吗?
- 12. 通过命令行
- 13. 通过命令行
- 14. 通过命令行
- 15. windows命令行通过引号
- 16. 通过Python运行Windows CMD命令
- 17. 如何通过网络使用python传递Unix命令
- 18. 通过命令行配置Ubuntu服务器网络
- 19. Ubuntu14.04LSM通过命令行无线网络配置
- 20. 通过命令行挂载网络音量是OS X
- 21. 通过串口监视器进行Arduino通信
- 22. 通过C++网络进行的进程间通信
- 23. OS X上的HTTP通信监视
- 24. 如何通过网络
- 25. 如何通过网络API
- 26. 如何通过网络推
- 27. 如何通过执行命令行压缩通过php
- 28. 如何通过命令行通过mysql运行单个查询?
- 29. 基准某个网页通过Windows命令行和PowerShell
- 30. 如何通过GSM网络中的MAP-ATI与HLR进行通信?
这可能会更好,询问这对Serverfault – 2010-01-31 11:25:00
@KenKeenan像[SF/669580:通过CMD数据包捕获(https://serverfault.com/questions/669580/packet-capture-via-cmd)? – n611x007 2015-09-23 12:14:02