3

Is there any way of a cisco router acting as a dhcp server to record the leases of its clients to a syslog server?

I'm currently using the DHCP server database agent feature to record the leases to a file through a ftp server.

2 Answers 2

2
debug ip dhcp server events
logging trap debugging

oughta do it.

yes, there may be unintended consequences if you enable other debugging while troubleshooting some other problem (for instance).

see also: how to make debugging settings persist across a router reboot

2
  • Also I've also tried that debug but problem was with the reloads. The link you posted suggests using Event Manager Applet. Unfortunately my current IOS doesn't support 'action'.
    – Colin
    Apr 14, 2010 at 17:34
  • Sure, but did you read the comment on that blog article? It suggests a hacky workaround if you don't have EEM.
    – Cos
    Apr 14, 2010 at 22:47
2

It seems that the only way to get them in IOS would be to turn on DHCP debugging, which can't be done as part of the boot configuration.

Any reason you can't use ISC DHCPD on a running server and have the cisco act as a DHCP relay?

1
  • I know I could use another DHCPD server but in this particular case I have to use the cisco. Thanks for the suggestion though.
    – Colin
    Apr 14, 2010 at 10:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .