Operating System - HP-UX
1833187 Members
2806 Online
110051 Solutions
New Discussion

Re: how to change the hostname of a server?

 
SOLVED
Go to solution
amipankaj
Frequent Advisor

how to change the hostname of a server?

hey experts,

how should i change the hostname of hpux11.11....?


thanks,
Pankaj Roy
6 REPLIES 6
Torsten.
Acclaimed Contributor
Solution

Re: how to change the hostname of a server?

IMHO the best is to use "set_parms" and reboot after the change.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steve Steel
Honored Contributor

Re: how to change the hostname of a server?

Hi

With set_parms


set_parms(1M) set_parms(1M)

NAME
set_parms - set up system hostname, networking, date/time and root
password


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
James R. Ferguson
Acclaimed Contributor

Re: how to change the hostname of a server?

Hi:

# /sbin/set_parms

This will require a reboot, so plan accordingly.

Regards!

...JRF...
Saravanan_6
Advisor

Re: how to change the hostname of a server?


You can change through set_parms utility.

# set_parms hostname
Steven E. Protter
Exalted Contributor

Re: how to change the hostname of a server?

Shalom,

set_parms

edit /etc/rc.config.d/netconf directly.

HP-UX limits hostnames to 8 characters.

The add ons that break this limit are not something I trust.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
amipankaj
Frequent Advisor

Re: how to change the hostname of a server?

Thanks guys....