Operating System - HP-UX
1832760 Members
2830 Online
110045 Solutions
New Discussion

Node Name is different Hostname

 
FOBF
Frequent Advisor

Node Name is different Hostname

Hello Everybody

I have a problem with my HP-UX 11.23i server, when a try to check any network parametres into SAM, the server report error between these fields.

How can i do to change the Node Name in orden to apply the same name in the server in both hostname and node name ?

Thanks for your help.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Node Name is different Hostname

Bear in mind that it is possible for a box to have more than one hostname if it has multiple network cards (or multiple IP addresses on the same card). However, the best way to make sure that the nodename and hostname match is to use the "set_parms hostname" command.

Man set_parms for details.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Node Name is different Hostname

Hi:

Perhaps you inadvertantly changed the hostname when merely wanted to display it.

If so, simply issue the correct name, thusly:

# hostname thename

If, when '/sbin/init.d/hostname' runs, the variable NODENAME is defined, then your 'nodename' (as seen with 'unname -n') is set to NODENAME. Normally NODENAME is left undefined in the '/etc/rc.config.d/' files and '/sbin/init.d/hostname' sets NODENAME to the same value as HOSTNAME.

Regards!

...JRF...