Matching against the "hardware" String

Martin McCormick martin at dc.cis.okstate.edu
Wed Nov 17 22:00:38 UTC 2010


I wrote a class statement that checks the first 6 characters in
the host name as in

class "Certain-Systems" {
match if substring (option host-name, 0, 6) = "ABCDE0";
}

It works. I want to also write a statement that uses the manufacturer's
unique identifier portion of the MAC address. Do I need to
actually allow for 9 characters due to the colons that are
usually found as separaters or if the digits were aa:bb:cc,
would aabbcc match since that is technically the first 6
characters of the address?

Thanks.

Martin McCormick



More information about the dhcp-users mailing list