There are at least three good ways to run an Embedded Event Manager policy every time a device boots up. Two of the methods involve using timer policies while one uses a syslog policy. These methods will work for any device running EEM 2.0 or higher. See https://supportforums.cisco.com/docs/DOC-8799 on how to determine your version of EEM. Let's look at the syslog policy first.
When a device boots, it will generate a %SYS-5-RESTART syslog message. EEM can intercept this message and take your required boot up actions. The following are example event registration lines for this method.
The second method involves using a countdown timer. When the timer policy is registered it will begin to countdown the specified number of seconds. At boot time, the policy will be read from the startup configuration and registered with EEM. At that point, the timer begins. The advantage of this approach is that you can inject some delay after the device comes online before the EEM policy runs. However, there is a down side. When you configure this policy, it will countdown to zero then run. If you'd rather not have this run after first configuring it, download the startup-config, and add the commands to register your policy. Then copy that configuration back into the startup-config.
The following are example event registration lines for this method. They will run the policy ten seconds after the device boots and configures itself.
event timer countdown time 10
::cisco::eem::event_register_timer countdown time 10
The final example uses a cron timer with a special cron-entry. A policy registered in such a way will generally run within a minute after the device is booted. The following are example event registration lines for this method.
I performed an upgrade to a c9300-48 running 16.12.3 and noticed that the "ip dhcp snoooping" command was not present after an upgrade to 17.3.4. The "ip dhcp trust" commands are still present. Anyone else notice this?
I have a Cisco WAP125, and it's acting as a bridge. It connects to the Wifi network from my ISP's modem, and I have an ethernet cable going from the WAP to a router, and I have 2 computers connected to that router via ethernet cable. The two computers hav...
Hello Community , I am working on the configuration templates for the upcoming Project, can anyone help me to get the default configuration template for C9500-16X. I would really appreciate all your time and efforts , Thanks in advance
Hi, I have a VPN from head office to remote office as follows: Head office: 10.10.10.0/24 - Cisco ASA 5508Remote office: 10.10.20.0/24 - Cisco 887 router Currently users print from a server 10.10.10.15 to a prin...