- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hostname change more then 8 char
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
06-28-2007 11:40 PM
06-28-2007 11:40 PM
I am using 11.11, the problem is this, I want to Change host name more then 8 character like 20.when i change the hostname by using set_parms command. the name change successfully and machine reboot successfully. But when i insert uname command the output is only 8 character. But the output of host name show compete name. Is there any method to view compete name in uname commad.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 11:52 PM
06-28-2007 11:52 PM
Solutionplease note that host name has to be 8 characters long, you can setit to more but node name will always be 8 characters, and if node name and host name are different, then some applications will not work,
some applications check the hostname some the nodename, and some need teh 2 to be the same
you will have a conflict and make problems for yourself
at least on 11.11 is what i know...i don't know if they changed in in 11.23 or above
the reason for that is some older apps still use the 8 character hostname/nodename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 11:56 PM
06-28-2007 11:56 PM
Re: Hostname change more then 8 char
No.
See the man page for uname(1) and uname(2). The uname command reports the UUCP name, which is limited to 8 characters. The hostname command reports the Internet (or domain/host name) which is limited to MAXHOSTNAMELEN characters as defined in /usr/include/sys/param.h - usually 64. The uname man page also says "It is strongly recommended that sys be identical for all commands and locations".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 12:35 AM
06-29-2007 12:35 AM
Re: Hostname change more then 8 char
the man page (here it is 11.31) says:
"Setting a nodename of more than 8 bytes is possible only with the appropriate configuration options enabled. It is strongly recommended that all related documentation be completely understood before setting a larger node name. A node name larger than 8 bytes can cause anomalous or incorrect behavior in applications which use the uname command or the uname() system function to access the name."
http://docs.hp.com/en/B2355-60130/uname.1.html
Sounds to me like "Don't do this!"
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2007 02:48 PM
06-29-2007 02:48 PM