- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX Hostname Change
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
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
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
тАО08-20-2002 01:59 PM
тАО08-20-2002 01:59 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 02:06 PM
тАО08-20-2002 02:06 PM
Re: HPUX Hostname Change
# /sbin/set_parms hostname
It'll prompt for you to reboot the system after the change is done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 02:16 PM
тАО08-20-2002 02:16 PM
Re: HPUX Hostname Change
At a minimum, you need to change the hostname in '/etc/hosts' and '/etc/rc.config.d/netconf' and reboot.
As noted, this can also be done by executing '/sbin/set_parms' with the new hostname passed as an argument.
If you are running DNS, you may need to make additonal changes to reflect the hostname change.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 05:49 PM
тАО08-20-2002 05:49 PM
Re: HPUX Hostname Change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 06:18 PM
тАО08-20-2002 06:18 PM
Re: HPUX Hostname Change
Scottie,
You should use the command "set_parms hostname" (login as root) for changing hostname. The set_parms program supposed to update ALL necessary files for you. Direct update to /etc/rc.config.d/netconf and /etc/hosts will do too but still I believe using an automated process (running set_parms in your case) is the proper way.
SAM works too, but it has been un-predictable for me in the past. In one version it works but it might not in the next version.
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 08:10 PM
тАО08-20-2002 08:10 PM
Re: HPUX Hostname Change
Be sure to check /var/adm/inetd.sec just in case there are any entries that need to be updated.
Kel
It's nice to know there are others out there that are annoyed with set_parms
Although, it's okay on very, very generic network setups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 05:45 AM
тАО08-21-2002 05:45 AM
Re: HPUX Hostname Change
Harry,
Thank You! I had thought it was my inexperience that led to my problems with set_parms. I had so many problems with it years ago that I stopped using it and haven't gone back.
Of course, my propensity to want to manually edit configuration files may have had something to do with it also!
Tom
< No Points Please... >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 06:00 AM
тАО08-21-2002 06:00 AM
Re: HPUX Hostname Change
It works fine when it's used to set up a server for the first time, but after that it is as useful as the output from /dev/null.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 06:04 AM
тАО08-21-2002 06:04 AM
Re: HPUX Hostname Change
change it via sam
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 06:35 AM
тАО08-21-2002 06:35 AM
Re: HPUX Hostname Change
Everything looks to have worked; yet the network is not ???talking???. We get a link light on the nic, but when my network analyst tries to get the MAC Address from the NIC, it will not show. My guess is that the NIC has/had been disabled when the server was shutdown (it had problems last year and was sent to the funny farm for awhile??? Kinda like management after budget analyses???).
Thank you all for your help, I guess it???s back to the bar, err, a, the computer room to figure this out???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 06:42 AM
тАО08-21-2002 06:42 AM
Re: HPUX Hostname Change
if you think the NIC is disabled, then you can enable it through SAM. If the NIC status is down, then make it up with ifconfig command:
# lanscan
# ifconfig lan? up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 10:17 AM
тАО08-22-2002 10:17 AM
Re: HPUX Hostname Change
hostname new_hostname
verify the new name with hostname with no arguements. That way you don't have to reboot the computer to change the name.
ifconfig lan0
should tell you if the NIC is active or not, or course you would substitute you lan instance in the above command i.e. lan0 lan1 etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 03:34 PM
тАО08-22-2002 03:34 PM
Re: HPUX Hostname Change
However, the error was in the physical connection to the network, not anything on the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2014 03:01 AM
тАО06-16-2014 03:01 AM
Re: HPUX Hostname Change
======================================
Do not write netconf backup file in /etc/rc.config.d.
=======================================
for example
ls -l /etc/rc .config.d/netconf*
-rw-r--r-- 1 bin bin 8559 Jun 16 10:35 netconf
-r--r--r-- 1 bin bin 15737 Feb 28 2011 netconf-ipv6
-rw-r--r-- 1 root sys 8517 Aug 17 2012 netconf_badname-backup <- remove or move this file
see
cat /sbin/rc1.d/S320hostname
- Tags:
- hostname