设为首页 收藏本站
查看: 1230|回复: 0

[经验分享] cisco命令:show process cpu-YEELON

[复制链接]

尚未签到

发表于 2018-7-12 09:28:55 | 显示全部楼层 |阅读模式
  Router#show proc cpu
  CPU utilization for five seconds: 63%/50%; one minute: 58%; five minutes: 58
  %
  PID Runtime(ms) Invoked uSecs    5Sec   1Min   5Min TTY Process
  1        4976     54773     90   0.00% 0.00% 0.00%   0 Load Meter
  2        3788       670   5653   1.71% 0.22% 0.15% 130 Virtual Exec
  24        3592       632   5683   0.00% 0.04% 0.09% 131 Virtual Exec
  25   101868424 30627416   3326   8.76% 9.04% 10.41%   0 IP Input
  CPU utilization for five seconds: 63%/50%
  50%是指由于Interrupt switching 导致的CPU utilization, 所谓的Interrupt switch
  ing 也就是指所有除了process switching 的交换方式,例如fast switching, optimu
  m switching, cef switching....所产生的CPU负载
  Average utilization due to interrupts, during last five seconds
  63%指的是最近5秒的CPU utilization总和,包括(interrupts + processes)
  Average total utilization during last five seconds (interrupts + processes)
  用63%-50%=13%, 这13%是基本由于process switching导致的CPU消耗,理解Cisco 路由
  器交换方式的人都知道,有一些流量路由器是必须使用process switching,例如icmp,
  也就ping, snmp等都是必须使用process switching
  通常看来,如果打开了cef switching但是process switching部分的cpu utilization(
  63%-50%=13%)非常高,很可能目前情况不太正常,,因为如果打开cef的话,基本上除
  了icmp, snmp等类型的包外,都应该采用cef switching,但这部分差值由谁导致的,就
  要看show process cpu了, 从上面的例子可以看出来:
  PID Runtime(ms) Invoked uSecs    5Sec   1Min   5Min TTY Process
  25   101868424 30627416   3326   8.76% 9.04% 10.41%   0 IP Input
  由于此路由器已经打开了cef,但为什么还有这么多的IP Input流量是通过process swi
  tching处理呢?
  使用show interface state可以看到每个接口不同swiching方式产生的流量,如果某个
  接口的process部分很高,那很可能问题就出在这个端口。
  Router#show interfaces stat
  FastEthernet0/0
  Switching path    Pkts In   Chars In   Pkts Out Chars Out
  Processor    7995038 553590227    8470311 629922225
  Route cache   42017034 3042361084   47856422 3952941601
  Total   50012072 3595951311   56326733 287896530
  FastEthernet1/0
  Switching path    Pkts In   Chars In   Pkts Out Chars Out
  Processor    1478297 178528355    1007368 101120880
  Route cache   46470310 3666895196   40629605 2756450367
  Total   47948607 3845423551   41636973 2857571247
  使用show ip traffic命令来确认到底是那一种流量过大。
  从下例中可以看出, 几个不太正常的地:
  1.在ICMP中有321413 unreachable,2263321 echo reply,很明显路由器响应的ICMP太
  多了,如果每隔几秒都有数量增加,建议在接口状态下关掉IMCP redirects, unreacha
  ble以及echo reply,这些只会增加CPU负担。
  interface xxxx
  no ip redirects
  no ip unreachables
  ...
  2.在UDP statistics中:
  Rcvd: 7112 total, 0 checksum errors, 21093 no port
  大量的no port就不太正常了,一般都是由于某些hacker软件扫描端口造成的, 如果每
  隔几秒都有数量增加,建议关掉proxy-arp
  interface xxx
  no ip proxy-arp
  3. 在IP statistics,有89518 bad hop count,这一般是由于TTL过期导致的,如果每
  隔几秒都有大量计数增加,很明显,网络中存在routing loop,尽快检查你的数据配置
  或是询问你的ISP怎么给你做的路由。
  Router#show ip traffic
  IP statistics:
  Rcvd: 190022549 total, 13327 local destination
  2 format errors, 0 checksum errors, 89518 bad hop count
  0 unknown protocol, 0 not a gateway
  0 security failures, 0 bad options, 0 with options
  Opts: 0 end, 0 nop, 0 basic security, 0 loose source route
  0 timestamp, 0 extended security, 0 record route

  0 stream>  0 other
  Frags: 0 reassembled, 0 timeouts, 0 couldn't reassemble
  6583 fragmented, 0 couldn't fragment
  Bcast: 2433 received, 77 sent
  Mcast: 0 received, 0 sent
  Sent: 100452 generated, 99773529 forwarded
  Drop: 430 encapsulation failed, 1479 unresolved, 0 no adjacency
  3606 no route, 0 unicast RPF, 0 forced drop
  ICMP statistics:
  Rcvd: 0 format errors, 0 checksum errors, 0 redirects, 321413 unreachable
  2281 echo, 0 echo reply, 0 mask requests, 0 mask replies, 0 quench
  0 parameter, 0 timestamp, 0 info request, 0 other
  0 irdp solicitations, 0 irdp advertisements
  Sent: 0 redirects, 4 unreachable, 0 echo, 2263321 echo reply
  0 mask requests, 0 mask replies, 0 quench, 0 timestamp
  0 info reply, 89517 time exceeded, 0 parameter problem
  0 irdp solicitations, 0 irdp advertisements
  UDP statistics:
  Rcvd: 7112 total, 0 checksum errors, 21093 no port
  Sent: 5883 total, 0 forwarded broadcasts
  TCP statistics:
  Rcvd: 3935 total, 0 checksum errors, 4 no port
  Sent: 2788 total
  http://hi.baidu.com/annylove520/blog/item/b0f3a1d143d71c3e9a502771.html

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-536372-1-1.html 上篇帖子: Cisco IOS SHOW 命令大全 下篇帖子: cisco课程3
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表