取消
显示结果 
搜索替代 
您的意思是: 
cancel
31463
查看次数
32
有帮助
31
回复

C2960L cpu使用率高

yu335_sohu_com
Level 1
Level 1
本帖最后由 yu335@sohu.com 于 2018-1-3 18:36 编辑
JXSW1101#show ver
Cisco IOS Software, C2960L Software (C2960L-UNIVERSALK9-M), Version 15.2(6)E, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Sat 05-Aug-17 12:46 by prod_rel_team
ROM: Bootstrap program is C2960L boot loader
BOOTLDR: C2960L Boot Loader (C2960L-HBOOT-M) Version 15.2(5r)E3, RELEASE SOFTWARE (fc2)
JXSW1101 uptime is 2 weeks, 1 day, 6 hours, 4 minutes
System returned to ROM by power-on
System restarted at 12:30:01 beijing Tue Dec 19 2017
System image file is "flash:c2960l-universalk9-mz.152-6.E/c2960l-universalk9-mz.152-6.E.bin"
Last reload reason: power-on
31 条回复31

yu335_sohu_com
Level 1
Level 1
JXSW1101#show ver
Cisco IOS Software, C2960L Software (C2960L-UNIVERSALK9-M), Version 15.2(6)E, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Sat 05-Aug-17 12:46 by prod_rel_team
ROM: Bootstrap program is C2960L boot loader
BOOTLDR: C2960L Boot Loader (C2960L-HBOOT-M) Version 15.2(5r)E3, RELEASE SOFTWARE (fc2)
JXSW1101 uptime is 2 weeks, 1 day, 6 hours, 4 minutes
System returned to ROM by power-on
System restarted at 12:30:01 beijing Tue Dec 19 2017
System image file is "flash:c2960l-universalk9-mz.152-6.E/c2960l-universalk9-mz.152-6.E.bin"
Last reload reason: power-on

Jim—Jin
Cisco Employee
Cisco Employee
连续收集5次:show controllers cpu-interface。看看哪个Q增长率最高,然后debug这个Q,命令是debug platform cpu-queues <出问题的q> ,应该就可以看到究竟是来自谁的数据包总上CPU,尝试把源从网络种拿掉,看看CPU是否缓解。

Jim—Jin
Cisco Employee
Cisco Employee
连续收集5次:show controllers cpu-interface。看看哪个Q增长率最高,然后debug这个Q,命令是debug platform cpu-queues <出问题的q> ,应该就可以看到究竟是来自谁的数据包总上CPU,尝试把源从网络种拿掉,看看CPU是否缓解。

yu335_sohu_com
Level 1
Level 1
JXSW1101#show controllers ?
GigabitEthernet GigabitEthernet IEEE 802.3z
ethernet-controller Show Ethernet Controller info
power Show Power Controller info
utilization Switch Bandwidth Utilization
| Output modifiers

没有这条命令show controllers cpu-interface

tt.com
Level 1
Level 1
yu335@sohu.com 发表于 2018-1-4 11:52
JXSW1101#show controllers ?
GigabitEthernet GigabitEthernet IEEE 802.3z
ethernet-controll ...

明显是ISO的版本低了,升个级就好了!
4#ldz1-c2960#show version | in flash:
System image file is "flash:/c2960-lanbasek9-mz.122-50.SE5.bin"
4#ldz1-c2960#show controllers ?
FastEthernet FastEthernet IEEE 802.3
GigabitEthernet GigabitEthernet IEEE 802.3z
cpu-interface Display CPU-Interface Status
ethernet-controller Show Ethernet Controller info
power Show Power Controller info
tcam Show TCAM Controller info
utilization Switch Bandwidth Utilization
| Output modifiers

4#ldz1-c2960#show controllers

yu335_sohu_com
Level 1
Level 1
tt.com 发表于 2018-1-4 16:28
明显是ISO的版本低了,升个级就好了!
4#ldz1-c2960#show version | in flash:
System image file is " ...

