Is there a command or config that will make a router automatically clear ip dhcp conflict * on a regular basis? I have a site that constantly has a problem with DHCP due to conflicts which is fixed simply by clearing the conflict table. If we could automate this, it would be great.
No, it won't write a log message, but you could add one:
action 3.0 syslog msg "Cleared IP DHCP conflict records"
You can read more about EEM from http://www.cisco.com/go/eem .
You can use EEM for this. This EEM applet will run the "clear ip dhcp conflict *" command every night at midnight.
event manager applet clear-dhcp-conflict
event timer cron cron-entry "0 0 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "clear ip dhcp conflict *"
This assumes you have a release of IOS that supports EEM 2.1 or higher (which covers the majority of recent IOS releases).