[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-users
Subject:    DHCPv6 and on_commit etc events
From:       perl-list <perl-list () network1 ! net>
Date:       2015-10-30 14:15:52
Message-ID: 1336703185.370848.1446214552082.JavaMail.zimbra () network1 ! net
[Download RAW message or body]

ISC DHCP version: 4.3.3

I need some help in finding information about what sort of options are available in \
in on_ events in DHCPv6. I can't seem to find any man pages or so on that describe \
what can be logged with these events (on commit, on expiry, on release). I have \
things being logged for DHCPv4 like so: 

on commit { 
  log( error, 
    concat( "LEASED,", 
      "ip,", binary-to-ascii (10, 8, ".", leased-address),",", 
      "time,",binary-to-ascii(10,32,"",encode-int (lease-time,32)),",", 
      "hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7)) 
    ) 
  ); 
}

on expiry {
  log( error,
    concat( "LEASEEXPIRY,",
      "ip,", binary-to-ascii (10, 8, ".", leased-address)
    )
  );
}

on release {
  log( error,
    concat( "RELEASED,",
      "ip,", binary-to-ascii (10, 8, ".", leased-address),",",
      "hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))
    )
  );
}

Would like to do something similar in DHCPv6.  Have begun testing with on commit.  \
Apparently the same sorts of data are not available as the same on commit { } \
directive from above produces these log messages:

Oct 30 13:58:45 DHCPserver dhcpd: data: "leased-address" configuration directive: \
                there is no lease associated with this client.
Oct 30 13:58:45 DHCPserver dhcpd: data: leased_lease: not available
Oct 30 13:58:45 DHCPserver dhcpd: data: hardware: no raw packet or lease is available

I realize the hardware address is probably not available as these packets are being \
relayed from a router that does not support RFC 6939 (are there any that do?).

Mainly, I'd like to see a man page or some sort of document that describes what IS \
available ... or some config I could drop in my dhcpd.conf that would log what is \
available or something... any ideas? _______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic