- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname modification
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
10-15-2004 01:58 AM
10-15-2004 01:58 AM
Nodename and IP address have been applied, but hostname is always the name of the original server. I have tried "set_parms hostname" command to modify hostname without results. "hostname returns original name value. if I uses hostname newservername, and reboot system, original servername is back again.
Any idea ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:01 AM
10-15-2004 02:01 AM
Re: hostname modification
/etc/rc.config.d/netconf
/etc/hosts
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:03 AM
10-15-2004 02:03 AM
Re: hostname modification
chech HOSTNAME variable in file
/etc/rc.config.d/netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:09 AM
10-15-2004 02:09 AM
Re: hostname modification
# set_parms hostname
should work and it takes care of all associated files.
You only have to update /etc/hosts with the proper hostname and IP address.
If you want to change both IP and Hostname better to use:
# set_parms initial
And try setting the hostname and Ip address alongwith subnet mask and all required network configuration.
This will reboot the server and it should work fine with the new name.
After reboot check by
#hostname
command.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:12 AM
10-15-2004 02:12 AM
Re: hostname modification
HOSTNAME=newservername
OPERATING_SYSTEM=newservername
etc/hosts file contents:
ddd.ddd.ddd.ddd newservername
uname -n command returns newservername
hostname command returns originalservername
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:19 AM
10-15-2004 02:19 AM
SolutionLook for any 'old' netconf files under /etc/rc.config.d/ directory.
#cd /etc/rc.config.d
#grep 'oldservername' *
See if there are any files that look like netconf file but with different names.
All the files in this directory will be sourced during the system startup. So, if there are any file that have "HOSTNAME="oldname"" line, then unexpected results can occur.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:23 AM
10-15-2004 02:23 AM
Re: hostname modification
Do you have same setting for both??
Do as follows.
/etc/set_params hostname
uname -S "hostname" (this will set nodename)
Check files and make sure they reflect correct setting.
/etc/hosts (make sure that hostname entry is just bellow the loopback entry)
/etc/rc.config.d/netconf
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 02:28 AM
10-15-2004 02:28 AM
Re: hostname modification
#set_parms initial
will solve your problem.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 03:26 AM
10-15-2004 03:26 AM
Re: hostname modification
in etc/rc.config.d directory
two files named netconf and netconf_990625
solution:
1- from there, I have created a directory named oldfiles, put netconf_990625 in this brand new directory,
2- replaced
HOSTNAME=newservername by
HOSTNAME="newservername" I don't know if it may have incidence but it works now
rebooted and everythings are OK.
thanks to all for your quick responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 04:43 AM
10-15-2004 04:43 AM
Re: hostname modification
Bill Hassell, sysadmin