Community discussions

MikroTik App
 
Gerard
Trainer
Trainer
Topic Author
Posts: 336
Joined: Wed Apr 26, 2006 4:21 am
Location: Kentucky, USA
Contact:

DHCP server lease-script

Tue Jan 15, 2013 8:43 pm

I've checked the wiki and searched the forum, but I can't find any documentation on the new "lease-script" option included in v6.

Does anyone know when it gets executed? Before or after new leases? expires? renewals?
What variables are available?
Can we modify the lease before it is assigned to the client? (for option 82 or custom options)

Thanks,
Gerard
 
smile__2006
newbie
Posts: 26
Joined: Sat Nov 10, 2007 10:57 pm

Re: DHCP server lease-script

Sat Mar 16, 2013 5:14 pm

Yes, please give us some info!)
any variables (current lease, options, etc..)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP server lease-script

Thu Mar 28, 2013 2:34 pm

just saw this 'feature', and no info on it for months. MT, please comment a bit :)
 
HaPe
Member Candidate
Member Candidate
Posts: 239
Joined: Fri Feb 10, 2012 10:24 pm
Location: Poland

Re: DHCP server lease-script

Mon May 20, 2013 5:08 pm

Variables that can be used there:
leaseBound
leaseServerName
leaseActMAC
leaseActIP
 
0chi0
just joined
Posts: 5
Joined: Thu Aug 08, 2013 10:04 am

Re: DHCP server lease-script

Wed Sep 17, 2014 2:41 pm

Hello,
I would like to ask if they are available yet other variables than those listed?
I would like to run a script that when you connect the host to send me some more information, for example, as it is called host (for example: android-xxx-xxx iPhone).
Currently receives information about the IP address and MAC address.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: DHCP server lease-script

Tue Sep 23, 2014 3:32 pm

Hello,
I would like to ask if they are available yet other variables than those listed?
I would like to run a script that when you connect the host to send me some more information, for example, as it is called host (for example: android-xxx-xxx iPhone).
Currently receives information about the IP address and MAC address.
can't you simply search for necessary info in Leases table?

Who is online

Users browsing this forum: josser and 138 guests