Operating System - HP-UX
1847123 Members
5686 Online
110263 Solutions
New Discussion

Re: Boot Script error for setting hostname~

 

Boot Script error for setting hostname~

Hi~
I installed the rp4440 server.
It occur error booting script for setting hostname.
Setting hostname ............ FAIL *

I restarted the hostname daemon but the result same.
mobilegw1 /# /sbin/init.d/hostname start
Nodename must be less than9 characters
EXIT CODE: 1
mobilegw1 /# uname -S mobilegw2
Nodename must be less than9 characters

The system hostname is mobilegw1.
Present, hostname less than 9 characters.
What differ the hostname and nodename?

sloving...


3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Boot Script error for setting hostname~

Hi:

The message *is* correct. The hostname you have chosen is *not* LESS THAN 9-characters. It's length is 9-characters.

For all purposes, the nodename and the hostname are the same. In HP-UX, for configuration purposes, they are identical.

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: Boot Script error for setting hostname~

In the sxtartup script you'll see that HOSTNAME is used for both NODENAME and HOSTNAME if NODENAME is not set. If you look at the man page for hostname, you'll see that there is a classic hostname used for commands like uname and UUCP. This name MUST be 8 characters or less. NODENAME can be set to a longer value because it is a network name. Generally, most HP-UX systems are set to 8 characters or less so HOSTNAME is fine. But if you'd like a NODENAME longer than 8 characters, edit the /etc/rc.config.d/netconf file and add the line:

NODENAME=alongername

If you put it next to the HOSTNAME= line, it will be easy to locate. The NODENAME is not often set since the /etc/hosts and/or DNS servers will set the network name of the system. However, if NODENAME is set, it should match the network name in /etc/hosts or DNS. A network name can be much longer than 8 characters.


Bill Hassell, sysadmin
Orhan Biyiklioglu
Respected Contributor

Re: Boot Script error for setting hostname~

You can use longer host and node names by using "Node and Host Name Expansion product bundle" from HP. Available at http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=NodeHostNameXpnd

hth