HP-UX System Administrator's Guide: Configuration Management
Setting Long Host Names
If the kernel tunable expanded_node_host_names is off (0), the maximum host
node name length is eight characters (for example, hprdc185) and the maximum full
host name length is 64 characters (for example, hprdc185.example.com). If it is on
(1), the maximum for both is 255 characters. By default, this tunable is off. See
expanded_node_host_names(5) for details.
Setting Long File Names
The convertfs command changes an existing file system to long file names. The
newfs command creates a new file system with short (-S) or long (-L) file names. See
the convertfs(1M) and newfs(1M) manpages and the HP-UX System Administrator’s Guide:
Routine Tasks.
A short name is up to 14 characters; a long name is up to 255 characters. A long file
name system cannot be converted back to short file names.
NOTE: The /usr directory should be in a long file name system, since many manpage
names exceed 14 characters.
Configuring /etc/hosts
You can use any text editor to edit the /etc/hosts file. If you are not running BIND,
you can use HP SMH.
1. If no /etc/hosts file exists on your system, copy /usr/newconfig/etc/hosts
to /etc/hosts, or use FTP to copy another system’s/etc/hosts file to your
system. See the ftp(1) manpage for more information.
2. Make sure the /etc/hosts file contains the following line:
127.0.0.1 localhost loopback
3. Add your own host’s IP address, name, and aliases to the /etc/hosts file, as in
the following example:
15.nn.xx.103 wszx6 patrick
The first field is the IP address, the second is the official host name (as returned
by the hostname command), and any remaining fields are aliases. See the hosts(4)
manpage.
4. If the system has more than one network card, add a line to /etc/hosts for each
IP address. The entries for the additional cards should have the same official host
name but different aliases and different IP addresses.
44 Configuring System Parameters