Customization
For more complex network setups with several network interfaces and IP addresses to the equipment the user can customize the IP translation for Element Agents as follows:
• On every Server there is file named “iptranslate.conf.template” in the folder
/opt/nem/etc.
• Change the file name to “iptranslate.conf”. This will activate the customization.
• Open the file with an editor. Its content will look as follows:
# replace manager ip's in NEM database
# Format is <FromIP>=<ToIP>
# eg. 172.20.162.99=172.20.162.206
• Add all Element Agent IP addresses from a remote server (or remote servers) that need to be replaced through a specific IP address of the local server to the file (taking the example of chapter
Initial Situation the entry “172.20.162.223=192.168.32.148” must be added to the file on the Standby Server, and the entry “192.168.32.148=172.20.162.223” must be added to the file on the Main Server).
• Save the file.
After a database import has taken place, hostname and IP address of any Element Agent in the database will now be replaced according to the following rules:
• If for a specific Element Agent IP address, no IP assignment entry can be found in the “iptranslate.conf” file, this IP address will not be replaced at all.
• If for a specific Element Agent IP address, an IP assignment entry in the form IP1=IP2 can be found in the “iptranslate.conf” file, IP1 will be replaced by IP2 unless IP1 is equal 127.0.0.1. (in other words, entries in the form 127.0.0.1=IP2 will be neglected).
• The hostname of every Element Agent in the imported database that does not equal to “localhost” is replaced by the server’s hostname in case also the Agent’s IP address has been replaced in the previous steps.