- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't change 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
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
тАО05-18-2011 02:31 AM
тАО05-18-2011 02:31 AM
Can't change hostname
I have an itanium64 BL860c blade server that I want to change the hostname. After changing hostnames a million times, still I have problems once...so I've changed the hostname on /etc/hosts and /etc/rc.config.d/netconf files, then reboot...when it comes up, the hostname is the original one (before change). I even tried to change with set_parms (no sucess). When set_parms displays the hostname it is the one I've changed, but when I enter hostname it is the old one...what should I do now? Any help?
Thanks,
R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 02:46 AM
тАО05-18-2011 02:46 AM
Re: Can't change hostname
Can you please capture the session while running set_parms?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:03 AM
тАО05-18-2011 03:03 AM
Re: Can't change hostname
_______________________________________________________________________________
For the system to operate correctly, you must assign it a unique
system name or "hostname". The hostname can be a simple name
(example: widget) or an Internet fully-qualified domain name
(example: widget.region.mycorp.com).
A simple name, or each dot (.) separated component of a domain name, must:
* Start with an uppercase or lowercase letter.
* End with a letter or digit.
* Contain only letters, digits, underscore (_), or dash (-).
The underscore (_) is not recommended.
* Contain no more than 63 characters per component.
* Contain no more than 255 total characters.
* Each dot (.) separated component of a domain name, can start
with a digit.
NOTE: The first or only component of a hostname should contain no more
than 8 characters and the full hostname should contain no more
than 63 characters for maximum compatibility with HP-UX software.
The current hostname is lxhp820o.
_______________________________________________________________________________
Enter the system name, then press [Enter] or just press [Enter]
to retain the current host name (lxhp820o): lxhp820o
You have chosen lxhp820o as the name for this system.
Is this correct?
Press [y] for yes or [n] for no, then press [Enter] y
_______________________________________________________________________________
Working...
_______________________________________________________________________________
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:07 AM
тАО05-18-2011 03:07 AM
Re: Can't change hostname
...
Enter the system name, then press [Enter] or just press [Enter]
to retain the current host name (lxhp820o): lxhp820o
But you specify the same name, right?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:11 AM
тАО05-18-2011 03:11 AM
Re: Can't change hostname
The "." is part of the output, not part of the hostname.
I cannot see you changing anything ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:12 AM
тАО05-18-2011 03:12 AM
Re: Can't change hostname
Even though set_parms displays the new hostname, when I give the command "hostmame" the old hostname is displayed. That's why this is wierd...
Regards,
R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:22 AM
тАО05-18-2011 03:22 AM
Re: Can't change hostname
hostname
or
export HOSTNAME=other_host_name
Check this!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:44 AM
тАО05-18-2011 08:44 AM
Re: Can't change hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:51 AM
тАО05-18-2011 08:51 AM
Re: Can't change hostname
You can have backup copies of files in /etc/rc.config.d but the names have to conform to very specific standards. I find it easier to avoid having unnecessary files in /etc/rc.config.d.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 03:37 PM
тАО05-18-2011 03:37 PM
Re: Can't change hostname
## hostname goodname
Check host name
## hostname
goodname
If second command returns "goodname", then we know that that works.
Now, if the name is changing after some time or after a reboot to badname, then we know that some script *probably* is changing it.
((It is possible that someone/thing is remoting in and changing it, of course.
))
Try finding that script via something like:
## find /etc /sbin/init.d \
/var/spool/cron/crontabs \
/usr/local/bin \
-type f -exec grep -i -l badname {} \;
This will give the list on of filenames that have "badname" in them.
You can then peruse each one and see what it is doing.
bv