Informatica Cloud: How To Resolve Unknown Host Name For Secure Agent In Linux
- By : Mydatahack
- Category : ETL, Informatica
- Tags: Hostname, Informatica Cloud, Secure Agent
For some connectors (e.g. Marketing Cloud connector) to work in Informatica Cloud, we need to configure the host name in the server where the Secure Agent is installed. In this post, we will discuss how to resolve the unknown host name issue with Linux.
Steps
(1) Execute the command below on the secure agent machine to verify the host name of the server.
1 | hostname -f |
(2) Manually add an entry to /etc/hostname or /etc/hosts file for the host name resolution as below.
1 | <IP Adress of the server> <Host Name> |
(3) Shut down the secure agent with the command below.
1 | sudo /opt/infaagent/apps/agentcore/infaagent shutdown |
(4) Go to the path {Agent Dir}/main and open the file infaagent.ini. You can use the command below to find the ini file (for RedHat).
1 | find -name infaagent.ini |
When you find the multiple ini files, make sure to edit the latest version. The number in the path indicate the agent edition. In the example below, 27.0.16 is the latest
(5) Remove all the entries in the ini file except: InfaAgent.MasterUrl=https://app.informaticaondemand.com/ma;
(6) Save the file and restart the agent with the command below.
1 | sudo /opt/infaagent/apps/agentcore/infaagent startup |
You may need to re-configure the agent if the startup command doesn’t work. Use the command below.
1 | sudo /opt/infaagent/apps/agentcore/consoleAgentManager.sh configure <User Name> <Password> |
(7) In the cloud interface, you will see the secure agent in the right host name.
Other useful comand
To check the status of the agent
1 | sudo /opt/infaagent/apps/agentcore/consoleAgentManager.sh getStatus |
To check if the agent is configured
1 | sudo /opt/infaagent/apps/agentcore/consoleAgentManager.sh isConfigured |