- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname changes to unknown after installing hardw...
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
04-07-2005 04:36 PM
04-07-2005 04:36 PM
11.0 Server and rebooted the machine. After rebooting i found that the system
hostname has changed to unknown. I checked the /var/adm/sw/swagentd.log file and it
is giving a warning as follows:
An attempt to get the network host entry for "unknown" 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.
Even my inetd daemon has not started after rebooting. I had to start it manually.
Kindly help me in resolving this problem.
Thanks & Regards
Rajesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 04:42 PM
04-07-2005 04:42 PM
Re: hostname changes to unknown after installing hardware patch and reboot
#set_parms initial
and do a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 04:50 PM
04-07-2005 04:50 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Before you do a set_parms initial.
please do the following
1.check your /etc/rc.log and see which all services have failed.
Might be there are some errors are /etc/rc.config.d scripts.
Make sure that you have no copies/revisions of file in the /etc/rc.config.d directories.
There might be multiple versions of netconf file at /etc/rc.config.d directory which is causing the prob..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 05:12 PM
04-07-2005 05:12 PM
Re: hostname changes to unknown after installing hardware patch and reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 05:21 PM
04-07-2005 05:21 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Hostname script itself is giving syntax error. please see this script. I think it was edited earlier, it normally do not happen because of a patch. Still did you confirmed by booting before applying pathces? You can rectify this problem yourself . Compare this files lines no.1 for some syntax errors and have a look at /sbin/init.d/template to have general idea of syntax of these files.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 05:25 PM
04-07-2005 05:25 PM
Re: hostname changes to unknown after installing hardware patch and reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 05:42 PM
04-07-2005 05:42 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Just edit the files "/sbin/rc1.d/S320hostname, /sbin/rc1.d/S112kminit' and see the first line should be "#!/sbin/sh" and for files hostname and kminit in /sbin/init.d directory also it should be "#!/sbin/sh".
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 06:05 PM
04-07-2005 06:05 PM
Re: hostname changes to unknown after installing hardware patch and reboot
I checked the scripts as suggested by devender. The first line is as you told '#!/sbin/sh'.
Manikandan, I also checked the /etc/rc.config.d/ , there are no user scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 06:12 PM
04-07-2005 06:12 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Which and all patches does your installation included? Can you uninstall it once and check if it works fine? Did you rebooted prior to pathch installation? It might have happened that problem actually happened earlier and came into effect on reboot.
Just a thought.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 06:35 PM
04-07-2005 06:35 PM
Re: hostname changes to unknown after installing hardware patch and reboot
sh -x /sbin/rc1.d/S320hostname
and check exactly what the problem is ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:08 PM
04-07-2005 07:08 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Manikandan when I execute
/sbin/rc1.d/S320hostname start
I get the following error
/sbin/rc1.d/S320hostname[36]: Syntax error at line 1 : `(' is not expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:20 PM
04-07-2005 07:20 PM
Re: hostname changes to unknown after installing hardware patch and reboot
$set -x
$/sbin/rc1.d/S320hostname start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:22 PM
04-07-2005 07:22 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Backup your /sbin/init.d/hostname to hostname.bak and just copy attached file in /sbin/rc1.d directory.
It should look like.
-r-xr-xr-x 1 bin bin 908 Nov 14 2000 hostname
and /sbin/rc1.d/S320hostname should be also link to this file.
And try above step i.e. starting it manually.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:22 PM
04-07-2005 07:22 PM
Re: hostname changes to unknown after installing hardware patch and reboot
+ /sbin/rc1.d/S320hostname start
/sbin/rc1.d/S320hostname[36]: Syntax error at line 1 : `(' is not expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:25 PM
04-07-2005 07:25 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Can you check the line 36 as where this script is calling
"S320hostname[36]"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:33 PM
04-07-2005 07:33 PM
Re: hostname changes to unknown after installing hardware patch and reboot
The problem is with your /etc/rc.config.d - hostname initialization file
check your netconf file there.
Check anything junk is present on the 1st line.
Also do not have any netconf.old or netconf.bk files in there.There should be only one file with name "netconf"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:39 PM
04-07-2005 07:39 PM
Re: hostname changes to unknown after installing hardware patch and reboot
It is checking /etc/rc.config at line 36. So check the file /etc/rc.config for problems. The contents should like the attached file.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 07:42 PM
04-07-2005 07:42 PM
Re: hostname changes to unknown after installing hardware patch and reboot
#grep HOSTNAME /etc/rc.config.d/
Also,check as what the parameter HOSTNAME=
is set to /etc/rc.config.d/netconf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 08:37 PM
04-07-2005 08:37 PM
Re: hostname changes to unknown after installing hardware patch and reboot
# set -x
# . /etc/rc.config 2>&1 | tee foo.log
and post the result of foo.log
Also check that /sbin/rc1.d/S320hostname line 36 does say
. /etc/rc.config
and NOT
. /etc/config
Because . /etc/config WILL give you the error you are seeing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 09:29 PM
04-07-2005 09:29 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Also I compared /etc/rc.config with the file you sent. Both are the same.
Manikandan grep HOSTNAME /etc/rc.config.d/ shows nothing.
The parameter HOSTNAME=hptst
stepen the output of
# . /etc/rc.config 2>&1 | tee foo.log
sh: Syntax error: `(' is not expected.
Thanks & Regards
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 09:42 PM
04-07-2005 09:42 PM
Re: hostname changes to unknown after installing hardware patch and reboot
Did you remember the set -x ?
What is in foo.log ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 09:57 PM
04-07-2005 09:57 PM
Re: hostname changes to unknown after installing hardware patch and reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 10:20 PM
04-07-2005 10:20 PM
Re: hostname changes to unknown after installing hardware patch and reboot
the contents of foo.log after giving the command
# set -x
# . /etc/rc.config 2>&1 | tee foo.log
+ fname=LANG
+ [ -f /etc/rc.config.d/LANG -a LANG != core -a LANG = LANG ]
+ . /etc/rc.config.d/LANG
+ fname=Rpcd
+ [ -f /etc/rc.config.d/Rpcd -a Rpcd != core -a Rpcd = Rpcd ]
+ . /etc/rc.config.d/Rpcd
ksh: syntax error: `(' unexpected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 10:40 PM
04-07-2005 10:40 PM
Solutionlook like, make sure the first charcter of the first line is a '#'.
It should look something like
# DCE RPC daemon configuration. See rpcd(1m).
#
# As of HP-UX 10.0, the NCS Local Location Broker daemon (llbd) is
# superseded by the DCE RPC daemon (rpcd). rpcd provides all of the
# LLB services that formerly were provided by llbd, and in addition,
# rpcd provides DCE Endpoint Map services. If either the rpcd rc file
# enables rpcd service or the DCE rc file enables rpcd service, rpcd
# will be started up.
#
# If START_RPCD is 1, the DCE RPC daemon (/opt/dce/sbin/rpcd) will
# be started on this host. Because the Rpcd rc file also examines this
# variable, its name should not be changed.
#
# If you plan to run any other NCS/DCE-RPC based applications on this host,
# you must start rpcd first. rpcd must fork and the parent must exit before
# other NCS applications are started. Do not use "/opt/dce/sbin/rpcd &".
#
START_RPCD=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 11:24 PM
04-07-2005 11:24 PM
Re: hostname changes to unknown after installing hardware patch and reboot
/etc/rc.config.d/Rpcd