1829014 Members
2488 Online
109986 Solutions
New Discussion

Change System Name

 
Klaus Pfeiffer
Occasional Contributor

Change System Name

Hello,

i want to change the name of my HP-Workstation.
OS is HP-UX 10.20 and it is a Model 715/80.

Which files must i edit, to change a new name for this machine.

Background:

I want to change this machine from net to stand alone.

Greetings from Germany

Klaus
Never touch a running System !!!
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: Change System Name

Hi:

I assume, by name, you mean the 'hostname'. The easy way is to run (then reboot):

# /sbin/set_parms hostname

Otherwise, at a minimum, change:

# /etc/hosts
# /etc/rc.config.d/netconf
# /etc/mail/sendmail.cw

If you are running DNS, you may need to make changes to it too.

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: Change System Name

Klaus,

/etc/hosts
/etc/rc.config.d/netconf

or use /sbin/set_parms hostname

live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: Change System Name

Hi Klaus,

You can use "/sbin/set_parms". Use,

to set hostname,
# /sbin/set_parms hostname

to Set ipaddress,
# /sbin/set_parms ip_address

To set other network parameters,
# /sbin/set_parms addl_netwrk

Do a "man set_parms" for more info.

Hope this helps.

Regds
eran maor
Honored Contributor

Re: Change System Name

Hi

my prefer way is t change it in the /etc/rc.config.d/netconf and then reboot the computer .

you can also use the set_parms but i thing if you need to reboot the system later and you dont want remember it later it is the prefer method
love computers
Ravi_8
Honored Contributor

Re: Change System Name

Hi,

#set_parms hostname
never give up
Klaus Pfeiffer
Occasional Contributor

Re: Change System Name

Hello to all !!!

Thanks for all the help!!!!!. I will try your answers on weekend.

Greetings

Klaus
Never touch a running System !!!
Trond Haugen
Honored Contributor

Re: Change System Name

Hi Claus,

In addition the the other things mentioned you should considder keeping the old hostname as an alias for a while and notifying the other systems/users in the network about the change. They may want to do some changes to comply with the new hostname. (.rhosts .netrc hosts scripts etc..)

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Klaus Pfeiffer
Occasional Contributor

Re: Change System Name

Hello to all,

thanks to all for all the great solutions. The hostname is changed but the machine hangs up at reboot. It is not possible to start the "NFS Client" was displayed and so the Service hangs up "busy". Maybe it is the result of an FAIL configuration of the LAN Adapter which is shown at Autoboot!!???

Greetings

Klaus

(Sorry about my bad english)
Never touch a running System !!!
Peter Kloetgen
Esteemed Contributor

Re: Change System Name

Hi Klaus,

Which files did you edit, what are the current entrys? You can boot the computer, and when it arrives at starting NFS- Client, you press the escape- and/or break- key. You will get a root-login-prompt, enter the password and have a look to the following files:

/etc/hosts
/etc/rc.config.d/netconf
/etc/mail/sendmail.cw

check the entries, also check the settings in the namesvrs- file. Is the NFS- Client set to 1?

run the hostname- command and look at the output.


Allways stay at the bright side of life!

Peter

p.s. Greetings from Germany!
I'm learning here as well as helping