Run nisprefadm with the -G, and -C machine options.
#nisprefadm -G -a -C machine servers (preferences) |
Where:
-C machine identifies the machine the preferences will apply to. (Depending on the shell you are using, you may need to enclose machine in quotes.)
servers(preferences) are one or more servers with optional preference ranking numbers.
For example, to replace the current preferences for the machine cygnus with replica7 and replica9 both with a default preference number of zero, type the following.
polaris# nisprefadm -u -G -C cygnus replica7 replica9 |