Logging Questions.

Greg G ggersh at ctc.net
Thu Oct 12 21:34:12 UTC 2006


OK.  This may take a bit of explaining.

We've got some equipment that puts a ton of stuff into option 
agent.remote-id in a packed form.  I'm trying to extract it directly 
into the log.  So, my question essentially boils down to this:  Is there 
a way to do a hex to dec conversion?

Here's a bit of detail:

Given a remote-id of "1:1:0:0:a6:52:3:66:30:0:3:d0"

and this in the config file:
        set vci = binary-to-ascii (16, 8, "", substring (option 
agent.remote-id, 10,2));

I want to convert the resulting "3d0" and instead output "976"

Thanks.

-Greg G




More information about the dhcp-users mailing list