I need to Auto Clear DHCP Conflict. I used the below script. I see in my log , that the Conflict is cleared, but when I show the ip dhcp conflict. I see the conflict IPs still there. Should I restart the Router first then the script will start to be excuted after that ? or should I clear it first time manual then the script will run? Or there is another solution. Can someone help me ?
event manager applet CLEAR_DHCP_CONFLICT
event timer watchdog time 300
action 1.0 cli command "enable"
action 2.0 cli command "clear ip dhcp conflict *"
action 3.0 syslog msg "Cleared IP DHCP conflict records"
Sep 27 15:00:21: %HA_EM-6-LOG: CLEAR_DHCP_CONFLICT: Cleared IP DHCP conflict records
Sep 27 15:05:21: %HA_EM-6-LOG: CLEAR_DHCP_CONFLICT: Cleared IP DHCP conflict records
MUESAVILLS3#show ip dhcp conf
192.168.67.142 Gratuitous ARP Sep 23 2022 10:39 AM
192.168.67.143 Gratuitous ARP Sep 23 2022 10:39 AM
192.168.67.145 Gratuitous ARP Sep 23 2022 10:40 AM
192.168.67.146 Gratuitous ARP Sep 23 2022 10:40 AM