- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname start - error
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-2003 08:58 PM
02-07-2003 08:58 PM
hostname start - error
We have a "hp-ux B.11.23 U ia64" system. the rc script hostname is giving the following error while booting. And doesn't set the hostname. I have to do it manually using uname -S host_name . How can I fix this?? Pl. help ...
./hostname start
unknown
usage: uname [-amnrsvil] [-S nodename]
EXIT CODE: 1
WARNING: OPERATING_SYSTEM is not set.
using default value of HP-UX
#
Thanks,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 09:18 PM
02-07-2003 09:18 PM
Re: hostname start - error
See that you have correct name in /etc/rc.config.d/netconf or try setting the hostname by
/sbin/set_parms hostname
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 09:26 PM
02-07-2003 09:26 PM
Re: hostname start - error
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 09:33 PM
02-07-2003 09:33 PM
Re: hostname start - error
OPERATING_SYSTEM is not defined.
Can you recheck that at starting of netconf file you have the following entries
HOSTNAME="name"
OPERATING_SYSTEM ="HP-UX"
....
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 09:50 PM
02-07-2003 09:50 PM
Re: hostname start - error
It already contains those parameters.
HOSTNAME="hpatm184"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
Regards,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 10:08 PM
02-07-2003 10:08 PM
Re: hostname start - error
Search for the command string in all files in all the rc dirs.
find /sbin -exec grep -l uname {} \;
May not be in netconf. Could be a stupid problem in another startup script. Maybe even a conf file - search /etc/rc.config.d as well. Something's issuing a bad uname command. Not uncommon with 3rd party SW.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 10:10 PM
02-07-2003 10:10 PM
Re: hostname start - error
Check the permission of /etc/rc.config.d/netconf file should be
-r--r--r-- bin bin
check /etc/rc.config should be
-r--r--r-- bin bin
Take a copy of these files and try to use the files taken from a good working server of same HP-UX version.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 10:17 PM
02-07-2003 10:17 PM
Re: hostname start - error
See the startup script /sbin/init.d/hostname
In this script the variable of netconf are exported and hostname is set by uname -S command
So just check this script it should have line such as..
start)
if [ -f /etc/rc.config ] ; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
hostname $HOSTNAME
set_return
if [ -z "$NODENAME" ] ; then
uname -S ${HOSTNAME%%.*}
else
uname -S $NODENAME
fi
set_return
setuname -s $OPERATING_SYSTEM -t
set_return
;;
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 04:55 AM
02-08-2003 04:55 AM
Re: hostname start - error
The permissions are OK. Even I tried with a working copy od /sbin/init.d/hostname ( of the same OS version). Still the problem persists.
When I run the following command,
find /sbin -exec grep -l uname {} \;
it returns many file names as attached in the text file. What do I do with this output??
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 06:17 AM
02-08-2003 06:17 AM
Re: hostname start - error
In most of these problems the cause is a file in the /etc/rc.config.d/ directory that shouldn't be there. Check for the obvious - core files, .old extensions to files etc, otherwise attach the output of "ls -la" in that directory.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 06:21 AM
02-08-2003 06:21 AM
Re: hostname start - error
Try
#/etc/set_parms hostname
or
#/etc/set_parms initial
Just a thought.
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 09:48 AM
02-08-2003 09:48 AM
Re: hostname start - error
Concentrate on the entries in init.d & rcX.d.
What you're looking for is a malformed uname command. So man uname to undestand it's proper syntax & look for a goofball command.
Don't forget to look in /etc/rc.config.d as well.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2003 12:32 PM
02-08-2003 12:32 PM
Re: hostname start - error
ll -t /sbin/init.d
ll -t /etc/rc.config.d
Recently changed files are a good starting point. You can ignore uname commands except uname -S, and be sure to look in /etc/rc.log for error messages that ocurred dueing startup.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2003 04:58 AM
02-09-2003 04:58 AM
Re: hostname start - error
Try:
egrep "HOSTNAME=|OPERATING_SYSTEM=" /etc/rc.config.d/*
This should return only one entry for each and it shoud be in the netconf file.
Another very simple check along similar lines is:
. /etc/rc.config.d/*
echo $HOSTNAME
echo $OPERATING_SYSTEM
If this does not show what your hostname and operating system then it may be worth trying just netconf:
. /etc/rc.config.d/netconf
echo $HOSTNAME
echo $OPERATING_SYSTEM
If this is still not correct examine netconf for unmatched double (") quotes. If it is now correct look in whatever other file it was that contained HOSTNAME or OPERATING_SYSTEM from the egrep command above.
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 01:59 AM
02-10-2003 01:59 AM
Re: hostname start - error
I am a little concerned that your uname output shows 11.23. Is this a typo by any chance? No released HP-UX has a release number of 11.23.
Ajit
HP Gigabit Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 03:35 AM
02-10-2003 03:35 AM
Re: hostname start - error
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 04:03 AM
02-10-2003 04:03 AM
Re: hostname start - error
#uname -S