HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: set hostname & node name longer then 8 char
Operating System - HP-UX
1833788
Members
2507
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-06-2008 02:35 PM
03-06-2008 02:35 PM
I am installing hp11.11 and set the host name on install to abcdefghij (10 char) but, it complained on install, and when I do a uname it shows up as:
HP-UX unknown B.11.11
I believe this has to do with the nodename only being 8, so how can I make the system happy and still keep the longer then 8 char hostname?
HP-UX unknown B.11.11
I believe this has to do with the nodename only being 8, so how can I make the system happy and still keep the longer then 8 char hostname?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2008 05:37 PM
03-06-2008 05:37 PM
Solution
Hello,
You should not do it on HP-UX 11.11
server.
Some SAM features and other things will break
(believe me, I tested it).
From memory (I do not play with 11.11
much these days), you could set longer than
8-character hostnames on the command line,
but you still have problems as described
above.
a) Set the hostname up to eight characters
and then
b) Add aliases in DNS any way you
want (even longer names).
Cheers,
VK2COT
You should not do it on HP-UX 11.11
server.
Some SAM features and other things will break
(believe me, I tested it).
From memory (I do not play with 11.11
much these days), you could set longer than
8-character hostnames on the command line,
but you still have problems as described
above.
a) Set the hostname up to eight characters
and then
b) Add aliases in DNS any way you
want (even longer names).
Cheers,
VK2COT
VK2COT - Dusan Baljevic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2008 06:13 PM
03-06-2008 06:13 PM
Re: set hostname & node name longer then 8 char
There are two network names in HP-UX: nodename and hostname. Normally, they are the same. The man page for hostname explains the differences. The startup variable NODENAME is the UUCP name which is returned by uname -n, while the HOSTNAME variable sets the networking (ARPA, NFS, etc) name, which can be 64 chars long (see /usr/include/sys/param.h for MAXHOSTNAMELEN). HOSTNAME can be much longer than 8 characters BUT only if you define an 8-character or less NODENAME in the /etc/rc.config.d/netconf file, like this:
NODENAME=myhost08
HOSTNAME=myreallylonghostname
And of course for networking, the /etc/hosts file provides all the hostname aliases you might need -- assuming you put files then dns in /etc/nsswitch.conf. There is no limit to the number of different names you can give to your system, but NODENAME *MUST* be assigned 8 characters or less. There are so many items that will break if you exceed this rule that you don't ever want to do it.
Bill Hassell, sysadmin
NODENAME=myhost08
HOSTNAME=myreallylonghostname
And of course for networking, the /etc/hosts file provides all the hostname aliases you might need -- assuming you put files then dns in /etc/nsswitch.conf. There is no limit to the number of different names you can give to your system, but NODENAME *MUST* be assigned 8 characters or less. There are so many items that will break if you exceed this rule that you don't ever want to do it.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2008 01:04 PM
03-07-2008 01:04 PM
Re: set hostname & node name longer then 8 char
I will tread lightly.
Actually, change everything to 8 chars.
I just thought they would have updated this in 11.11
Actually, change everything to 8 chars.
I just thought they would have updated this in 11.11
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP