class "o82" { spawn with option agent.remote-id; set macmodem = binary-to-ascii(16, 8, ":", option agent.remote-id); if(static) { set static_ip = "1"; } else { set static_ip = "0"; } } on commit { set leasetime = encode-int(lease-time, 32); set hwAddr = substring(hardware, 1, 8); set commontxt = concat( "DHCPCOMMIT ip ", binary-to-ascii(10 , 8, ".", leased-address), " mac ", binary-to-ascii(16 , 8, ":", hwAddr), " lease-time ", binary-to-ascii(10, 32, "", leasetime), " static ", static_ip ); if(defined(macmodem)) { log(info, concat(commontxt, " remote-id ", macmodem)); } else { log(info, commontxt); } }