- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change the hostname
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
07-03-2001 10:37 AM
07-03-2001 10:37 AM
How to change the hostname
I tried to use set_parms to change the hostname, but after a reboot it went back to the original hostname. I also tried the "unsupported" method by changing the ff:
/etc/hosts
/etc/rc.config/netconf
To no avail, it still comes back with the old hostname after a reboot. What else can I do so that the system keeps the new hostname?
I appreciate any assistance.
Thank you,
Lynette
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:39 AM
07-03-2001 10:39 AM
Re: How to change the hostname
- will handle reboot
change /etc/hosts
do the hostname command again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:41 AM
07-03-2001 10:41 AM
Re: How to change the hostname
How long is your hostname. It needs to be less then 8 char or you will have problem
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:42 AM
07-03-2001 10:42 AM
Re: How to change the hostname
I tried that one too but it still did not work.
Any other ideas?
Thanks,
Lynette
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:43 AM
07-03-2001 10:43 AM
Re: How to change the hostname
do a hostname command to find out.
What do you want to change it to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:43 AM
07-03-2001 10:43 AM
Re: How to change the hostname
My hostname is only 7 characters long. The only difference between the old and new hostname is the last character (a digit change).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:45 AM
07-03-2001 10:45 AM
Re: How to change the hostname
The old hostname is techfw2. The new hostname is techfw1. What I do then to get around it is to set the hostname manually after every reboot. So currently, since I changed it manually, it has the new hostname of techfw1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:49 AM
07-03-2001 10:49 AM
Re: How to change the hostname
- another link that may help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 10:50 AM
07-03-2001 10:50 AM
Re: How to change the hostname
you are on right track
only two file plays part on it. /etc/hosts and /etc/rc.config.d/netconf.
After changing this two file, brought system in single user mode and check the name.
Try changing to different name like star2.
do you use DNS for name resolv?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 11:01 AM
07-03-2001 11:01 AM
Re: How to change the hostname
Thanks for the link, but I've read this before already.
Hi Sachin,
Yes we are using DNS. I will try to bring it down to single user mode. I'll let you know as soon as this is done.
Thank you to both of you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 11:04 AM
07-03-2001 11:04 AM
Re: How to change the hostname
SAM--->Networkin and Communications --->Network Interface Card ----> ACTION Field ( modify System Name )
Sometimes SAM does the magic tooo.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 11:06 AM
07-03-2001 11:06 AM
Re: How to change the hostname
If still unsuccessful, please provide the output from the following commands:
# grep techfw /etc/hosts
# grep techfw /etc/rc.config.d/netconf
# hostname
# uname -a
This will help me to help you.
tx,
C