我的版本是思科上最新的
Description: UNIVERSAL
Release: 15.2.6E
Release Date: 08/Aug/2017
File Name: c2960l-universalk9-mz.152-6.E.bin
Min Memory: DRAM 48 MB Flash 20 MB
Size: 14.81 MB (15526912 bytes)

yu335_sohu_com
Level 1
Level 1
tt.com 发表于 2018-1-4 16:28
明显是ISO的版本低了,升个级就好了!
4#ldz1-c2960#show version | in flash:
System image file is " ...

你用的是12.2 我的是c2960L 用的是15.2.6E

yu335_sohu_com
Level 1
Level 1
不知道是不是这个命令:
JXSW1101#show platform cpu rx counters
Number of packets received in CPU : 1168153
Number of packets received in CPU in last one second : 42
Known packet counters :
CDP : 3651
LLDP : 0
DTP : 6618
UDLD : 0
PAGP : 0
LACP : 0
VTP : 0
STP : 10352
SSTP : 477063
LOOP : 0
ARP : 224709
RARP : 0
IP : 294981
IPv6 : 77053
Others : 73726

tt.com
Level 1
Level 1
yu335@sohu.com 发表于 2018-1-4 19:39
不知道是不是这个命令:
JXSW1101#show platform cpu rx counters
Number of packets received in CPU ...

