- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- How to change the 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
Discussions
Discussions
Forums
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
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
тАО01-20-2010 09:57 AM
тАО01-20-2010 09:57 AM
How to change the host name?
Some how the hostname got changed for the server.
I've tried changing it in sysman interface, but it just won't take effect. I've looked at the "best practices" guide and changed it in /usr/sys/conf/
Am I missing something else? Is there another file that needs to be changed?
Thanks.
Daryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2010 11:21 AM
тАО01-20-2010 11:21 AM
Re: How to change the host name?
"1. Be sure that you have answered all the questions in Be Prepared to
Answer These Questions.
2. Log in as root.
3. Make a backup copy of the /etc/rc.config file.
$ cp /etc/rc.config /etc/rc.config.BACKUP
4. Edit the HOSTNAME entry in the /etc/rc.config file, changing the
entry for oldname to newname.
Before:
HOSTNAME="oldname.aaa.bbb.ccc"
After:
HOSTNAME="newname.aaa.bbb.ccc"
5. Make a backup copy of the /etc/hosts file.
$ cp /etc/hosts /etc/hosts.BACKUP
7
6. Edit the /etc/hosts file , changing the entry for oldname to
newname.
Before:
IPaddress oldname.aaa.bbb.ccc oldname
After:
IPaddress newname.aaa.bbb.ccc newname
7. Optionally edit and change the file name of the file corresponding to
oldname (it may be in uppercase characters) in the /usr/sys/conf
directory; this example shows one method for doing this.
# cd /usr/sys/conf
# ls
GENERIC
...
OLDNAME
# sed -e "s/OLDNAME/NEWNAME/" OLDNAME > NEWNAME
# rm OLDNAME
____________________ Note ____________________
This step is provided solely for the sake of consistency. It
has no bearing on the host name change.
8. Reboot the system with the shutdown -r command.
Be sure to warn users and give them adequate time to save their files,
exit their applications, and log off.
The following is an example that reboots the system in one hour and
displays a message.
# /usr/sbin/shutdown -r +60 \
System going down in 1 hour! Save your files and log out!
9. Edit the root .profile, .kshrc, .login, .cshrc, and .rhosts files
as needed to reference the new system name; pay particular attention
to the setting of the DISPLAY and PS environment variables.
10. Inform other users of the system name change; they may need to
edit their .profile, .kshrc, .login, .cshrc, and .rhosts files
accordingly."
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2010 11:28 AM
тАО01-20-2010 11:28 AM
Re: How to change the host name?
Define "everything". As usual, showing
actual commands with their actual output can
be more helpful than vague descriptions and
interpretations. "sizer -v" always adds a
nice touch, too.
> Am I missing something else?
Seems likely.
> Is there another file that needs to be
> changed?
Changing a file does not change the hostname
(immediately, directly).
man hostname
Without actually looking, I'd guess that one
of the start-up scripts extracts the desired
value for the hostname from some file
somewhere, and then runs a "hostname" command
to get it set accordingly. If so, then
changing the file might do nothing until the
next system start-up.
In the meanwhile, one ("root") could do a
manual "hostname" command to get it set as
desired.
> [...] its retaining the wrong hostname.
"It's".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2010 11:41 AM
тАО01-20-2010 11:41 AM
Re: How to change the host name?
In: /cluster/members/member0/etc/rc.config there was an entry: HOSTNAME="server_name"
export HOSTNAME
This was what was causing me so much pain. Once I changed it to the correct server name and rebooted, all was good.
Thanks
Daryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2010 03:13 PM
тАО01-20-2010 03:13 PM