- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- long Machine Name
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
01-04-2005 09:44 PM
01-04-2005 09:44 PM
long Machine Name
i am having a very long mahine HPUX 11.11 name like abcdefghijk, i find my machine only named with 8 charcters of this name, i need to be able to use this long name, what files shall i change the name in it ???
i already did the hosts file with the Ip and the correct name (long one)i need, also the netconf file is configured with correct hostname i need to use (long one) can someone tell me how to do this ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2005 09:57 PM
01-04-2005 09:57 PM
Re: long Machine Name
the maximum length of a hostname is determined by MAXHOSTNAMELEN in /usr/include/sys/param.h. The default (on HPUX 11.11 ) is 64.
see the following links.it may solve your problem.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=364972
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=301546
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 12:19 AM
01-05-2005 12:19 AM
Re: long Machine Name
Now hostname is limited to 64 characters but nodename (the value reported by uname) is limited to 8 characters. BOTH can be set by editing the /etc/rc.conig.d/netconf file and entering separate values for HOSTNAME and NODENAME:
HOSTNAME=max8char
NODENAME=maximum64characternames
The NODENAME value is what is used for LAN connections. If only HOSTNAME exists then NODENAME is set to HOSTNAME.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 12:12 AM
01-06-2005 12:12 AM
Re: long Machine Name
I NEVER do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 01:02 AM
01-06-2005 01:02 AM
Re: long Machine Name
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=780354
As I mention there, alias the long name in DNS, but keep the real hostname at 8 characters.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 05:02 AM
01-06-2005 05:02 AM
Re: long Machine Name
> NODENAME=max8char
> HOSTNAME=maximum64characternames
>The HOSTNAME value is what is used for LAN connections. If only HOSTNAME exists then NODENAME is set to HOSTNAME.
So the hostname command can return a long name while uname -n will show the value of NODENAME from the startup script. Some sysadmins will set HOSTNAME to a fully qualified domain name (ie, bigfoot.sasquatch.net) which works for most environments but can break some scripts...and the startup script actually removes everything to the right starting with the first dot:
> uname -S ${HOSTNAME%%.*}
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 05:27 AM
01-06-2005 05:27 AM
Re: long Machine Name
My experience has been that long hostnames create more confusion and forgetfulness.
(What was the name of that system that has 64 characters in its name?)