DHCP vendor-encapsulated-options substring
I am trying to get a substring from option 43 (vendor-encapsulated-options), but the DHCP server doesn't seem to be parsing out the information I need. I am needing it to differentiate between PXE clients so I don't have to keep track of MAC addresses. The data coming in from the client is +@?04694246 and I need to parse out the 4694 part. The line I am using to try to get the substring is
class "TEST" {
match if substring(vendor-client-option, 4, 4) = "4694";
}
then in my address range I have the "allow members of "TEST";" statement without the outside quotes. The DHCP daemon starts up fine, but when the client requests an address, I get the message that there are no available leases. Does someone know if I am parsing wrong or if I can have the parsed output written to a log so I can see what I am getting? Thanks!
|