- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Couldn't change system 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
09-09-2002 11:16 AM
09-09-2002 11:16 AM
I have a strange problem that I really need to get the help from you.
My system is HP-UX B.11.00 U 9000/800 138901587 unlimited-user license , the last patch is PHSS_23823.
old system name: unixh100
new system name: unixh145 ( no ip change)
Application: CiscoWorks 2000
No DNS enabled
I used the set_parms initial to change the system name to unixh145,then reboot the box, but the system name is still unixh100 when it back, I check the /etc/hosts and /etc/rc.config.d/netconf, there are only unixh145 there no unixh100 exist in these file.
Checked from SAM, the system name was still unixh100, change it to unixh145 and exit SAM, logout and login again, system name is unixh145 now; But if I reboot the box, it will still be unixh100.
If you need more messages please let me know,
Any suggestions will be appreciated!
Thank you!
Vic
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:29 AM
09-09-2002 11:29 AM
Re: Couldn't change system name
Check to make sure that you don't have any extra copies of netconf in your /etc/rc.config.d directory (netconf.save, netconf.old, etc.) One of our guys got bitten by this problem a few weeks ago when he had made a copy of the netconf file in /etc/rc.config.d. The rc script will include all the files in that directory, so any copies will get included after the regular file.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:29 AM
09-09-2002 11:29 AM
Re: Couldn't change system name
set_parms should change the system name.
During the system bootup process, the hostname is setup with the rc scripts /sbin/init.d/hostname. So try running the script "/sbin/init.d/hostname start" after the system came up with the old hostname.
I feel that there might be someother III party rc script that is hardcoded with your old hostname running "hostname" command later.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:32 AM
09-09-2002 11:32 AM
Re: Couldn't change system name
should have been sufficient. Also check /etc/hosts and /etc/net/*/hosts.
HTH
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:33 AM
09-09-2002 11:33 AM
Re: Couldn't change system name
Try this:
. /etc/rc.config.d/netconf
echo $HOSTNAME
If it returns the old name, then see how many times HOSTNAME= appears in the netconf file? On special occasions I've found a redundant set of variables at the end of the file clobbering everything else at the top.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:42 AM
09-09-2002 11:42 AM
Re: Couldn't change system name
Good call, Poff. As a rule, never keep such copies in the same location. However, if you ever need to, they must be preceded by dot, comma, tilde, or hash ([.,~\#]) as dictated by /etc/rc.config.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 01:52 PM
09-09-2002 01:52 PM
Re: Couldn't change system name
Isn't that funny. I just saw the same thing on a coworkers test(play) system where he generated a .old backup of the netconf file and it kept changing the hostname back on him. Poor guy played with it for a couple of days before asking for help.
I'd never seen this before, but it made for a cute learning experinece.
Hi Vic,
Sounds like John my be on the money.
Good luck to you,
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 12:35 AM
09-10-2002 12:35 AM
Re: Couldn't change system name
I have attached a file containing the stages required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 06:25 AM
09-10-2002 06:25 AM
Re: Couldn't change system name
The problem is still there.
This is what I did after I got your suggestion:
1. replaced unixh100 with unixh145 in the following files:
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
2. transfer /tmp/netconf.901 and /tmp/netconf.back to another box ( these 2 files been removed from /etc/rc.config.d/ to /tmp on last Friday), rm these 2 files on this box;
3. Stop the applications and ITO agents , reboot the box, the system is still unixh100,
try following:
. /etc/rc.config.d/netconf
echo $HOSTNAME ( the response is unixh145 )
I would like to supply more system information if necessary,
Thanks again!
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 06:31 AM
09-10-2002 06:31 AM
Re: Couldn't change system name
Has the hostname been hardcoded by chance in /sbin/init.d/hostname in the start section around line 41?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 10:32 AM
09-10-2002 10:32 AM
Re: Couldn't change system name
Is there something wrong with this output?
unixh145-root@ /sbin/init.d > grep -l HOSTNAME /etc/rc.config.d/*
/etc/rc.config.d/netconf
/etc/rc.config.d/redconf
Could you please check the attached file for me?
Thanks a lot
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 10:43 AM
09-10-2002 10:43 AM
Re: Couldn't change system name
What is the /etc/rc.config.d/redconf file, and why does it have an entry for HOSTNAME in it?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 11:21 AM
09-10-2002 11:21 AM
Re: Couldn't change system name
I assume the script you attached is /sbin/init.d/hostname. It's fine.
The problem is most certainly with the redconf file. Let's have a look at it. I suspect that HOSTNAME is being set in it. Because most rc scripts use /etc/rc.config to source ALL files in /etc/rc.config.d in alpanumeric order, redconf will be processed after netconf, thus overriding that value that you want. Please attach the redconf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 02:36 PM
10-14-2002 02:36 PM
Re: Couldn't change system name
Looks like there is a ghost been killed by one of you guys :) :). I reboot at least 5 times from Sep. Last Friday when I rebooted it again,
my system came to unixh145 now! ow ow!
Best regards,
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 06:32 PM
10-14-2002 06:32 PM
Re: Couldn't change system name
I'm glad your problem is solved, but I'm always happier when I know what was wrong. I'm willing to bet an ice cold alcoholic beverage that your /etc/rc.config.d/redconf file isn't there any more. :)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:43 AM
10-15-2002 05:43 AM
Re: Couldn't change system name
/etc/rc.config.d/redconf is still there without unixh100 inside. :)
Best regards,
Vic