HP-UX System Administrator's Guide: Configuration Management HP-UX 11i v3 (B3921-90017, September 2010)

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.
5. Add the names of any other hosts that you need to reach. If you will be using a
BIND or NIS server on a different host, add the name of that host.
If your site uses DNS (Domain Name Service) or NIS (Network Information
Service), /etc/hosts acts as a backup resource in case the name server goes
down; so it is a good idea to add the names of systems that the local system
frequently needs to reach.
Configuring New HP-UX Systems into Workgroups
If you have a group of closely related HP-UX systems, configure the new system into
the group by doing the following tasks:
Set up NFS mounts to allow the system’s users to share working directories. See
Adding a User to Several Systems: A Case Study” (page 72) or “Sharing Remote
Work Directories” (page 71).
If you are using NIS, you can use the /etc/netgroup file to define network-wide
groups used for permission checking when doing remote mounts, remote logins,
and remote shells. See the manpage netgroup(4).
Configuring NFS mounts. See “Mounting a Shared File System (HP-UX to HP-UX)”
(page 80)
Add local users and groups. See “Configuring Users and Groups” (page 51).
Add remote printers. See Adding a Remote Printer to the LP Spooler (page 115).
Configuring New HP-UX Systems into Workgroups 47