- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hostname changes to unknown
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
02-07-2004 12:23 AM
02-07-2004 12:23 AM
hostname changes to unknown
I got the following error messages in /etc/rc.log
Start multicast routing daemon
Output from "/sbin/rc2.d/S490mrouted start":
----------------------------
/sbin/rc2.d/S490mrouted[38]: X: The specified number is not valid for this comma
nd.
Start Internet services daemon
Output from "/sbin/rc2.d/S500inetd start":
----------------------------
/sbin/rc2.d/S500inetd[37]: X: The specified number is not valid for this command
.
Start Software Distributor agent daemon
Output from "/sbin/rc2.d/S100swagentd start":
----------------------------
ERROR: The 'swagentd' daemon started but the local hostname
'unknown' cannot be resolved, therefore no SD
commands will be able to contact it.
The most likely solution is to define 'unknown'
in '/etc/hosts'.
"/sbin/rc2.d/S100swagentd start" FAILED
Configuring all unconfigured software filesets
Output from "/sbin/rc2.d/S120swconfig start":
----------------------------
ERROR: Cannot contact the 'swagentd' daemon because the local
hostname 'unknown' cannot be resolved, therefore
no 'swconfig' or 'swremove' will be executed at this time'
The most likely solution is to define 'unknown'
in '/etc/hosts'.
"/sbin/rc2.d/S120swconfig start" FAILED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 12:51 AM
02-07-2004 12:51 AM
Re: hostname changes to unknown
Also check with dmesg and /var/log/syslog/syslog.log for any errors which caused this.
Also, check the following:
1. Do you have /etc/hosts with correct host name
2. Also check /etc/rc.config.d/netconf file for correct hostname
If nothing works, just run set_parms and set all these and reboot.
Hope this helps
vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 12:53 AM
02-07-2004 12:53 AM
Re: hostname changes to unknown
Refer "man set_parms" with hostname option, only to set up the hostname.
Are you vivek from mepz?
Thanks
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 02:29 AM
02-07-2004 02:29 AM
Re: hostname changes to unknown
The easiest way to debug this is to run the inetd script in debug mode and save the results in a file:
sh -x /sbin/init.d/inetd > /var/tmp/inetd.log 2>&1
Then look at the logfile and search for the error message to see which command is causing the problem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2004 08:35 AM
02-07-2004 08:35 AM
Re: hostname changes to unknown
Good stuff above. Unfortunately, swagentd needs an IP to bind to & it gets it from the hostname.. (as suggested above) however, it seems that other commands failed to start you seem to have a couple of
"sbin/rc2.d/S?????[38]: X: The specified number is not valid for this command."
mrouted & inetd to name two... these may also be contributing to the problem
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 04:16 PM
02-08-2004 04:16 PM
Re: hostname changes to unknown
If a restart after applying a patch was pending, this could happen, or may be your /etc/hosts file is corrupted or unavailable!
I dont see any other reason for the hostname change!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 04:23 PM
02-08-2004 04:23 PM
Re: hostname changes to unknown
For me it looks like there is a bad configuration file out there in /etc/rc.config.d directory. Line 37 on inetd script is /etc/rc.config which does nothing but sourcing each script from /etc/rc.config.d
Make sure you don't have revisions of netconf file in that directory. One way to check is
for FILE in $(ls /etc/rc.config.d)
do
echo $FILE
. /etc/rc.config.d/$FILE
done
That should point you to the file that has the problem.
-Sri