EEM on Nexus

How can I run a EEM applet on nexus 5000 series switch every 10 hours or a certain time?
Please advice what configs a needed
ciscosuppAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

btanExec ConsultantCommented:
pls see "Defining a User Policy Using the CLI" section for overall and specifically check out "Event Statement Configuration" on
event cli [tag tag] match expression [count repeats | time seconds]
Example:switch(config-applet)# event cli match “shutdown”
Triggers an event if you enter a command that matches the regular expression

event counter [tag tag] name counter entry-val entry entry-op {eq | ge | gt | le | lt |ne} [exit-val exit exit-op {eq | ge | gt | le | lt | ne}]
Example: switch(config-applet)# event counter name mycounter entry-val 20 gt
Triggers an event if the counter crosses the entry threshold based on the entry operation. The event resets immediately. Optionally, you can configure the event to reset after the counter passes the exit threshold.
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5500/sw/system_management/6x/b_5500_System_Mgmt_Config_6x/b_5500_System_Mgmt_Config_6x_chapter_010011.html#task_0A9B1C5E339D406CB5E4361687A663C4
0
btanExec ConsultantCommented:
There are example for reference that can help your understanding to customise to your requirements.

e.g. shows how to correlate multiple events in an EEM policy and execute the policy based on a combination of the event triggers. In this example, the EEM policy is triggered if one of the specified syslog patterns occurs within 120 seconds:
switch# configure terminal
switch(config)# event manager applet eem-correlate
switch(config-applet)# event syslog tag one pattern "copy bootflash:.* running-config.*”
switch(config-applet)# event syslog tag two pattern “copy run start”
switch(config-applet)# event syslog tag three pattern “hello”
switch(config-applet)# tag one or two or three happens 1 in 120
switch(config-applet)# action 1.0 reload module 1
Or another useful blog
Every 30 seconds, shut down the Fa0/0 interface, wait 10 seconds, and bring it back.

event manager applet FLAP
 event timer watchdog time 30
 action 1   cli command "enable"
 action 100 cli command "config t"
 action 101 cli command "interface Fa0/0"
 action 102 cli command "shut"
 action 103 wait 10
 action 104 cli command "no shut"
http://blog.ine.com/2010/03/24/eem-revenge-of-the-applets/?s=EEM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Operations

From novice to tech pro — start learning today.