那就不知道了!我show出来的是这样的:
4#ldz1-c2960#show controllers cpu-interface
ASIC Rxbiterr Rxunder Fwdctfix Txbuflos Rxbufloc Rxbufdrain
-------------------------------------------------------------------------
ASIC0 0 0 0 0 0 0
ASIC1 0 0 0 0 0 0
cpu-queue-frames retrieved dropped invalid hol-block stray
----------------- ---------- ---------- ---------- ---------- ----------
rpc 0 0 0 0 0
stp 1400433 0 0 0 0
ipc 0 0 0 0 0
routing protocol 536092 0 0 0 0
L2 protocol 18979 0 0 0 0
remote console 0 0 0 0 0
sw forwarding 10120 0 0 0 0
host 4156 0 0 0 0
broadcast 74000 0 0 0 0
cbt-to-spt 0 0 0 0 0
igmp snooping 51256 0 0 0 0
icmp 0 0 0 0 0
logging 0 0 0 0 0
rpf-fail 0 0 0 0 0
dstats 0 0 0 0 0
cpu heartbeat 1735895 0 0 0 0
Supervisor ASIC receive-queue parameters
----------------------------------------
queue 0 maxrecevsize 0 pakhead 0 paktail 0
queue 1 maxrecevsize 7E0 pakhead 211F154 paktail 30BC96C
queue 2 maxrecevsize 0 pakhead 0 paktail 0
queue 3 maxrecevsize 7E0 pakhead 21AA744 paktail 31196D8
queue 4 maxrecevsize 7E0 pakhead 3FACE0C paktail 30C9C88
queue 5 maxrecevsize 0 pakhead 0 paktail 0
queue 6 maxrecevsize 7E0 pakhead 3112314 paktail 21A2A08
queue 7 maxrecevsize 7E0 pakhead 3E6AEA0 paktail 312422C
queue 8 maxrecevsize 7E0 pakhead 31265F4 paktail 21BF8F4
queue 9 maxrecevsize 0 pakhead 0 paktail 0
queue A maxrecevsize 7E0 pakhead 21489A4 paktail 2148610
queue B maxrecevsize 7E0 pakhead 311A528 paktail 21AB344
queue C maxrecevsize 7E0 pakhead 214A8B0 paktail 30EEF78
queue D maxrecevsize 0 pakhead 0 paktail 0
queue E maxrecevsize 0 pakhead 0 paktail 0
queue F maxrecevsize 7E0 pakhead 2143A50 paktail 30E7CE4
Supervisor ASIC exception status
--------------------------------
Receive overrun 00000000 Transmit overrun 00000000
FrameSignatureErr 00000000 MicInitialize 00000000
BadFrameErr 00000000 LenExceededErr 00000000
BadJumboSegments 00000000
Supervisor ASIC Mic Registers
------------------------------
MicDirectPollInfo 80000200
MicIndicationsReceived 00000000
MicInterruptsReceived 00000000
MicPcsInfo 0000001F
MicPlbMasterConfiguration 00000000
MicRxFifosAvailable 00000000
MicRxFifosReady 00009DDA
MicTimeOutPeriod: FrameTOPeriod: 00000EA6 DirectTOPeriod: 00004000
MicTransmFramesCopied 00000003
MicTxFifosAvailable 00000003
MicConfiguration: Conf flag: 00000110 Interrupt Flag: 0000000A
MicReceiveFifoAssignmen Queue 0 - 7: 00000000 Queue 8 - 15:00000000
MicReceiveFramesReady: FrameAvailable: 00000000 frameAvaiMask: 00000000
MicException:
Exception_flag 00000000
Message-1 00000000
Message-2 00000000
Message-3 00000000
MicIntRxFifo:
ReadPtr 00000E68 WritePtr 00000E68
WHeadPtr 00000E68 TxFifoDepth C0000800
MicIntTxFifo:
ReadPtr 000006F8 WritePtr 000006F8
WHeadPtr 000006F8 TxFifoDepth C0000800
MicDecodeInfo:
Fifo0: address: 03FF4000 asic_num: 00000100
Fifo1: address: 03FF4400 asic_num: 00000101
MicTransmitFifoInfo:
Fifo0: StartPtrs: 02C89800 ReadPtr: 02C89A90
WritePtrs: 02C89A90 Fifo_Flag: 8A800800
Weights: 001E001E
Fifo1: StartPtrs: 02C9C000 ReadPtr: 02C9C360
WritePtrs: 02C9C360 Fifo_Flag: 89800400
Weights: 000A000A
MicReceiveFifoInfo:
Fifo0: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo1: StartPtr: 02C9D800 ReadPtr: 02C9DB88
WritePtrs: 02C9DB88 Fifo_Flag: 89800400
writeHeaderPtr: 02C9DB88
Fifo2: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo3: StartPtr: 02D1C680 ReadPtr: 02D1C6E0
WritePtrs: 02D1C6E0 Fifo_Flag: 86800080
writeHeaderPtr: 02D1C6E0
Fifo4: StartPtr: 02CE4E00 ReadPtr: 02CE4F18
WritePtrs: 02CE4F18 Fifo_Flag: 88800200
writeHeaderPtr: 02CE4F18
Fifo5: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo6: StartPtr: 02D1C800 ReadPtr: 02D1C840
WritePtrs: 02D1C840 Fifo_Flag: 88800200
writeHeaderPtr: 02D1C840
Fifo7: StartPtr: 02D4B600 ReadPtr: 02D4B7E0
WritePtrs: 02D4B7E0 Fifo_Flag: 88800200
writeHeaderPtr: 02D4B7E0
Fifo8: StartPtr: 02D80900 ReadPtr: 02D80980
WritePtrs: 02D80980 Fifo_Flag: 87800100
writeHeaderPtr: 02D80980
Fifo9: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo10: StartPtr: 02C9BD80 ReadPtr: 02C9BDC0
WritePtrs: 02C9BDC0 Fifo_Flag: 86800080
writeHeaderPtr: 02C9BDC0
Fifo11: StartPtr: 02C9BD20 ReadPtr: 02C9BD20
WritePtrs: 02C9BD20 Fifo_Flag: 84800020
writeHeaderPtr: 02C9BD20
Fifo12: StartPtr: 02C9BE80 ReadPtr: 02C9BE80
WritePtrs: 02C9BE80 Fifo_Flag: 86800080
writeHeaderPtr: 02C9BE80
Fifo13: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo14: StartPtr: 00000000 ReadPtr: 00000000
WritePtrs: 00000000 Fifo_Flag: 00800000
writeHeaderPtr: 00000000
Fifo15: StartPtr: 02C896C0 ReadPtr: 02C896D8
WritePtrs: 02C896D8 Fifo_Flag: 84800020
writeHeaderPtr: 02C896D8
===========================================================
Complete Board Id:0x0051
===========================================================
4#ldz1-c2960#

