These procedures explain how to create or change a local client_info file that specifies server preferences for the machine on which it resides.
If a machine has a local /var/nis/client_info file, that machine takes its server preferences from its local file rather than the global client_info tables on NIS+ servers. In other words, a local file overrides any global table.
See Specifying Global Server Preferences for information on how to create a global client_info tables for NIS+ servers.
See Global Table or Local File for an explanation of the difference between a global client_info table and a local client_info file.
To assign server preferences, run nisprefadm with either the:
-a option to add new or additional preferred servers.
-u option to delete existing server preferences and create new ones.
To assign server preferences for the local machine that you are running the nisprefadm command on:
Run nisprefadm with the -L option and either the -a or -u options.
#nisprefadm -a -L servers(preferences) |
Where servers(preferences) are one or more servers with optional preference ranking numbers.
For example, to specify that the deneb machine first seek NIS+ information from the replica3 server with a default preference number of zero and then from the replica6 server (with a preference number of 1) in the manf.doc.com domain:
deneb# nisprefadm -a -L replica3 replica6.manf(1) |