AnsweredAssumed Answered

Check Point -  HEX to IP Converter Tool?

Question asked by Heiko Ankenbrand Champion on Jun 28, 2018
Latest reply on Jun 28, 2018 by Heiko Ankenbrand

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?