Configuration Example To Generate A User Syslog; Configuration Example To Monitor Syslog Messages; Configuration Examples For Snmp Notification; Polling An Snmp Oid To Generate An Eem Event - Cisco Nexus 9000 Series Configuration Manual

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Embedded Event Manager System Events and Configuration Examples
This example shows how to configure the insert event:
switch# configure terminal
switch(config)# event manager applet myoir
switch(config-applet)# event oir module insert
switch(config-applet)# action 1 syslog priority critical msg "OIR insert event: A Module is
inserted"
This example shows how to configure the remove event:
switch# configure terminal
switch(config)# event manager applet myoir
switch(config-applet)# event oir module remove
switch(config-applet)# action 1 syslog priority critical msg "OIR remove event: A Module is
removed"

Configuration Example to Generate a User Syslog

This example shows how to generate a user syslog using the action syslog command:
switch# configure terminal
switch(config)# event manager applet myoir
switch(config-applet)# event oir module remove
switch(config-applet)# action 1 syslog priority critical msg "Module is removed"
When this event is triggered, the system generates a syslog as follows:
switch(config)# 2013 May 20 00:08:27 p1b-57 %$ VDC-1 %$ %EEM_ACTION-2-CRIT: "Module is
removed"

Configuration Example to Monitor Syslog Messages

This example shows how to monitor syslog messages from the switch:
switch(config)# event manager applet a1
switch(config-applet)# event syslog occurs 6 period 4294967 pattern "authentication failed"
When this event is triggered, the action defined in the policy is executed.

Configuration Examples for SNMP Notification

Polling an SNMP OID to Generate an EEM Event

The SNMP object ID (OID) CISCO-SYSTEM-EXT-MIB::cseSysCPUUtilization is used for querying the
CPU utilization of the switch:
cseSysCPUUtilization OBJECT-TYPE
SYNTAX Gauge32 (0..100 )
UNITS "%"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The average utilization of CPU on the active supervisor."
::= { ciscoSysInfoGroup 1 }
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
Configuration Example to Generate a User Syslog
249

Advertisement

Table of Contents
loading

Table of Contents