yu335_sohu_com
Level 1
Level 1
ISO版本不一样,命令也不一样了,看看思科有人回复吗

xupeng
Cisco Employee
Cisco Employee
楼主可以使用show 命令查看哪一个Q的数据包数量异常
Switch#show platform cpu rx counters
如果通过show命令无法定位, 可以通过debug 命令对CPU Queue 进行debug,看是什么数据包导致的.
Switch#debug platform cpu ?
all All CPU messages
bcast-host All BCAST_HOST_Q debug messages
error All cpu error debug messages
icmp All ICMP_Q debug messages
layer2 All layer2_Q debug messages
link All LINK STATUS_Q debug messages
logging All ACL log_Q debug messages
mac-learning All MAC LEARN_Q debug messages
rmu All RMU_Q debug messages
stp All STP_Q debug messages
sw-fwd All SW_FWD_Q debug messages

yu335_sohu_com
Level 1
Level 1
CPU正常时,通过debug platform cpu all
JXSW1101#show logg
Syslog logging: enabled (16057 messages dropped, 0 messages rate-limited, 320 flushes, 0 overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: level debugging, 34769 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 6 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 32066 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Persistent logging: disabled
No active filter modules.
Trap logging: level informational, 734 message lines logged
Logging Source-Interface: VRF Name:
Log Buffer (4096 bytes):
01
Jan 10 00:31:33.109: STP_Q: Recieved link type:118, vlan:120
Jan 10 00:31:33.110: haysel_matm_sw_learn: mac=0023.24c2.b88c vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.110: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.110: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:33.110: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.111: haysel_matm_sw_learn: mac=001b.90d8.7201 vlan_id=130 asic=0 port=27 linktype=118 da 0100.0ccc.cccd sa 001b.90d8.7201
Jan 10 00:31:33.111: STP_Q: Recieved link type:118, vlan:130
Jan 10 00:31:33.112: haysel_matm_sw_learn: mac=54e1.ad47.fcd4 vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.112: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.112: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:33.113: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.113: haysel_matm_sw_learn: mac=001b.90d8.7201 vlan_id=150 asic=0 port=27 linktype=118 da 0100.0ccc.cccd sa 001b.90d8.7201
Jan 10 00:31:33.113: STP_Q: Recieved link type:118, vlan:150
Jan 10 00:31:33.114: haysel_matm_sw_learn: mac=54e1.ad47.fcd4 vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.114: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.115: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:33.115: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.115: haysel_matm_sw_learn: mac=f8a5.c517.2f18 vlan_id=2992 asic=0 port=11 linktype=118 da 0100.0ccc.cccd sa f8a5.c517.2f18
Jan 10 00:31:33.115: STP_Q: Recieved link type:118, vlan:2992
Jan 10 00:31:33.116: haysel_matm_sw_learn: mac=0015.5d06.3402 vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.116: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.117: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:33.117: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.118: haysel_matm_sw_learn: mac=484d.7ec2.ac52 vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.118: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.118: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:33.118: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.120: haysel_matm_sw_learn: mac=509a.4c0d.26af vlan_id=3010 asic=0 port=27 linktype=1
Jan 10 00:31:33.120: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:1HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.120: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:1.
Jan 10 00:31:33.120: Host-Q:No L3 HWidb, dropping packet
Jan 10 00:31:33.122: haysel_matm_sw_learn: mac=509a.4c0d.26af vlan_id=3010 asic=0 port=27 linktype=79
Jan 10 00:31:33.122: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:79HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.122: HOST-BCAST-Q:consumed by SISF
Jan 10 00:31:33.124: haysel_matm_sw_learn: mac=9890.96b3.87b0 vlan_id=3012 asic=0 port=27 linktype=7
Jan 10 00:31:33.124: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.126: haysel_matm_sw_learn: mac=484d.7ecc.e48e vlan_id=3010 asic=0 port=27 linktype=7
Jan 10 00:31:33.126: HOST+BCAST-Q:Packet received in host+broadcast merged queue on idb:Gi0/28, gpn:28, linktype:7HOST+BCAST-Q : Packet permitted by ACL
Jan 10 00:31:33.126: HOST-Q:Packet received in host queue on idb:Gi0/28, gpn:28, linktype:7.
Jan 10 00:31:34.302: %SYS-3-LOGGER_DROPPED: System dropped 2359 console debug messages.

yu335_sohu_com
Level 1
Level 1
连续三次show platform cpu rx counters 看到的结果
JXSW1101#show platform cpu rx counters
Number of packets received in CPU : 44107
Number of packets received in CPU in last one second : 58
Known packet counters :
CDP : 128
LLDP : 0
DTP : 237
UDLD : 0
PAGP : 0
LACP : 0
VTP : 0
STP : 343
SSTP : 15224
LOOP : 0
ARP : 8591
RARP : 0
IP : 14211
IPv6 : 3071
Others : 2302
JXSW1101#show platform cpu rx counters
Number of packets received in CPU : 418
Number of packets received in CPU in last one second : 32
Known packet counters :
CDP : 1
LLDP : 0
DTP : 3
UDLD : 0
PAGP : 0
LACP : 0
VTP : 0
STP : 3
SSTP : 141
LOOP : 0
ARP : 71
RARP : 0
IP : 140
IPv6 : 28
Others : 31
JXSW1101#show platform cpu rx counters
Number of packets received in CPU : 259
Number of packets received in CPU in last one second : 30
Known packet counters :
CDP : 1
LLDP : 0
DTP : 1
UDLD : 0
PAGP : 0
LACP : 0
VTP : 0
STP : 2
SSTP : 93
LOOP : 0
ARP : 42
RARP : 0
IP : 95
IPv6 : 10
Others : 15

yu335_sohu_com
Level 1
Level 1
JXSW1101#show processes cpu history




777775555555555555557777755555555556666655555555555555555555
100
90
80
70
60
50
40
30
20
10 **********************************************************
0....5....1....1....2....2....3....3....4....4....5....5....6
0 5 0 5 0 5 0 5 0 5 0
CPU% per second (last 60 seconds)



3 2 33363655555 3 22 2 3
777587788777878878877772809999978577177778727767777876777777
100
90
80
70
60 * *####*
50 * *####*
40 * *########## * *
30 * * *########## * * *
20 * * ########### * ** * *
10 ##########################################################
0....5....1....1....2....2....3....3....4....4....5....5....6
0 5 0 5 0 5 0 5 0 5 0
CPU% per minute (last 60 minutes)
* = maximum CPU% # = average CPU%


1
339033333333333337333583733333333333333333333336333333433333333333333333
779077776655656760566925759555656765755555867551765566855558656675657555
100 **
90 **
80 ** * *
70 ** * * *
60 ** * ** * *
50 ** * ** * * *
40 **********************************************************************
30 **********************#***********************************************
20 **********************#***********************************************
10 ######################################################################
0....5....1....1....2....2....3....3....4....4....5....5....6....6....7..
0 5 0 5 0 5 0 5 0 5 0 5 0
CPU% per hour (last 72 hours)
* = maximum CPU% # = average CPU%
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接