Home arrow FAQs arrow Agent Install Error: "Unknown host"

Agent Install Error: "Unknown host"

Problem:

NetDirector agent does not install, giving an "Unknown host" error. When running the installer in text mode, the output is:

[root@RHEL4-AS ~]# ./netdirector-2.8.d-agent-linux-installer.bin --mode text

Error: Error running script hostname : hostname: Unknown host
Press [Enter] to continue :
[root@RHEL4-AS ~]#


When run in graphical mode, the same error is shown in a popup:



Cause:

This error occurs when the hostname of the system (output of the "hostname" command) is not included in the /etc/hosts file.

Solution:

Add the current system hostname to the /etc/hosts file. You can display what is currently in the file by running "cat /etc/hosts":

[root@RHEL4-AS ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       rhel4as.emusoftware.com         localhost
[root@RHEL4-AS ~]#

You need to edit the /etc/hosts file to include the output of the "hostname" commnand:

[root@RHEL4-AS ~]# hostname
RHEL4-AS


You can do this in your favorite file editor (vi, Emacs, kedit, kwrite) as the superuser (root, sudo, etc). In this example, the above file was modified to:

[root@RHEL4-AS ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       RHEL4-AS        localhost
[root@RHEL4-AS ~]#


Once this change is made, the agent installer should install the NetDirector Agent.
 
< Prev

Check Out the NetDirector Community Portal




omc_banner.gif

 

SourceForge.net Logo

 

Login






Lost Password?
No account yet? Register