Logging the matched class?

Holger Honert holger.honert at signal-iduna.org
Mon Apr 12 09:40:29 UTC 2010


Hi Scott,

maybe something like this:

## Logging user-class ###

on commit {
        log (info, concat ("Client ", option host-name," has user-class
", option user-class));
        log (info, concat ("Client ", option host-name," has
vendor-class ", option vendor-class-identifier));
}

Regards

Holger


Scott Baker schrieb:
> Is it possible to log the class that a given request matches? I'd really
> to do something like:
> 
> if (dhcp-class = "myclass") {
>         log(info, concat(hardware, " This was a myclass request"));
> }
> 
> Is this possible? I can't find much in the docs or via Google to help?
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 
> 


SIGNAL Krankenversicherung a. G., Sitz: Dortmund, HR B 2405, AG Dortmund
IDUNA Vereinigte Lebensversicherung aG für Handwerk, Handel und Gewerbe,
Sitz: Hamburg, HR B 2740, AG Hamburg
Deutscher Ring Krankenversicherungsverein a.G., Sitz: Hamburg,
HR B 4673, AG Hamburg,
SIGNAL IDUNA Allgemeine Versicherung AG, Sitz: Dortmund, HR B 19108,
AG Dortmund
Vorstände: Reinhold Schulte (Vorsitzender),
Wolfgang Fauter (stellv. Vorsitzender), Dr. Karl-Josef Bierth,
Jens O. Geldmacher, Marlies Hirschberg-Tafel,
Michael Johnigk, Ulrich Leitermann, Michael Petmecky,
Dr. Klaus Sticker, Prof. Dr. Markus Warg
Vorsitzender der Aufsichtsräte: Günter Kutz
SIGNAL IDUNA Gruppe Hauptverwaltungen, Internet: www.signal-iduna.de
44121 Dortmund, Hausanschrift: Joseph-Scherer-Str. 3, 44139 Dortmund
20351 Hamburg, Hausanschrift: Neue Rabenstraße 15-19, 20354 Hamburg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: holger_honert.vcf
Type: text/x-vcard
Size: 315 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100412/efd69182/attachment.vcf>


More information about the dhcp-users mailing list