CPU Thresholding Notification
C6500#sh ver | in IOS|Compiled Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(33)SXH7, RELEASE SOFTWARE (fc3) Compiled Thu 11-Mar-10 20:31 by prod_rel_team C6500# C6500#conf t Enter configuration commands, one per line. End with CNTL/Z. C6500(config)#snmp-server ? chassis-id String to uniquely identify this chassis community Enable SNMP; set community string and access privs contact Text for mib object sysContact context Create/Delete a context apart from default drop Silently drop SNMP packets enable Enable SNMP Traps engineID Configure a local or remote SNMPv3 engineID file-transfer File transfer related commands group Define a User Security Model group host Specify hosts to receive SNMP notifications ifindex Enable ifindex persistence inform Configure SNMP Informs options ip IP ToS configuration for SNMP traffic location Text for mib object sysLocation manager Modify SNMP manager parameters packetsize Largest SNMP packet size queue-length Message queue length for each TRAP host source-interface Assign an source interface system-shutdown Enable use of the SNMP reload command tftp-server-list Limit TFTP servers used via SNMP trap SNMP trap options trap-source Assign an interface for the source address of all traps trap-timeout Set timeout for TRAP message retransmissions user Define a user who can access the SNMP engine view Define an SNMPv2 MIB view C6500(config)#snmp-server enable ? traps Enable SNMP Traps C6500(config)#snmp-server enable traps ? alarms Enable SNMP alarms traps atm Enable SNMP atm traps bgp Enable BGP traps bridge Enable SNMP STP Bridge MIB traps bulkstat Enable Data-Collection-MIB Collection notifications c6kxbar Enable SNMP CISCO-CAT6K-CROSSBAR-MIB traps call-home Enable SNMP CISCO-CALLHOME-MIB traps casa Enable SNMP casa traps chassis Enable SNMP chassis traps config Enable SNMP config traps config-copy Enable SNMP config-copy traps cpu Allow cpu related traps csg Enable SNMP CSG traps dial Enable SNMP dial control traps dot1x Enable SNMP dot1x traps ds1 Enable SNMP DS1 traps entity Enable SNMP entity traps envmon Enable SNMP environmental monitor traps ethernet Enable SNMP Ethernet traps event-manager Enable SNMP Embedded Event Manager traps flash Enable SNMP FLASH notifications flex-links Enable SNMP FLEX Links traps frame-relay Enable SNMP frame-relay traps fru-ctrl Enable SNMP entity FRU control traps hsrp Enable SNMP HSRP traps ipmulticast Enable SNMP ipmulticast traps ipsec Enable IPsec traps isakmp Enable ISAKMP traps traps l2tc Enable SNMP L2 Tunnel Config traps mac-notification Enable SNMP MAC Notification traps memory Enable SNMP Memory traps module Enable SNMP module traps module-auto-shutdown Enable SNMP CISCO-MODULE-AUTO-SHUTDOWN-MIB traps mpls Enable SNMP MPLS traps msdp Enable SNMP MSDP traps mvpn Enable Multicast Virtual Private Networks traps ospf Enable OSPF traps pim Enable SNMP PIM traps port-security Enable SNMP port security traps power-ethernet Enable SNMP power ethernet traps pw Enable SNMP PW traps rf Enable all SNMP traps defined in CISCO-RF-MIB rsvp Enable RSVP flow change traps rtr Enable SNMP Response Time Reporter traps slb Enable SNMP SLB traps snmp Enable SNMP traps sonet Enable SNMP SONET traps srp Enable SRP protocol traps stpx Enable SNMP STPX MIB traps syslog Enable SNMP syslog traps transceiver Enable SNMP transceiver traps tty Enable TCP connection traps vlan-mac-limit Enable SNMP L2 Control VLAN MAC Limit notifications vlancreate Enable SNMP VLAN created traps vlandelete Enable SNMP VLAN deleted traps voice Enable SNMP voice traps vswitch Enable SNMP Virtual Switch notifications vtp Enable SNMP VTP traps <cr> C6500(config)#snmp-server enable traps cpu ? threshold Allow CPU utilization threshold violation traps <cr> C6500(config)#snmp-server enable traps cpu C6500(config)#do sh run | in snmp snmp-server enable traps cpu threshold C6500(config)# C6500(config)#snmp-server host ? Hostname or A.B.C.D IP address of SNMP notification host C6500(config)#snmp-server host 10.10.10.10 ? WORD SNMPv1/v2c community string or SNMPv3 user name informs Send Inform messages to this host traps Send Trap messages to this host version SNMP version to use for notification messages vrf VPN Routing instance for this host C6500(config)#snmp-server host 10.10.10.10 traps ? WORD SNMPv1/v2c community string or SNMPv3 user name version SNMP version to use for notification messages C6500(config)#snmp-server host 10.10.10.10 traps public ? alarms Allow SNMP alarms traps atm Allow SNMP atm traps bgp Allow BGP state change traps bridge Allow SNMP STP Bridge MIB traps bulkstat Allow Data-Collection-MIB traps c6kxbar Allow SNMP CISCO-CAT6K-CROSSBAR-MIB traps call-home Allow SNMP CISCO-CALLHOME-MIB traps casa Allow casa event traps chassis Allow SNMP chassis traps config Allow SNMP config traps config-copy Allow SNMP config-copy traps cpu Allow cpu related traps csg Allow SNMP CSG traps dot1x Allow dot1x traps ds1 Allow SNMP ds1 traps entity Allow SNMP entity traps envmon Allow environmental monitor traps ethernet-cfm Allow SNMP Ethernet CFM traps event-manager Allow SNMP Embedded Event Manager traps flash Allow SNMP FLASH traps flex-links Allow FLEX Links traps frame-relay Allow SNMP frame-relay traps fru-ctrl Allow entity FRU control traps hsrp Allow SNMP HSRP traps ipmulticast Allow SNMP ipmulticast traps ipsec Allow SNMP IPsec traps isakmp Allow SNMP ISAKMP traps l2tc Allow SNMP L2 Tunnel Config traps mac-notification Allow SNMP MAC Notification Traps memory Allow SNMP Mempool traps module Allow SNMP module traps module-auto-shutdown Allow SNMP CISCO-MODULE-AUTO-SHUTDOWN-MIB traps mpls-fast-reroute Allow SNMP MPLS traffic engineering fast reroute traps mpls-ldp Allow SNMP MPLS label distribution protocol traps mpls-traffic-eng Allow SNMP MPLS traffic engineering traps mpls-vpn Allow SNMP MPLS Virtual Private Network traps msdp Allow SNMP MSDP traps mvpn Allow Multicast Virtual Private Network traps ospf Allow OSPF traps pim Allow SNMP PIM traps port-security Allow SNMP port-security traps power-ethernet Allow SNMP power ethernet traps pw-vc Allow SNMP Pseudowire VC traps rf Allow all SNMP traps defined in CISCO-RF-MIB rsvp Allow RSVP flow change traps rtr Allow SNMP Response Time Reporter traps slb Allow SNMP SLB traps snmp Allow SNMP-type notifications sonet Allow SNMP SONET traps srp Allow SRP protocol traps stpx Allow SNMP STPX MIB traps syslog Allow SNMP syslog traps tty Allow TCP connection traps udp-port The notification host's UDP port number vlan-mac-limit Allow SNMP L2 Control VLAN MAC Limit traps vlancreate Allow SNMP VLAN created traps vlandelete Allow SNMP VLAN deleted traps voice Allow SNMP Voice traps vswitch Allow SNMP Virtual Switch notification vtp Allow SNMP VTP traps x25 Allow x25 event traps <cr> C6500(config)#snmp-server host 10.10.10.10 traps public cpu C6500(config)#do sh run | in snmp snmp-server enable traps cpu threshold snmp-server host 10.10.10.10 public cpu C6500(config)# C6500(config)#process ? cpu Configure cpu parameters C6500(config)#process cpu ? statistics cpu statistics threshold cpu threshold parameters C6500(config)#process cpu threshold ? type cpu threshold type C6500(config)#process cpu threshold type ? interrupt interrupt level utilization process process level utilization total total cpu utilization C6500(config)#process cpu threshold type total ? rising rising threshold C6500(config)#process cpu threshold type total rising ? <1-100> C6500(config)#process cpu threshold type total rising 50 ? interval observation interval C6500(config)#process cpu threshold type total rising 50 interval ? <5-86400> C6500(config)#process cpu threshold type total rising 50 interval 30 ? falling falling threshold <cr> C6500(config)#process cpu threshold type total rising 50 interval 30 falling ? <1-100> C6500(config)#$ threshold type total rising 50 interval 30 falling 49 ? interval observation interval C6500(config)#$ type total rising 50 interval 30 falling 49 interval ? <5-86400> C6500(config)#$ type total rising 50 interval 30 falling 49 interval 30 ? <cr> C6500(config)#$ type total rising 50 interval 30 falling 49 interval 30 C6500(config)# C6500(config)#do sh run | in snmp|process snmp-server enable traps cpu threshold snmp-server host 10.10.10.10 public cpu process cpu threshold type total rising 50 interval 30 falling 49 interval 30 C6500(config)# C6500(config)#end C6500# 00:06:15: %SYS-5-CONFIG_I: Configured from console by console C6500#sh proc cpu hist 22222 11111 22222 5555544444 100 90 80 70 60 50 40 30 ***** 20 ***** 10 ***** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per second (last 60 seconds) 2 22 5328 100 90 80 70 60 50 40 30 * * 20 * ** 10 * ** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per minute (last 60 minutes) * = maximum CPU% # = average CPU% 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% C6500# C6500#sh snmp Chassis: SMC1237001T 0 SNMP packets input 0 Bad SNMP version errors 0 Unknown community name 0 Illegal operation for community name supplied 0 Encoding errors 0 Number of requested variables 0 Number of altered variables 0 Get-request PDUs 0 Get-next PDUs 0 Set-request PDUs 0 Input queue packet drops (Maximum queue size 1000) 0 SNMP packets output 0 Too big errors (Maximum packet size 1500) 0 No such name errors 0 Bad values errors 0 General errors 0 Response PDUs 0 Trap PDUs SNMP logging: enabled Logging to 10.10.10.10.162, 0/10, 0 sent, 0 dropped. C6500# C6500#debug snmp packets SNMP packet debugging is on C6500# C6500#conf t Enter configuration commands, one per line. End with CNTL/Z. C6500(config)#logging event link-status default C6500(config)# C6500(config)#int range gi1/1 - 2 C6500(config-if-range)#switchport C6500(config-if-range)#switchport mode access C6500(config-if-range)#spanning-tree bpdufilter enable C6500(config-if-range)#no shut C6500(config-if-range)# 00:07:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/1, changed state to down 00:07:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/2, changed state to down 00:07:28: %LINK-SP-3-UPDOWN: Interface GigabitEthernet1/1, changed state to down 00:07:28: %LINK-SP-3-UPDOWN: Interface GigabitEthernet1/2, changed state to down 00:07:36: %LINK-3-UPDOWN: Interface GigabitEthernet1/1, changed state to up 00:07:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up 00:07:36: %LINK-3-UPDOWN: Interface GigabitEthernet1/2, changed state to up 00:07:36: %LINK-SP-3-UPDOWN: Interface GigabitEthernet1/1, changed state to up 00:07:36: %LINEPROTO-SP-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to up 00:07:36: %LINK-SP-3-UPDOWN: Interface GigabitEthernet1/2, changed state to up 00:07:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up 00:07:36: %LINEPROTO-SP-5-UPDOWN: Line protocol on Interface GigabitEthernet1/2, changed state to up C6500(config-if-range)#exit C6500(config)# C6500(config)#do sh spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 0023.5d23.f001 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address 0023.5d23.f001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Gi1/1 Desg FWD 4 128.1 P2p Gi1/2 Desg FWD 4 128.2 P2p C6500(config)# C6500(config)#int vlan 1 C6500(config-if)#ip add 192.168.1.1 255.255.255.0 C6500(config-if)#no shut C6500(config-if)#end C6500# 00:09:24: %LINK-3-UPDOWN: Interface Vlan1, changed state to down 00:09:24: %LINK-3-UPDOWN: Interface Vlan1, changed state to up 00:09:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up 00:09:24: %SYS-5-CONFIG_I: Configured from console by console C6500# C6500#sh proc cpu hist 5555 1111 22222 22222 55555 100 90 80 70 60 50 **** 40 **** 30 **** 20 **** 10 **** ***** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per second (last 60 seconds) 2 22 5435328 100 90 80 70 60 50 40 30 * * 20 * ** 10 * * ** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per minute (last 60 minutes) * = maximum CPU% # = average CPU% 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% C6500# C6500#sh proc cpu hist 9999999999955555 9999999999911111 22222 22222 100 *********** 90 *********** 80 *********** 70 *********** 60 *********** 50 **************** 40 **************** 30 **************** 20 **************** 10 **************** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per second (last 60 seconds) 2 22 5435328 100 90 80 70 60 50 40 30 * * 20 * ** 10 * * ** 0....5....1....1....2....2....3....3....4....4....5....5.... 0 5 0 5 0 5 0 5 0 5 CPU% per minute (last 60 minutes) * = maximum CPU% # = average CPU% 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% C6500# 00:09:52: %SYS-1-CPURISINGTHRESHOLD: Threshold: Total CPU Utilization(Total/Intr): 99%/82%, Top 3 processes(Pid/Util): 8/17%, 20/0%, 352/0% 00:09:53: SNMP: Queuing packet to 10.10.10.10 00:09:53: SNMP: V1 Trap, ent ciscoProcessMIB.2, addr 10.10.10.1, gentrap 6, spectrap 1 cpmCPUThresholdTable.1.2.0.1 = 50 cpmCPUTotalTable.1.10.0 = 99 cpmCPUTotalTable.1.11.0 = 82 ciscoProcessMIB.1.2.3.1.5.0.8 = 17 cpmProcessTable.1.5.0.8 = 59294 C6500# 00:11:53: SNMP: Packet sent via UDP to 10.10.10.10 C6500# C6500#sh snmp Chassis: SMC1237001T 0 SNMP packets input 0 Bad SNMP version errors 0 Unknown community name 0 Illegal operation for community name supplied 0 Encoding errors 0 Number of requested variables 0 Number of altered variables 0 Get-request PDUs 0 Get-next PDUs 0 Set-request PDUs 0 Input queue packet drops (Maximum queue size 1000) 1 SNMP packets output 0 Too big errors (Maximum packet size 1500) 0 No such name errors 0 Bad values errors 0 General errors 0 Response PDUs 1 Trap PDUs SNMP logging: enabled Logging to 10.10.10.10.162, 0/10, 1 sent, 0 dropped. C6500#
Reference:
CISCO-PROCESS-MIB
1.3.6.1.4.1.9.9.109.2 | CISCO-PROCESS-MIB - ciscoProcessMIBNotifPrefix |
1.3.6.1.4.1.9.9.109.1.2.4.1.2 | CISCO-PROCESS-MIB - cpmCPURisingThresholdValue |
1.3.6.1.4.1.9.9.109.1.1.1.1.10 | CISCO-PROCESS-MIB - cpmCPUTotalMonIntervalValue |
1.3.6.1.4.1.9.9.109.1.1.1.1.11 | CISCO-PROCESS-MIB - cpmCPUInterruptMonIntervalValue |
1.3.6.1.4.1.9.9.109.1.2.3.1.5 | CISCO-PROCESS-MIB - cpmProcExtUtil5SecRev |
No comments:
Post a Comment