1752729 Members
5733 Online
108789 Solutions
New Discussion юеВ

Re: hostname

 
Waugh
Frequent Advisor

hostname

Hi ,

How to change the hostname. what care i should take after chanhing the hostname.


Thanks
Rkumar
7 REPLIES 7
Jeeshan
Honored Contributor

Re: hostname

in command mode type

#set_parms hostname

then you will prompt to change your hostname. after changing hostname the system must be rebooted for change effect.
a warrior never quits
Steven Schweda
Honored Contributor

Re: hostname

> [...] what care i should take [...]

/etc/hosts, DNS server data, NFS server
sharing data, .rhosts, /etc/hosts.equiv, and
so on (and on). How many places did you use
the old name?
Sandeep_Chaudhary
Trusted Contributor

Re: hostname

nothing new from my side.

#sep_parms hostname

update "/etc/hosts" or DNS entry if u r using DNS.

check entry in /etc/rc.config.d/netconf for changed hostname.

if u have configured rlogin then change this .rhosts on other hosts where entry for this hosts exist.This is also applicable in case of cluster.

apart from this u can also change /etc/cmcluster/nodenmae file.

how to make sure that hostnam eis changed?:
run "hostname" command

SKR_1
Trusted Contributor

Re: hostname

You can change it in /etc/hosts file

&

/etc/rc.config.d/netconf file.

Note- Dont take the backup of netconf file in the same directory.

Thanks,

SKR
Sajjad Sahir
Honored Contributor

Re: hostname

Dear Rkumar

if u want to change the hostname of the u host itself u have to use set_parms command,
effect will be next reboot onwards.
if u want to change the hostnames of otherhosts
u have to edit /etc/rc.config.d/netconf file and /etc/hosts file

thanks and regards

Sajjad Sahir
Suraj K Sankari
Honored Contributor

Re: hostname

Hi Rkumar,

Apart from set_parms command you can use SAM also to change the host name.

Suaj
Gokul Chandola
Trusted Contributor

Re: hostname

Hi,
Please make sure All Host Changes entries should be change in one login, otherwise you will face problem.
Host enty change like host..., net.. etc.

Regards,
Gokul Chandola

There is always some scope for improvment.