System Administration Guide: Naming and Directory Services (FNS and NIS+)

Specifying Global Server Preferences

You can set global server preferences for a local or remote domain. Preferences may be set for individual machines and all the machines on a subnet.

The procedures in this section describe how to specify server preferences in a global client_info table residing on the NIS+ domain's master server. Once the table exists on the master server, NIS+ replicates it on to any existing replica servers for the domain.

To assign server preference numbers, run nisprefadm with either the:

How to Set Global Preferences for a Subnet

To assign server preferences in the global table for all the machines on a subnet:

    Run nisprefadm with the -G and -C subnet options.


#nisprefadm -G -a -C subnet servers (preferences)

Where:


polaris# nisprefadm -a -G -C 123.123.123.123 nismaster1 \
replica3 "manf.replica6(1)"

How to Set Global Preferences for an Individual Machine

    Run nisprefadm with the -G, and -C machine options.


#nisprefadm -G -a -C machine servers (preferences)

Where:


polaris# nisprefadm -u -G -C cygnus replica7 replica9

How to Set Global Preferences for a Remote Domain

To assign server preferences for an individual machine in a remote domain or all the machines on a subnet in a remote domain:

    Run nisprefadm with the -C, -G, and -d options.


#nisprefadm -a -G -C name \
 -d domain servers(preferences)

Where:

For example, to add the nismaster2 server with a default preference number of zero to the preferred server list of the 111.11.111.11 subnet in the remote sales.doc.com domain:


polaris# nisprefadm -a -G -C 111.11.111.11 -d sales.doc.com. nismaster2