Community discussions

MUM Europe 2020
 
astern
just joined
Topic Author
Posts: 10
Joined: Tue Dec 04, 2012 8:11 am
Location: San Francisco

Send notification email when DHCP pool nears exhaustion

Tue Dec 04, 2012 9:08 am

Hello all,

I'm wondering if there is some kind of hook or way to derive DHCP pool usage to come up with a script and send email alert to admin when, say, 95% of the pool is exhausted.

Anybody gone through this before?

Thanks,
Andrew
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Send notification email when DHCP pool nears exhaustion

Tue Dec 04, 2012 7:31 pm

you can decrease the time of lease for dhcp-server.

but you can use this script, set your limit and the name of script.
{
local limit 250
local ip [len [ip pool used find ]]
if ($ip > $limit ) do={/system script run name_of_script_email}
}
nothing
 
astern
just joined
Topic Author
Posts: 10
Joined: Tue Dec 04, 2012 8:11 am
Location: San Francisco

Re: Send notification email when DHCP pool nears exhaustion

Tue Dec 04, 2012 8:12 pm

Wow, that's more than I was expecting to get back, thank you.

And I did lower lease time to recycle address space quicker.

Thanks again,
Andrew

Who is online

Users browsing this forum: No registered users and 12 guests