- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Max number of characters in the hostname, hp-ux ve...
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
07-18-2005 02:51 AM
07-18-2005 02:51 AM
Max number of characters in the hostname, hp-ux ver 11.11
What is the maximum number of characters in the hostname. Is it 8 ?
I gone through some hp links etc, it says i can have 64 characters but `uname -a` will only show 8....etc....
Any inputs !
Tx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 02:55 AM
07-18-2005 02:55 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:26 AM
07-18-2005 03:26 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:31 AM
07-18-2005 03:31 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
Just my opinion, but you should keep them both at 8 characters max. At one company I worked for they tried to implement a 15 character host name. True it afforded the chance to put all kinds of interesting information into the name, but in the end everyone hated it and it actually made things more difficult for us.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:36 AM
07-18-2005 03:36 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
As indicated above as well allthough it can be more than 8 characters it should not. It should be a simple unique name identifier for you and others to know what you are referring to rather then having name,ip,organization,location etc. within the hostname.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:37 AM
07-18-2005 03:37 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:38 AM
07-18-2005 03:38 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 03:47 AM
07-18-2005 03:47 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
I haven't verified this, but SAM probably takes into consideration the uname limit and keeps it simple. You would most likely need to go command line to have hostname > 8.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 04:07 AM
07-18-2005 04:07 AM
Re: Max number of characters in the hostname, hp-ux ver 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 05:07 PM
07-18-2005 05:07 PM
Re: Max number of characters in the hostname, hp-ux ver 11.11
Maximum no of characters in hostname are 8, but in Trusted Mode (hp-ux hardened) hostname can span upto 40 characters
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:51 PM
07-18-2005 07:51 PM
Re: Max number of characters in the hostname, hp-ux ver 11.11
1. As researched, no patch is available for HPUX 11.11 to fix this issue. I heard HPUX 11.31 will have uname supporting more than 8 characters.
2. http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068695446
3. This is not tested but try it on a test server...what i got from MAN pages are sorted below...
from the MAN pages of uname(1):
Change the node name (system name) to nodename.
nodename is restricted to UTSLEN-1 characters (see uname(2)). See WARNINGS. Only users with appropriate privileges can use the -S option.
from the MAN pages of uname(2):
The utsname structure, defined in
follows:
#define UTSLEN 9
#define SNLEN 15
char sysname[UTSLEN];
char nodename[UTSLEN];
_______________________________________
> setuname()
The setuname() system call sets the node name (system name), as returned in the nodename field of the utsname structure, to name, which has a length of namelen characters. This is usually executed by /sbin/init.d/hostname at system boot time. Names are limited to UTSLEN - 1 characters; UTSLEN is defined in
The sethostname(
) system call sets the name of the host processor to name, which has a length of namelen characters. At system boot time sethostname() is normally executed by the hostname command (see hostname(1)) in the /sbin/init.d/hostname script. Host names are limited to MAXHOSTNAMELEN characters, as defined in
______________________________________
editin
g the entries in /usr/include/sys/utsname.h
# define _SYS_NMLN 9
# define UTSLEN _SYS_NMLN
you can change the _SYS_NMLN value to the desired nodename length + 1 ...
Try changing the system name...
try this on a test server before trying it on a production one... as this is not tested and are as per the MAN pages...
Good Luck
Vinod K