Good day

Sebastien Pascal sbpascal at gmail.com
Fri Aug 26 19:06:39 UTC 2011


God day all;
I would like to welcome myself to the list,  I opted for the current stable
ISC DHCP 4.2.2 and CentOS 5.5.  to build a dhcp server

I need to run a script on eval of a class

from /etc/dhcpd.conf

  class "STxxxxxxxxxx" {
        match if ((binary-to-ascii(16,8,":",option agent.remote-id) =
"x:xx:xx:xx:xx:xx") and (hardware != xx:xx:xx:xx:xx) and (hardware
!=xx:xx:xx:xx:xx));
        spawn with option agent.remote-id;
        lease limit 1;
        if (option dhcp-message-type = 1) {
 execute ("/scripts/script.sh", "param1", "param2");
log(info, "_____++++Script Called++++____");
 }

    }
<snip>

#pool "STxxxxxxxxxx"
 pool {
    range 10.3.1.4 10.3.1.4;
    ddns-updates off;
    filename "tests";
    next-server 10.9.0.7;
    option tftp-server-name "10.9.0.7";
    option routers 10.3.0.1;
    allow members of "STxxxxxxxxxx";
 }

This works fine when there are free leases in the pool ... however when the
pool has no free leases the above doesnt execute and i get the no free lease
error, is this the intended behavior , or is it a bug. Or am i doing
something  wrong.


Regards
-- 
IT Specialist
Sebastien Pascal
P.O Box 568
Roseau
Commonwealth of Dominica
Tel  767-277-2156 or 767-315-5070
email: sbpascal at gmail.com

This communication and any files attached to it may contain confidential
information. If you are not the addressee and receive this communication by
error, please notify the sender, dispose of this communication immediately
and do not disclose or use it in any manner whatsoever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110826/d26de62a/attachment.html>


More information about the dhcp-users mailing list