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:
-C subnet identifies the IP number of the subnet the preferences will apply to.
servers(preferences) are one or more servers with optional preference ranking numbers.
For example, to specify that the subnet 123.123.123.123 use the nismaster and replica3 servers with default preference number s of zero and the manf.replica6 server with a preference number of 1:
polaris# nisprefadm -a -G -C 123.123.123.123 nismaster1 \ replica3 "manf.replica6(1)" |