Configuring The Syslog As An Eem Publisher - Cisco Nexus 5600 Series Configuration Manual

Nx-os system management
Hide thumbs Also See for Nexus 5600 Series:
Table of Contents

Advertisement

Configuring EEM
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
This example shows how to override a policy:
switch# configure terminal
switch(config)# show event manager policy-state _ethpm_link_flap
Policy _ethpm_link_flap
cfg count : 5
cfg time interval : 10.000000 (seconds)
switch(config)# event manager applet ethport override _ethpm_link_flap
switch(config-applet)# description "Overrides link flap policy"
switch(config-applet)# event policy-default count 2 time 1000
switch(config-applet)# action 1.0 syslog priority warnings msg "Link is flapping."
switch(config-applet)# show event manager policy-state ethport
switch(config-applet)# copy running-config startup-config

Configuring the Syslog as an EEM Publisher

You can monitor syslog messages from the switch.
OL-31641-01
Command or Action
switch# configure terminal
switch(config)# show event manager
policy-state system-policy
switch(config)# event manager applet
applet-name override system-policy
switch(config-applet)# description
policy-description
switch(config-applet)# event
event-statement
switch(config-applet)# action number
action-statement
switch(config-applet)# show event
manager policy-state name
switch(config-applet)# copy
running-config startup-config
Hash default, Count 0
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
Configuring the Syslog as an EEM Publisher
Purpose
Enters global configuration mode.
Displays information about the system policy that you
want to override, including thresholds. Use the show
event manager system-policy command to find the
system policy names.
Overrides a system policy and enters applet configuration
mode. The applet-name can be any case-sensitive,
alphanumeric string up to 29 characters. The
system-policy must be one of the existing system policies.
(Optional)
Configures a descriptive string for the policy. The string
can be any alphanumeric string up to 80 characters.
Enclose the string in quotation marks.
Configures the event statement for the policy. See the
"Configuring Event Statements" section on page 14-10.
Configures an action statement for the policy. See the
"Configuring Action Statements" section on page 14-13.
Repeat Step 6 for multiple action statements.
(Optional)
Displays information about the configured policy.
Saves this configuration change.
247

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents