1753253 Members
4103 Online
108792 Solutions
New Discussion юеВ

Re: Change of hostname

 
SOLVED
Go to solution
bullz
Super Advisor

Change of hostname

Hello Guruz,

Could some one please let me know the procedure for changing the hostname on HP-UX server?

Thanks in advance.
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: Change of hostname

I would suggest to use "set_parms".

Caution: Some applications will store the current hostname locally!

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!   
taylan kurtkaya
Advisor

Re: Change of hostname

you can find the hostname changing procedure detaily at the link below

http://sysdigg.blogspot.com/2008/03/how-to-change-hostname-on-hp-ux-11i.html

regards
taylan
Pete Randall
Outstanding Contributor

Re: Change of hostname

As Torsten suggests, the easiest way is to use the /sbin/set_parms script. You can specify "/sbin/set_parms hostname" or you can just use "/sbin/set_parms" and let the script walk you through it.


Pete

Pete
Lijeesh N G_1
Respected Contributor

Re: Change of hostname

Hi,

#set_parms hostname

Regards,
LIJEESH N G
SoorajCleris
Honored Contributor

Re: Change of hostname

Hi
===============================

# set_parms hostname
_______________________________________________________________________________

You currently have an active DHCP lease. If you
change the DHCP-supplied hostname in the following
screen, you may have problems in the future.

The current DHCP lease will be maintained, which
may cause the hostname to be reset if the system
is rebooted, unless corresponding changes are made
on the DHCP server.
_______________________________________________________________________________

Do you wish to continue?

Press [y] for yes or [n] for no, then press [Enter] y
_______________________________________________________________________________
For the system to operate correctly, you must assign it a unique
system name or "hostname". The hostname can be a simple name
(example: widget) or an Internet fully-qualified domain name
(example: widget.region.mycorp.com).

A simple name, or each dot (.) separated component of a domain name, must:

* Start with an uppercase or lowercase letter.
* End with a letter or digit.
* Contain only letters, digits, underscore (_), or dash (-).
The underscore (_) is not recommended.
* Contain no more than 8 characters per component.
* Contain no more than 63 total characters.

NOTE: The first or only component of a hostname should contain no more
than 8 characters and the full hostname should contain no more
than 63 characters for maximum compatibility with HP-UX software.

The current hostname is rx260-16.
_______________________________________________________________________________

Enter the system name, then press [Enter] or simply press [Enter]
to retain the current host name (rx260-16):
sooraj

You have chosen sooraj as the name for this system.
Is this correct?

Press [y] for yes or [n] for no, then press [Enter] y
_______________________________________________________________________________

Working...
_______________________________________________________________________________
_______________________________________________________________________________


Your changes will not take effect until you reboot the system.

_______________________________________________________________________________

Do you want to reboot now?

Press [y] for yes or [n] for no, then press [Enter]
============================

Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
bullz
Super Advisor

Re: Change of hostname

Hooo its gr8.. just one command to change the hostname in HP-UX...!

set_parms hostname
Cool..

Thanks all who all replied on this :)
bullz
Super Advisor

Re: Change of hostname

Cool