This document provides a sample configuration for Embedded Event Manager (EEM) script on Cisco Nexus 7000 Series Switches to monitor the CPU utilization. EEM scripts have been used to automate common diagnostics and troubleshooting scenarios that occur on your device based on network events.
Make sure that you meet these requirements before you attempt this configuration.
Have a basic knowledge of configuration on Nexus 7000 Series Switches.
Have a basic understanding of Embedded Event Manager (EEM) scripts.
The information in this document is based on the Nexus 7000 Series NX-OS devices, started with a cleared (default) configuration. Before using this configuration make sure that you understand the potential impact of any command.
In this section, you are presented with EEM script configuration to monitor the Nexus 7000 CPU utilization, once it gets above a pre-defined threshold (in this example we use 50%) it will start to execute the commands. The output of the commands will get written to the bootflash which has the information gathered during the period of high CPU utilization.
From this output we can diagnose what causes the CPU to jump up periodically. This EEM script should be configured in the default VDC (virtual device context). It will capture “show proc cpu sort” output in each VDC and write the files to bootflash.
This document uses this EEM Script configuration.
Create and register the applet with EEM and enter applet configuration mode.
Enter the command to trigger an event based on SNMP object identifier (OID) cross the entry threshold.
Configure the action statements which trigger the action.
Sample configuration given below,
switch(config)#event manager applet highcpu
switch(config-applet)#event snmp oid 18.104.22.168.22.214.171.124.126.96.36.199.1.6.1 get-type exact entry-op ge entry-val 50 poll-interval 1
switch(config-applet)#action 0.1 syslog msg High CPU DETECTED "show process cpu sort" written to bootflash:highcpu.txt
switch(config-applet)#action 0.2 cli enable
switch(config-applet)#action 0.3 cli show process cpu sort >> bootflash:highcpu.txt
switch(config-applet)#action 0.4 cli show process cpu hist >> bootflash:highcpu.txt
We have 2*9500-48Y4C in Stackwise Virtual configuration on the FUJI 16.9.4, running well for the last few months. Cisco Support has stated that SVL, even through works on the FUJI 16.9.4 is not supported, thus we need to migrate to at least Gibraltar 16.1...
Hi, I want to create script to just a copy running-config to tftp server. Or anyone knows command to execute the same task without prompting for input.I am running following command on cisco ASA box.#copy running-config tftp:<IP address>/<di...
Hi All, Trying to backup our cisco asas with following event manager script: Event manager applet weeklybackupevent timer watchdog time 604800action 0 cli command "enable"action 1 cli command "copy /noconfirm run disk0://weekly-backup" is t...
Hello, i have 9k switches, and CSSM Satelite for SMART licensing .The switches was successfully registered to CSSM until yesterday. On every device, we had shown : Registration expired : 29.5.2020. 14:59After that time, all devices went to...
After hours of trying to make this switch work, watching cisco videos, reading posts etc, i have come to the conclusion that it is Layer 3 Lite, and incapable of providing inter VLAN communications within the switch. The switch cannot operate on Layer 3 m...