- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to change the hostname without reboot
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
тАО02-04-2009 12:14 AM
тАО02-04-2009 12:14 AM
how to change the hostname without reboot
#uname -S "newname"
#update /etc/hosts and /etc/rc.config.d/netconf
Use above command for changing hostname.its change successfully and show new name while using hostname command but after that i face some problem to run sw commands and got massage like---
An attempt to get the network host entry for "hpcvm1" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
and host cant be ping in network by new name I can only login and ping host by its old name.please advise me.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 12:29 AM
тАО02-04-2009 12:29 AM
Re: how to change the hostname without reboot
You can try to avoid a reboot by restarting the following services.
if you service tools installed
# /sbin/init.d/diagnostic stop
# /sbin/init.d/diagnostic start
rstart the swagent
# swagentd -r
from console
# /sbin/init.d/net stop
# /sbin/init.d/net start
But the question still is; what other services need a hostname refresh?
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 01:15 AM
тАО02-04-2009 01:15 AM
Re: how to change the hostname without reboot
>and host cant be ping in network by new name
What do you use to solve hostname to ip?
DNS? NIS? You have to change hostname there too.
Maybe it's easier for us if you tell us more about your network and os.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 01:41 AM
тАО02-04-2009 01:41 AM
Re: how to change the hostname without reboot
1) issue the command "hostname" and check whether hostname is updated.
2) Try to ping using new hostname from the server itself , is it pinging .
3) Update your DNS/NIS side configuration
4) restart swagent "swagentd -r"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 01:50 AM
тАО02-04-2009 01:50 AM
Re: how to change the hostname without reboot
sendmail
syslog
cron
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 07:56 AM
тАО02-04-2009 07:56 AM
Re: how to change the hostname without reboot
If Oracle is running and the listener.ora and tnsnames.ora are using the hostanmes, then surely ask the Oracle team, Those will be likely a candidate to be changed.
Regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 06:16 PM
тАО02-04-2009 06:16 PM
Re: how to change the hostname without reboot
Similarly, on your local server with a new hostname, you must make sure hostname can be resolved locally. If DNS is the only name resolver service (and it has not been updated), then your local system can't even resolve it's own hostname into an IP address. Even though you updated /etc/hosts, the /etc/nsswitch.conf file controls the resolver behavior. Use nsquery to see what your local server thinks:
nsquery hosts hpcvm1
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2009 01:04 AM
тАО02-05-2009 01:04 AM
Re: how to change the hostname without reboot
Can you give us a feedback please?
V.