cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2970
Views
0
Helpful
5
Replies

configuring EEM on nexus 7K to receive alerts(Syslog msg) when packet(s) are dropped because of QoS

kerim mohammed
Level 3
Level 3

Hello,

 

I am trying to configure eem on nexus Cisco 7k switch which will generate syslog msg when  custom policy applied on interfaces kicks in and drops packets (one or more packets). here is the policer:

 

class-map type qos match-all GRID-NONLOCAL-DESTINATION
match access-group name GRID-NONLOCAL-DESTINATION
policy-map type qos GRID-NONLOCAL-DESTINATION-EGRESS-POLICE
class GRID-NONLOCAL-DESTINATION
police cir 1 gbps bc 200 ms conform set-dscp-transmit 0 violate drop


interface Ethernet3/3
service-policy type qos input GRID-NONLOCAL-DESTINATION-EGRESS-POLICE

 

I appreciate your quick reply.

 

thanks,

Kerim

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

here is the examples for the EEM Scripts for Nexus

 

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/5_x/nx-os/system_management/configuration/guide/sm_nx_os_cg/sm_eem_events_and_examples.pdf

 

we have seen example of your  config, we need to know how your Logs look like (do you hve any example already produced ? what kind of alert email ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Yes, alert email with packet drop count and associated policer.  high level is shown below (just need help with the details) or if there is a better approach.

 

event manager applet applet GRID-QoS-Monitor

event snmp oid xxxxx (I don't know what oid for this qos)

action 1.0 syslog msg GRID policer kicked in, Y number of packets dropped on interface Ex/y

 

thanks,

Kerim

Joe Clarke
Cisco Employee
Cisco Employee

How would you determine this manually?  What version of NX-OS is this?

NX-OS version = 6.2(10)

 

 

Review Cisco Networking for a $25 gift card