[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] ISC DHCPD configuration and logging
- Subject: [ale] ISC DHCPD configuration and logging
- From: james.sumners at gmail.com (James Sumners)
- Date: Thu, 9 Jul 2015 11:09:07 -0400
I really, _really_, wish there were an alternative to this software. But
even their own Kea is a long way from production ready. Anyway...
There seems to be a way to craft custom log messages along with some sort
of scripting language:
```
if not exists host-name {
set hostline = "DHCPNone";
} else {
set hostline = option host-name;
}
on commit { log(info, concat("DHCP-commit", " ", binary-to-ascii(10, 8,
".", leased-address)," ",hwprint," ", hostline)); }
```
I can't find one mention of this stuff in the dhcpd.conf man page. Does
anyone know where I could find documentation on it? I'm primarily concerned
with generating parseable messages (really, JSON structures) for lease
issues, releases, and expirations.
--
James Sumners
http://james.sumners.info/ (technical profile)
http://jrfom.com/ (personal site)
http://haplo.bandcamp.com/ (band page)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150709/27d93a41/attachment.html>