cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3450
Views
0
Helpful
3
Replies

CPU and Memory Thresholds Commands in CISCO NX-OS

ezequiel.jab
Level 1
Level 1

Hi ;)

 

I've been struggling to find information about ways to configure Thresholds for CPU and Memory notifications using CISCO 7000 series NX-OS devices.

 

I found a CISCO .pdf document, explaining how to do so, but is made specifically for IOS, and I don't seem to be able to find the NX-OS Equivalent.

 

The document is the next one:

 

http://www.cisco.com/c/en/us/td/docs/ios/netmgmt/configuration/guide/12_2sx/nm_12_2sx_book/nm_cpu_thresh_notif.pdf

 

Do you know of any way to adapt those commands to NX-OS? Is it possible?, or they are unique for IOS?

 

The commands I'm talking about are these:

Router (config)# snmp−server enable traps cpu threshold

Router (config)# snmp−server host <host-address> <community> cpu

Router (config)# process cpu threshold type total rising 80 interval 10 falling 20 interval 10

Router (config)# process cpu statistics limit entry−percentage 40 size 300

 

---

 

Thanks, any help will be greatly appreaciated!

 

 

3 Replies 3

nspasov
Cisco Employee
Cisco Employee

 Thanks for the answer, it was helpful indeed; 

Still, if Im not mistaken, those are a list of Show to commands to manually check the current situation of the CPU, but I failed to find any 'traps' or 'logging service' that notifies automatically when something outside of the ordinary is happening.

 

Am I wrong?, Does Nexus have some kind of similar functionality?

 

Thanks again! ;)

Did you see the sample eem script that they had in the document. It looks promising:

This is an example script that captures intermittent high CPU usage. The values used as well as the commands issued can be modified depending on the requirements:

event manager applet HIGH-CPU
 event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 get-type exact entry-op ge 
    entry-val 80 exit-val 30 poll-interval 5
 action 1.0 syslog msg High CPU hit $_event_pub_time
 action 2.0 cli enable
 action 3.0 cli show clock >> bootflash:high-cpu.txt
 action 4.0 cli show processes cpu sort >> bootflash:high-cpu.txt

 

Thank you for rating helpful posts!

Review Cisco Networking for a $25 gift card