At the very simplest, just copy what I have posted into your config, and you will immediately have two EEM applet policies running. However, the interface names in that sample are not what you want, so you'd want to adjust them for your configuration. These policies require 12.4(2)T or higher (or 12.2(33)SRC). If you need something for earlier IOS, I can provide it.
EEM doesn't require anything else to be configured on the device. However, in the examples I provided to you, EEM is tied into the Object Tracking subsystem (shown in the configuration).
There is nothing that needs to be configured globally for EEM to execute applet policies.
This could certainly work from an EEM perspective. Yes, it would be a good idea to admin down e0/0 to ensure you don't have an IP address conflict when switch 1 comes back online. This would also allow you to build in some hold time to ensure the connection is stable.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...