Chinaunix首页 | 论坛 | 博客
  • 博客访问: 601561
  • 博文数量: 96
  • 博客积分: 1464
  • 博客等级: 上尉
  • 技术积分: 1539
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-12 23:24
文章分类

全部博文(96)

文章存档

2013年(29)

2012年(53)

2011年(14)

分类: 系统运维

2012-03-03 17:05:49

Netstat命令:


netstat命令不是内部或外部命令

在命令框中输入netstat如出现上述提示

解决方法:


netstat 命令报该错误有一般两个原因:

 1 该命令不存在于该版本的操作系统中,系统找不着。

 2 该命令无法找到,但是系统存在,请在“我的电脑上”单击“右键”,“属性”,“高级”,“环境变量”,修改或添加“C:\windows;C:\windows\system32;”,其中的系统盘盘符换为自己机器对应的,就可以了。设定完成后,重启cmd,然后就能找到该命令了。



查看并记入当前正在活动的网络连接的详细信息:如协议类型、当前主机与远端相连主机的Ip地址


  1. C:\Documents and Settings\Administrator>netstat
  2. Active Connections
  3. Proto Local Address Foreign Address State
  4. TCP student4-017:2691 61.137.191.86:http CLOSE_WAIT
  5. TCP student4-017:3948 183.60.1.61:http TIME_WAIT
  6. TCP student4-017:3957 hx-in-f105.1e100.net:http ESTABLISHED
  7. TCP student4-017:3958 hx-in-f105.1e100.net:http ESTABLISHED
  8. TCP student4-017:1029 localhost:27015 ESTABLISHED
  9. TCP student4-017:1084 localhost:1085 ESTABLISHED
  10. TCP student4-017:1085 localhost:1084 ESTABLISHED
  11. TCP student4-017:1088 localhost:1089 ESTABLISHED
  12. TCP student4-017:1089 localhost:1088 ESTABLISHED
  13. TCP student4-017:27015 localhost:1029 ESTABLISHED
  14. TCP student4-017:30003 localhost:3955 TIME_WAIT



  1. C:\Documents and Settings\Administrator>netstat -e
  2. Interface Statistics
  3. Received Sent
  4. Bytes 68996643 5513643
  5. Unicast packets 62402 48697
  6. Non-unicast packets 129966 4196
  7. Discards 0 0
  8. Errors 0 1
  9. Unknown protocols 4011



  1. C:\Documents and Settings\Administrator>netstat -e -s
  2. Interface Statistics
  3. Received Sent
  4. Bytes 69046367 5518680
  5. Unicast packets 62449 48746
  6. Non-unicast packets 130462 4212
  7. ***



  1. C:\Documents and Settings\Administrator>netstat -o 5
  2. Active Connections
  3. Proto Local Address Foreign Address State PID
  4. TCP student4-017:2691 61.137.191.86:http CLOSE_WAIT 2968
  5. TCP student4-017:3878 reverse.gdsz.cncnet.net:http TIME_WAIT 0
  6. TCP student4-017:1029 localhost:27015 ESTABLISHED 1348
  7. TCP student4-017:1084 localhost:1085 ESTABLISHED 388
  8. TCP student4-017:1085 localhost:1084 ESTABLISHED 388
  9. TCP student4-017:1088 localhost:1089 ESTABLISHED 388
  10. TCP student4-017:1089 localhost:1088 ESTABLISHED 388
  11. TCP student4-017:27015 localhost:1029 ESTABLISHED 184
  12. Active Connections
  13. Proto Local Address Foreign Address State PID
  14. TCP student4-017:2691 61.137.191.86:http CLOSE_WAIT 2968
  15. TCP student4-017:3878 reverse.gdsz.cncnet.net:http TIME_WAIT 0
  16. TCP student4-017:1029 localhost:27015 ESTABLISHED 1348
  17. TCP student4-017:1084 localhost:1085 ESTABLISHED 388
  18. TCP student4-017:1085 localhost:1084 ESTABLISHED 388
  19. TCP student4-017:1088 localhost:1089 ESTABLISHED 388
  20. TCP student4-017:1089 localhost:1088 ESTABLISHED 388
  21. TCP student4-017:27015 localhost:1029 ESTABLISHED 184
  22. ^C

阅读(1340) | 评论(0) | 转发(0) |
0

上一篇:ftp命令

下一篇:Route命令

给主人留下些什么吧!~~