AnsweredAssumed Answered

Check Point -  HEX to IP Converter Tool?

Question asked by Heiko Ankenbrand on Jun 28, 2018

Is there a Check Point tool to easily convert hexadecimal values to IP addresses on the CLI?

 

I use the following lines in scripts:

 

hexaddr=$(echo 12cd34ef)
ipaddr=$(printf "%d." $(echo $hexaddr | sed 's/../0x& /g' | tr ' ' '\n' | tac) | sed 's/\.$/\n/')
echo $ipaddr

 

Is there an easier way?

 

Regards

Heiko

Outcomes