Embedded Event Manager 2.0

http://www.cisco.com/c/en/us/td/docs/ios/12_2s/feature/guide/fs_eem2.html#wp1125621


http://blog.ine.com/2010/01/18/eem-demystified-part-1/

sage Guidelines

Instead of the five fields of a UNIX crontab entry as described in the syntax description table for the cron-entryargument, one of the following seven special strings can be entered:

@yearly—An event is triggered once a year. This is the equivalent of specifying 0 0 1 1 * for the first five fields.

@annually—Same as @yearly.

@monthly—An event is triggered once a month. This is the equivalent of specifying 0 0 1 * * for the first five fields.

@weekly—An event is triggered once a week. This is the equivalent of specifying 0 0 * * 0 for the first five fields.

@daily—An event is triggered once a day. This is the equivalent of specifying 0 0 * * * for the first five fields.

@midnight—Same as @daily.

@hourly—An event is triggered once an hour. This is the equivalent of specifying 0 * * * * for the first five fields.

A CRON timer may not produce the intended result if the time-of-day clock is not set to the correct time. Network Time Protocol (NTP) services can be used to facilitate keeping an accurate time-of-day clock setting. For more details on NTP configuration, see the "Performing Basic System Management" chapter of the Cisco IOS Configuration Fundamentals and Network Management Configuration Guide, Release 12.3.

Examples

The following example shows how to specify that an event is triggered one time after five hours:

Router(config)# event manager applet timer-absolute
Router(config-applet)# event timer absolute time 18000

The following example shows how to specify that an event is triggered once after six minutes and six milliseconds:

Router(config)# event manager applet timer-set
Router(config-applet)# event timer countdown time 360.006 name six-minutes

The following example shows how to specify that an event is triggered at 1:01 a.m. on January 1 each year:

Router(config)# event manager applet timer-cron1
Router(config-applet)# event timer cron cron-entry 1 1 1 1 * name Jan1

The following example shows how to specify that an event is triggered at noon on Monday through Friday of every week:

Router(config)# event manager applet timer-cron2
Router(config-applet)# event timer cron cron-entry 0 12 * * 1-5 name MonFri

The following example shows how to specify that an event is triggered at midnight on Sunday every week:

Router(config)# event manager applet timer-cron3
Router(config-applet)# event timer cron cron-entry @weekly name Sunday

The following example shows how to specify that an event is triggered every five hours:

Router(config)# event manager applet timer-watch
Router(config-applet)# event timer watchdog time 18000 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值