Does "option dhcp-message-type" work?
Bret Schuhmacher
bret at welcometolazyhill.com
Mon Jul 21 19:22:16 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to only log DHCPACK messages, but the following doesn't
work. Have I mistyped it? I don't get any errors (or any logging).
if dhcp-message-type = 5 {
log (info, concat(binary-to-ascii (10, 8, ".", leased-address), ",",
binary-to-ascii (10,32,"",encode-int (lease-time,32)), ",",
binary-to-ascii (16, 8, ":", substring (hardware, 1, 6)), "," ,
binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 0, 6))));
}
If I comment out the "if" and run it I get 2 lines of logging,
presumably from the DHCPOFFER and the DHCPACK. I only want to log the
ACK. Is there another method I could try?
Thanks,
Bret
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFIhOG3/PgQIGRJuUcRAmzeAJ9Xm/bF/H6jwSecPvl+ssi2hieAewCeNHBS
Q25zq0EEqPu3H8fDHmdbETk=
=5XwC
-----END PGP SIGNATURE-----
More information about the dhcp-users
mailing list