SWITCH A e B event manager applet DHCP_HSRP_CREATE authorization bypass event syslog pattern "%HSRP-1-STATECHANGE: Vlan1 Grp 1 state Standby -> Active" action 001 syslog msg "HSRP: Creating dhcp scope to new active switch" action 002 cli command "enable" action 003 cli command "configure terminal" action 004 cli command "ip dhcp pool MEULAB" action 005 cli command "network 192.168.1.0 255.255.255.0" action 006 cli command "domain-name MEULAB.COM" action 007 cli command "default-router 192.168.1.1" action 008 cli command "dns-server 8.8.8.8 4.4.4.4" action 009 syslog msg "DHCP: Pool MEULAB Create successfully" action 010 cli command "end" event manager applet DHCP_HSRP_REMOVE authorization bypass event syslog pattern "%HSRP-1-STATECHANGE: Vlan1 Grp 1 state Speak -> Standby" action 001 syslog msg "HSRP:Removing DHCP Scopes" action 002 cli command "enable" action 003 cli command "configure terminal" action 004 cli command "no ip dhcp pool MEULAB" action 005 syslog msg "DHCP: Pool MEULAB removed successfully" action 006 cli command "end"