- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hostname is 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
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
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
тАО01-19-2003 12:17 AM
тАО01-19-2003 12:17 AM
The /etc/rc.log has this error
Setting hostname
Output from "/sbin/rc1.d/S320hostname start":
----------------------------
unknown
usage: uname [-amnrsvil] [-S nodename]
EXIT CODE: 1
"/sbin/rc1.d/S320hostname start" FAILED
and if I try it from command line : root@terra01# /sbin/rc1.d/S320hostname start
unknown
usage: uname [-amnrsvil] [-S nodename]
EXIT CODE: 1
the strange thing is there is an entry in /etc/rc.config.d/netconf
HOSTNAME="terra01"
OPERATING_SYSTEM=-t
LOOPBACK_ADDRESS=127.0.0.1
and everytime I change the OPERATING_SYSTEM to HP-UX and I run the start command it change it back to "-t" I don't know why ???
I tried set_parms hostname twice and the same problem persist. and tried uname -S 'hostname'
Any ideas ? Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 12:23 AM
тАО01-19-2003 12:23 AM
Re: hostname is unknown
Make sure all the entries are correct.
I've also seen the OS freak becuase the hostname was longer than 8 characters, which does not appear to be the case here.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 12:29 AM
тАО01-19-2003 12:29 AM
SolutionI read some of them and you might get lucky.
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2dd27680e012d71190050090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=1
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x48590b0717d1d5118ff40090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=3
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0990e7613948d5118fef0090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=4
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4273abe92dabd5118ff10090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=5
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x80657e990647d4118fee0090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=6
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1c98ee3e323bd5118fef0090279cd0f9,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=8
http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf726543254bfd611abdb0090277a778c,00.html&qt=hostname+%2Bstart%22+%2BFAILED&hit=9
Good luck bud.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 01:03 AM
тАО01-19-2003 01:03 AM
Re: hostname is unknown
i think that mybe your /etc/rc.config.d/netconf file is not good .
rename the file to netconf.orig , copy a new file from /usr/newconfig/etc/rc.config.d/netconf to /etc/rc.config.d/netconf
the value need to be like this :
HOSTNAME="
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=
remember also to put the param about the lan and the router .
and try to reboot the system .
i didnt found any docs on this issue .
if it will not work can you give us the netconf file for exam.
also check that the /etc/hosts is config correctly .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 10:24 AM
тАО01-19-2003 10:24 AM
Re: hostname is unknown
Try using /sbin/set_parms and make sure the hostname is properly set. After this, reboot your system.
Also you can check and make sure the /sbin/init.d/hostname exists correctly.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 02:31 PM
тАО01-19-2003 02:31 PM
Re: hostname is unknown
OPERATING_SYSTEM=-t
That entry "-t" is weird. It should be "HP-UX".
Change it and run "/sbin/init.d/hostname start"
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 09:11 PM
тАО01-19-2003 09:11 PM
Re: hostname is unknown
check doing a
#uname -n
check it gives the proper hostname.If it doesn't then
Just do a
#uname -S
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 10:32 PM
тАО01-19-2003 10:32 PM
Re: hostname is unknown
Hostname in /etc/rc.config.d/netconf and /etc/hosts files must be the same.
The OPERATING_SYSTEM flag in netconf must be HP-UX, whereas you have -t.
From prompt also you can specify hostname
#hostname=terra01,
but this will be a temporary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 10:34 PM
тАО01-19-2003 10:34 PM
Re: hostname is unknown
Hostname in /etc/rc.config.d/netconf and /etc/hosts files must be the same.
The OPERATING_SYSTEM flag in netconf must be HP-UX, whereas you have -t.
From prompt also you can specify hostname
#hostname=terra01,
but this will be a temporary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 10:37 PM
тАО01-19-2003 10:37 PM
Re: hostname is unknown
Hostname in /etc/rc.config.d/netconf and /etc/hosts files must be the same.
The OPERATING_SYSTEM flag in netconf must be HP-UX, whereas you have -t.
From prompt also you can specify hostname
#hostname=terra01,
but this will be a temporary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2003 10:39 PM
тАО01-19-2003 10:39 PM
Re: hostname is unknown
Hostname in /etc/rc.config.d/netconf and /etc/hosts files must be the same.
The OPERATING_SYSTEM flag in netconf must be HP-UX, whereas you have -t.
From prompt also you can specify hostname
#hostname=terra01,
but this will be a temporary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2003 08:58 AM
тАО01-20-2003 08:58 AM
Re: hostname is unknown
Thanks for all of your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2003 10:40 AM
тАО01-21-2003 10:40 AM
Re: hostname is unknown
Also, a minor but important distinction. The uname command does not set the "Internet" hostname of a system, it sets the UUCP "hostname" of a system.
The Internet hostname of a system is manipulated via the hostname command.
The UUCP namespace and the Internet namespace have rather different constraints on hostnames - for exmaple, their length. While both are being set (iirc) in the S320hostname script, applications should not "mix and match" them - if the app/script is going to do "things Internet" it should use the hostname command, not uname.