Support Tip: How to extract the node IP address from the message id
If you need to extract the node IP from the message id part, the IP is the last part of the message id.
This could be particularly useful if you get some messages in the log about message ids but you are not aware from which node that might have arrived.
Examples of the message id:
If the node is contained in the OMU database, you may call this command to get the actual IP address.
/opt/OV/bin/OpC/install/opc_ip_addr -r 10359179
yoda.rus.hp.com = 126.96.36.199 = 10359179
Also you can find this node with:
opcnode -list_nodes | grep 188.8.131.52
If the node is somehow is not contained in the OMU database, you may convert the numbers manually, for that you need to convert Hexadecimal IP to Decimal IP.
Hex to decimal conversion:
10 (hex) = 16 (decimal)
35 (hex) = 53 (decimal)
91 (hex) = 145 (decimal)
79 (hex) = 121 (decimal)
On linux you may use this small script to convert Hexadecimal IP to Decimal IP:
for i in 10 35 91 79
printf "%d." $(echo "ibase=16; $i" | bc)
done | sed s/.$//
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs. Thanks