Micro Focus Expert
Micro Focus Expert

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 = = 10359179


Also you can find this node with:
opcnode -list_nodes | grep


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/.$//

Micro Focus Support
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
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.