Solaris Naming Administration Guide

Specifying Local Server Preference

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.

To assign server preferences, run nisprefadm with either the:

How to Set Preferences on a Local Machine

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 domain:

deneb# nisprefadm -a -L replica3 replica6.manf(1)