1832988 Members
4212 Online
110048 Solutions
New Discussion

hostname unknown

 
ernest tamura
Occasional Advisor

hostname unknown

We had a 100 mb interface card added to our hp 9000 k460 server. The card came up fine, however SAM could no longer "see" the configuration of our two other interface cards that were installed and functioning fine. We used ifconfig to verify the configuration of the three interface cards and edited (vi) netconf to get the card configurations correct. After bootup the three network cards came up fine and ifconfig,lanadmin, and SAM could all see the three interfaces. However something happen to the host name. We could do "hostname" to manually add the hostname, however SAM could not see the host name and could not add/modify the host name.
We tried set_parms intial and it appeared to work fine, however upon boot up the hp still had a no name host name. Any thoughts on this would be appreciated.
4 REPLIES 4
Rita C Workman
Honored Contributor

Re: hostname unknown

Did you do set_parms hostname? Then set it and reboot.

You can check and make sure the /sbin/init.d/hostname exists correctly, because during the startup this is where it gets the hostname from.

The other 'strange' thing I have come across sounds silly, but I've seen it. Folks forget that hostname will set and display hostname. So they key the command hostname and inadvertently key just enough extra to lose the hostname, instead of just keying hostname and hitting enter. Silly I know...it's like those times when you get a space at the top of your /etc/passwd file and it looks good...but it isn't.

Just a couple thought,

James R. Ferguson
Acclaimed Contributor

Re: hostname unknown

Hi:

Using /sbin/set_parms is the good way to make sure the hostname is properly set. After doing this, you indicate you booted.

Does /etc/rc.log contain any errors from /sbin/rc1.d/S320hostname ?

...JRF...
Berlene Herren
Honored Contributor

Re: hostname unknown

Check /etc/rc.log for hostname or other failures. If so, what is the failure message? Is it a syntax error?

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Steve Sauve
Frequent Advisor

Re: hostname unknown

You may have done this, but check /etc/rc.config.d/netconf and see what it has for your hostname. Also check /etc/hosts.

Hope this helps,

Steve