CHAPTER 22 Adding Clients
# (cd /usr/etc/install; ./add_client)
usage: add_client [[options] clients]
where 'clients' is the name of the any number of clients to add and
[options] are one or more of the following for each client:
-a arch architecture type (e.g. sun3, sun4, etc.)
-e path path to client's executables
-f path path to client's share location
-h path path to client's home directory
-i interactive mode - invoke full-screen mode
-k path path to client's kernel executables
-m path path to client's mail
-p print information of existing client
-r path path to client's root
-s path path to client's swap
-t termtype terminal to be used as console on client
-v verbose mode - reports progress while running
-y type client's NIS type (client, or none)
-z size size of swap file (e.g. 16M, 16000K, 32768b etc.)
-n prints parameter settings and exits w/o adding client
To run the program interactively use the -i option to add_client, e.g.:
# (cd /usr/etc/install; ./add_client -i)
This will invoke a full-screen display for entering the client information similar to the display used during Suninstall.
This program will add all the necessary information to the /etc/bootparams file, make the boot file in /tftpboot (using the client's hex IP address in the file name, which is a symbolic link to the boot program for the appropriate architecture of the client), create the client's root file system in /export/root/client_name, create the client's swap file as /export/swap/client_name, add entries in /etc/exports to export the necessary file systems to the client, and add entries in the client's /etc/fstab file (/export/root/client_name/etc/fstab on the server) to enable the client to mount the server's file systems at boot. You'll need to make sure that the appropriate entry is in /etc/ethers for the clients ethernet address, hostname pair.
You will then need to run exportfs to correctly export the file systems to the new client. You should then be able to boot the new client. First, though, check the server's /etc/bootparams and /etc/exports file to make sure that the entries are appropriate.