HP-UX 11i Version 2 May 2005 Release Notes
Commands and System Calls
The hostname Command
Chapter 9
166
The hostname Command
The hostname (1) command is part of the core operating system. This command is used
to set or display the name of the current host system.
Summary of Change
As part of the Node and Host Name Expansion (NodeHostNameXpnd), the hostname
command can set and display the name of the current host system to more than the
previously allowed 64 bytes. You may now configure the system to allow these limits to
be expanded to 255 bytes. This capability is available starting with the HP-UX 11i v2
May 2005 update.
The default system configuration allows host names up to 64 bytes in length. The
optional NodeHostNameXpnd product bundle (available on Software Pack) must be
installed and the appropriate configuration options enabled to allow up to 255 bytes. All
relevant documentation (manpages and product documents) should be understood before
enabling the configuration options.
Impact
The hostname (1) command may set or display the host name up to 255 bytes.
Compatibility
The default configuration options, allowing host names up to 64 bytes, ensures
compatibility with all HP-UX versions.
Performance
There is no change in performance.
Documentation
For further information, see the hostname (1) manpage.
Also see the following related information in this document:
• “Software Pack (Optional HP-UX 11i v2 Core Enhancements)” on page 28
• “Node and Host Name Expansion” on page 125
• “The setuname Command” on page 167
• “The uname Command” on page 168
• “Common Desktop Environment (CDE)” on page 184
Obsolescence
Not applicable.