I have some CRS328 switches and noticed that the switch often gets high cpu for no apparent reason.
Here is my configuration
I wrote a script to check if the CPU is high or not, here are the results:/interface bridge
add name=bridge1 priority=0x4000 protocol-mode=mstp region-name=CS region-revision=1 vlan-filtering=yes
/interface vlan
add interface=bridge1 name=MGMT_99 vlan-id=99
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/system logging action
set 0 memory-lines=2000
/interface bridge msti
add bridge=bridge1 identifier=1 priority=0x4000 vlan-mapping=30,40,50,60,70
add bridge=bridge1 identifier=2 priority=0x4000 vlan-mapping=20,10,99
/interface bridge port
add bridge=bridge1 interface=combo1
add bridge=bridge1 interface=combo3
add bridge=bridge1 interface=combo2
add bridge=bridge1 interface=combo4
add bridge=bridge1 interface=sfp-sfpplus1
add bridge=bridge1 interface=sfp-sfpplus2
add bridge=bridge1 interface=sfp-sfpplus3
add bridge=bridge1 interface=sfp-sfpplus4
add bridge=bridge1 interface=sfp1
add bridge=bridge1 interface=sfp2
add bridge=bridge1 interface=sfp3
add bridge=bridge1 interface=sfp4
add bridge=bridge1 interface=sfp5
add bridge=bridge1 interface=sfp6
add bridge=bridge1 interface=sfp7
add bridge=bridge1 interface=sfp8
add bridge=bridge1 interface=sfp9
add bridge=bridge1 interface=sfp10
add bridge=bridge1 interface=sfp11
add bridge=bridge1 interface=sfp12
add bridge=bridge1 interface=sfp13
add bridge=bridge1 interface=sfp14
add bridge=bridge1 interface=sfp15
add bridge=bridge1 interface=sfp16
add bridge=bridge1 interface=sfp17
add bridge=bridge1 interface=sfp18
add bridge=bridge1 interface=sfp19
add bridge=bridge1 interface=sfp20
/interface bridge vlan
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=10
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=20
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=30
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,bridge1,combo1,combo2,combo3,combo4" vlan-ids=99
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=40
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=50
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=60
add bridge=bridge1 tagged="sfp1,sfp2,sfp3,sfp4,sfp5,sfp6,sfp7,sfp8,sfp9,sfp10,sfp11,sfp12,sfp13,sfp14,sfp15,sfp16,sfp17,sfp18,sfp19,sfp20,sfp-sfpplus1,sfp-sfpplus2,sfp-sfp\
plus3,sfp-sfpplus4,combo1,combo2,combo3,combo4" vlan-ids=70
add bridge=bridge1 tagged=sfp-sfpplus4,sfp9 vlan-ids=31
add bridge=bridge1 tagged=sfp-sfpplus4,sfp9 vlan-ids=32
/ip address
add address=172.16.99.10/24 interface=MGMT_99 network=172.16.99.0
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set udplite disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip route
add distance=1 gateway=172.16.99.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Asia/Ho_Chi_Minh
/system identity
set name=DisSw-01
/system ntp client
set enabled=yes primary-ntp=210.23.25.77
/system routerboard settings
set boot-os=router-os
/system scheduler
add interval=5s name=schedule1 on-event=":if ([ /system resource get cpu-load]>95) do={ \r\
\n\t:log warning \"Reboot for 100% CPU\";\r\
\n\t}" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=may/21/2021 start-time=01:34:14
Tool -> Profile
The bandwidth used is not high:
Does anyone know the cause, please tell me.
Thanks