How to Eliminate Global Server Preferences
#nisprefadm -G -x |
This eliminates global server preferences.
Client machines that do not have local server preferences will obtain NIS+ information as described in "Default Client Search Behavior".
Client machines that do have local server preferences set by a local /var/nis/client_info file will continue to use servers as specified in that file.
How to Eliminate Local Server Preferences
Ending local preferences can mean one of three different things:
That you want the machine to stop using its local client_info file for its server preferences and start using the preferences set for its subnet in the domain's global client_info table.
That you want this machine to stop using its local client_info file for its server preferences and start using the preferences set for it specifically in the domain's global client_info table.
That you do not want the machine to use server preferences at all. When a machine does not use server preferences, it obtains NIS+ information as described in "Default Client Search Behavior".
How to Switch From Local to Global Subnet Preferences
# rm /var/nis/client_info |
This causes the machine to use the preferences specified for the machine's subnet in the domain's global client_info table.
How to Switch From Local to Machine-Specific Global Preferences
Remove the machine's /var/nis/client_info file.
# rm /var/nis/client_info
Specify preferences for the machine in the global table using the -G and -C options.
See "How to Set Global Preferences for an Individual Machine".
How to Stop a Machine From Using Any Server Preferences
Remove the machine's /var/nis/client_info file.
# rm /var/nis/client_info
If the machine's domain does not have a global client_info table, this step is all you have to do. If the domain does have a client_info table, continue on to the next step.
Create an empty /var/nis/client_info file.
# touch /var/nis/client_info
When a machine has its own /var/nis/client_info file, it does not use global preferences from any client_info table. If the machine has an empty /var/nis/client_info file, it will not use any preferences at all and will obtain NIS+ information, as described in "Default Client Search Behavior".
Putting Server Preferences Into Immediate Effect
Server-use changes normally go into effect whenever the client machine is rebooted or updates its cache manager.
When you use nisprefadm to set or change server preferences on a local machine using a local client_info file (the -L option), your changes go into effect immediately.
For machines obtaining their server preferences from a global client_info table (the -G option) you can force server preference changes into immediate effect by running nisprefadm a particular with the -F option.
# nisprefadm -F |
The -F option forces the machine's cache manager to immediately update its server preference information from the domain's global client_info table. (If the machine on which you run nisprefadm -F has its own local client_info file in /var/nis, running nisprefadm -F on it will have no effect.)
Note - You cannot use the -F option with any other nisprefadm options. The nisprefadm -F command must always be run by itself on the machine you want it to apply to. You cannot use the -G option to update the cache managers of all machines in a domain. The nisprefadm -F command must be run on each machine individually.
How to Immediately Implement Preference Changes
To force a newly created or modified server list into immediate effect on a given machine:
# nisprefadm -F |
For example, to force immediate implementation of changes to vega's preferred server list (whether local or global):
vega# nisprefadm -F |