1822543 Members
2855 Online
109642 Solutions
New Discussion юеВ

Change Host Name

 
SOLVED
Go to solution
John Pyle
Occasional Advisor

Change Host Name

I need to change the name of one of my servers. I had to change the IP addresses on two servers a year or so back and did not plan for all the problems that could cause, OmniBack broke and I needed new licenses/passwords. I think I have a good procedure for the OmniBack changes but want to insure I have an understanding of what changing the host name will require on the system.
Administrators make better brewers
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: Change Host Name

1. You can use "set_parms hostname" to change the hostname of the system. Fairly straight forward.

2. Edit /etc/rc.config.d/netconf. Search for HOSTNAME and change it there.
Edit /etc/hosts and replace the old hostname with the new one.
Run /sbin/init.d/hostname start to set the hostname.

Verify the hostname by running the command "hostname" and "uname -n".

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
eran maor
Honored Contributor

Re: Change Host Name

Hi

if you just want to change the name of the host you can do it my modify the file
/etc/rc.config.d/netconf .

or you can user the command :
set_parms hostname .

if you will change the hostname or the ip of an omniback server you can also go the the
site link : http://www.webware.hp.com/

over there you can change the ip of your license .

love computers
harry d brown jr
Honored Contributor

Re: Change Host Name

You'll might also need to change these files also, and a lot has to do with what software you have installed:

/etc/rc.config.d/netconf
/etc/mail/sendmail.cw
/var/adm/sw/target_hosts
/var/opt/perf/parm

find your other files by using:

find / -type f -size -100000c -exec grep -l {} \;
Live Free or Die
Eugen Cocalea
Respected Contributor

Re: Change Host Name

Hi,

/sbin/set_parms hostname

you will have to modify the DNS entry for the server(s) on the DNS server as well.

Changing the hostname of the machine is not causing too much problems anyway. It's like calling your pet with another name. Well, bad example, your pet may not answer another name, but your computer will surely do. Computers are sooo flexible :)

E.
To Live Is To Learn
Santosh Nair_1
Honored Contributor
Solution

Re: Change Host Name

Don't know what other applications you're running on this machine, but if Oracle is one of them, you have to change $ORACLE_HOME/nework/admin/lister.ora and tnsnames.ora to point to the new hostname.

Also, you probably want to update /etc/hosts and run /etc/set_params hostname (which I believe does a reboot).

-Santosh
Life is what's happening while you're busy making other plans
Ravi_8
Honored Contributor

Re: Change Host Name

Hi,
#set_parms hostname
changes the hostname in hosts, netconf files. whereas if you have databases oracle/DB2/sybase you need to change in few files like tnsnames.ora in case of oracle.
ofcourse you need to reboot the system
never give up