if ( (substring(option agent.remote-id,0,5) = "Occam") and not (substring(option agent.remote-id,6,3) = "MDU") and (substring(option agent.circuit-id,0,3) = "DSL") ) { log ( info, concat( "Port for ", binary-to-ascii(10,8,".",leased-address), # IP " (", concat ( # MAC suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 1, 1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 2, 1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 3, 1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 4, 1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 5, 1))),2), ":", suffix (concat ("0", binary-to-ascii (16, 8, "", substring (hardware, 6, 1))),2) ), # End MAC ") is: ", option agent.remote-id, # BLC "-", suffix( concat("0",substring(option agent.circuit-id,3,1)),2 ), # Port " (DSL) uid:", pick-first-value(binary-to-ascii(16,8,":",option dhcp-client-identifier),"UNSPECIFIED") ) ); } --- remote-id "Occam crzz-01-07" and circuit-id "DSL4" logged as: Feb 14 16:32:34 access00 dhcpd: Port for 10.10.10.10 (00:ff:ff:ff:9f:8c) is: Occam crzz-01-07-04 (DSL) uid:1:0:ff:ff:ff:9f:8c