- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System not configuring hostname
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
09-06-2004 02:24 AM
09-06-2004 02:24 AM
System not configuring hostname
We have a system which is failing to retain it's hostname. uname -a reports unknown. Even if you configure it with set_parms or uname -S it will be lost after reboot.
I've noticed the following output from /sbin/init.d/hostname
./hostname[36]: Syntax error at line 2 : `)' is not expected.
Has anyone seen this before?
Cheers, Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:30 AM
09-06-2004 02:30 AM
Re: System not configuring hostname
Try running ". /etc/rc.config.d/netconf" see if you get errors. If you don't then "echo $HOSTNAME", or check the contents of the file for the HOSTNAME= parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:32 AM
09-06-2004 02:32 AM
Re: System not configuring hostname
seems that you've wrong chars in the hostname or if the name ist just too long (line 2???)
Names are limited to UTSLEN - 1 characters; UTSLEN is defined in
For more details look at uname (2)
What about the hostname entry in /etc/rc.config.d/netconf ?
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:35 AM
09-06-2004 02:35 AM
Re: System not configuring hostname
MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:50 AM
09-06-2004 02:50 AM
Re: System not configuring hostname
The hostname is only 8 characters so that should be ok.
I've copied in a new netconf file and added the correct entries. It still gives the same error on starting hostname. Though I haven't been able to reboot the box or even stop and start /sbin/init.d/net
Anyother possibilities in /etc/rc.config.d
Cheers, Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:57 AM
09-06-2004 02:57 AM
Re: System not configuring hostname
cd /etc/rc.config.d
for FILE in *
do
echo "Trying $FILE..."
. ./$FILE
done
This will display the name of each file in turn, followed by the output. If there are any errors you should be able to see which file is causing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 03:00 AM
09-06-2004 03:00 AM
Re: System not configuring hostname
Thanks for your suggestion. I might be missing something, but these are all configuration files, so how can you execute them to check which one is causing the issue?
Cheers, Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 03:16 AM
09-06-2004 03:16 AM
Re: System not configuring hostname
Thankyou all for your help, especially Simon.
I've managed to sort it now. Somebody had put their own script in /etc/rc.config.d and not tested it, so this issue had only surfaced after a power failure this morning. Once the offending script was removed it all appears to be ok again.
Cheers, Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 03:21 AM
09-06-2004 03:21 AM
Re: System not configuring hostname
Rgds...Geoff