- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing Host Name
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:21 AM
03-17-2003 07:21 AM
Changing Host Name
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:23 AM
03-17-2003 07:23 AM
Re: Changing Host Name
set_parms hostname
If using DNS just make sure that the change is made on the DNS server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:24 AM
03-17-2003 07:24 AM
Re: Changing Host Name
# /sbin/set_parms hostname
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:24 AM
03-17-2003 07:24 AM
Re: Changing Host Name
# /sbin/set_parms hostname
...is probably the easiest, safest way. You will be prompted to provide information as needed.
Beware of any third-party products whose licensing may involve reference to the old hostname.
Remember to change any DNS servers' entries which reference your old name.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:31 AM
03-17-2003 07:31 AM
Re: Changing Host Name
you will have to edit the /etc/fstab on all of
the systems that have any mount points on the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:32 AM
03-17-2003 07:32 AM
Re: Changing Host Name
# /sbin/set_parms hostname
remember to get any DNS entries changed also if you are using DNS.
DNS can take a few hours to propagate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:35 AM
03-17-2003 07:35 AM
Re: Changing Host Name
Hostname is actually set there and can be changed with vi.
Caveat: It can't be longer than 8 characters, the OS won't like it. Include all previous warnings.
fully qualified domain names are possible, such as server.your.net
Don't back up the netconf file in the same directory it resides. Make a copy prior to editing in /root/ or whatever you have set roots home to.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 07:37 AM
03-17-2003 07:37 AM
Re: Changing Host Name
1- Edit /etc/rc.config.d/netconf and reboot.
2- Use SAM :- Networking&Communication->NW Services and goto "action- modify system name".
As long as you understand how the clients references your server, changing of the server hostname should not be a big problem. For example if there's a automount map that the client uses then the entry in it needs to be updated. If hard mounts then mount table on clinets (/etc/fstab) need to be modified. And so on...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 04:40 PM
03-17-2003 04:40 PM
Re: Changing Host Name
1.
# set_parms hostname
(it's most easy way to change the hostname)
2.
edit hostname filed of /etc/rc.config.d/netconf
and /etc/hosts.
and then,
#/sbin/init.d/hostname start
good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 04:48 PM
03-17-2003 04:48 PM
Re: Changing Host Name
The safest way to do this in Production is to add the new name to DNS as an alias a day or two before the actual system name change. This insures the new name is in DNS ahead of time.
Then the name change can be made in production, and when all other systems & apps that interact w/this system are verified OK w/the new name then the old name can be dropped in DNS.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 05:55 PM
03-17-2003 05:55 PM
Re: Changing Host Name
You can use the command
set_parms hostname
you can also use SAM
The things to consider is you have to edit the DNS files if you are using it, and if you have other nodes accessing you have to edit their /etc/hosts files and if you have .rhosts edit this also.
Thanks & Regards
SRi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 03:49 AM
03-18-2003 03:49 AM
Re: Changing Host Name
Carefully considder who are using the hostname (login, databases, print spoolers, NFS,...)
If you are using DNS considder setting up the old hostname as an alias and when to stop using it.
When finally removing the old hostname be prepared that someone will cry out loud. :-)
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 04:18 AM
03-18-2003 04:18 AM
Re: Changing Host Name
I bet you anything that a few users will have added the server to their local host file - be prepared for them to call and complain.