Configuration Example To Register An Eem Policy With The Eem - 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
eth1/2 due to eth3/23 being up
switch(config-applet)# action 2 cli conf term
switch(config-applet)# action 3 cli interface ethernet 1/2
switch(config-applet)# action 4 cli no shut
switch(config-applet)# end

Configuration Example to Register an EEM Policy with the EEM

This example shows how to register an EEM policy with the EEM:
Basic switch configuration:
event manager applet vpc_check_peer_at_startup
event track 101 state up
action 1.0 cli copy bootflash:eem/user_script_policies/load_schedules running-config
feature scheduler
!!## 2 x dummy loopbacks are required ##!!
interface loopback 101
interface loopback 102
track 1 list boolean or
object 13
object 12
object 102
track 2 list boolean and
object 13
object 12
track 12 interface Ethernet 2/24 line-protocol
track 13 interface port-channel 3000 line-protocol
track 101 interface loopback 101 line-protocol
track 102 interface loopback 102 line-protocol
Note
In this example, port channel 3000 is the vPC peer link, and Ethernet 2/24 is the vPC keepalive link.
You need to copy the following files to the bootflash:
• A directory called: /eem/user_script_policies needs to be created on the supervisor bootflash.
• These five files need to be created and loaded into the above directory:
Configuration for the load_schedules file:
feature scheduler
configure terminal
scheduler job name vpc_check
configure terminal
◦ load_schedules
◦ remove_vpc_if_peer_failed
◦ clean_up
◦ unload_schedules
◦ restore_vpc
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
Configuration Example to Register an EEM Policy with the EEM
251

Advertisement

Table of Contents
loading

Table of Contents