Logging the number of DHCP leases.

s.mcmurtrie
Level 1
Level 1

Hello,

I'd like to record, or rather log, the number of dhcp leases issued by the router every 30 mins or so. I don't need to record the mac-addresses or any other details, just want to be able to pull a txt or csv into excel and "graph" it. I could of course ssh to the router every 30 mins or so and perform a "sh ip dhcp pool" and write it down, but there's more to life...

I'm not a scriping guru or anything like that so any guidance on how I could possibly automate this would be appriciated.

Thanks and regards.

Stu.