- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HOSTNAME CHANGE
Categories
Company
Local Language
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 04:59 AM
01-14-2002 04:59 AM
What will I need to change, just the hostname with the hostname command and re-configure the network cards with the appropriate ip adress and hostname?
Thanks,
Bob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:08 AM
01-14-2002 05:08 AM
Solution1. Shutdown to single user mode with 'shutdown 0'.
2. Edit /etc/rc.config.d/netconf. This contains the hostname and network configuration info.
3. Edit /etc/hosts (and any relevant DNS configuration if appropriate).
4. reboot.
I do this in single user mode because changing /etc/hosts can cause certain shutdown scripts to 'hang'.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:08 AM
01-14-2002 05:08 AM
Re: HOSTNAME CHANGE
I think you can do the following.
1 - Edit the files /etc/rc.config.d/netconf on HP11 and HP12 and change the IP-Address and hostname.
2 - If you use /etc/hosts as name resolution, you have to edit this file and change the IP-Address for HP11 and HP12 too, or instead /etc/hosts, you use DNS, you have to change the IP-Address for HP11 and HP12 in the DNS Server database.
3 - Reboot HP11 and HP12.
I hope this help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:25 AM
01-14-2002 06:25 AM
Re: HOSTNAME CHANGE
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:38 AM
01-14-2002 06:38 AM
Re: HOSTNAME CHANGE
as far as i know it is reconmendet using /sbin/set_parms hostname. This will make sure all necessary files are configured correctly.
It also works to edit /etc/rc.config.d/netconf and delete the hostname and IP Adress. During the reboot the system will ask you for the new hostname. In fact it is running set_parms hostname automatically.
Hope this helps
Regards Stefan