cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
2
Replies

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.

 

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

Hi you could try modify one of these already built EEM examples for what you need rather than build one from scratch that might work for you and you can have them email it to yourself

some good examples in this link below

https://supportforums.cisco.com/document/117596/cisco-eem-basic-overview-and-sample-configurations

Thanks Mark, I'll take a look...

 

Stu.