Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Naming and Directory Services (NIS+) |
Part I About Naming and Directory Services
Part II NIS+ Setup and Configuration
4. Configuring NIS+ With Scripts
5. Setting Up the NIS+ Root Domain
8. Configuring an NIS+ Non-Root Domain
10. NIS+ Tables and Information
12. Administering NIS+ Credentials
14. Administering Enhanced NIS+ Security Credentials
15. Administering NIS+ Access Rights
16. Administering NIS+ Passwords
18. Administering NIS+ Directories
20. NIS+ Server Use Customization
Default NIS+ Client Search Behavior
Designating NIS+ Preferred Servers
NIS+ Global Table or Local File
Default NIS+ Server Preferences
Efficiency and NIS+ Server Preference Numbers
Preferred-Only NIS+ Servers and All Servers
When NIS+ Server Preferences Take Effect
Viewing NIS+ Machine Preferences
How to View Preferences for an NIS+ Server
How to View Preferences for an NIS+ Machine
How to View Global Preferences for an NIS+ Machine
How to View Global Preferences for an NIS+ Subnet
Specifying NIS+ Preference Rank Numbers
Specifying NIS+ Global Server Preferences
How to Set Global Preferences for an NIS+ Subnet
How to Set Global Preferences for an Individual NIS+ Machine
Specifying Local NIS+ Server Preference
How to Set Preferences on a Local NIS+ Machine
Modifying NIS+ Server Preferences
How to Change an NIS+ Server's Preference Number
How to Replace One NIS+ Server With Another in a Preference List
How to Remove NIS+ Servers From Preference Lists
Replacing an Entire Preferred Server List in NIS+
Specifying Preferred-Only Servers in NIS+
How to Specify Preferred-Only Servers in NIS+
How to Revert to Using Non-Preferred Servers in NIS+
Ending Use of Server Preferences in NIS+
Eliminating Local Server Preferences in NIS+
How to Switch From Local to Global Subnet Preferences in NIS+
How to Switch From Local to Machine-Specific Global Preferences in NIS+
How to Stop a Machine From Using Any Server Preferences in NIS+
Putting NIS+ Server Preferences Into Immediate Effect
23. Information in NIS+ Tables
Common NIS+ Namespace Error Messages
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.
See Specifying Local NIS+ Server Preference for information on how to create a local client_info file on an individual machine.
See NIS+ Global Table or Local File for an explanation of the difference between a global client_info table and a local client_info file.
To assign server preference numbers, run nisprefadm with either the:
-a option to add new or additional preferred servers.
-u option to delete existing server preferences and create new ones.
To assign server preferences in the global table for all the machines on a subnet:
#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 172.22.123.123 uses the nismaster and replica3 servers with a default preference number of zero and the manf.replica6 server with a preference number of 1, type the following.
polaris# nisprefadm -a -G -C 172.22.123.123 nismaster1 \ replica3 "manf.replica6(1)"
#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
To assign server preferences for an individual machine in a remote domain or all the machines on a subnet in a remote domain:
#nisprefadm -a -G -C name \ -d domain servers(preferences)
Where:
name is the IP number of a subnet or the name of a machine. The modifications you make with this command apply to the subnet or machine that you name.
domainname is the name of the remote domain.
servers(preferences) are one or more servers with optional preference ranking numbers.
For example, to add the nismaster2 server with a default preference number of zero to the preferred server list of the 10.10.111.11 subnet in the remote sales.doc.com domain:
polaris# nisprefadm -a -G -C 10.10.111.11 -d sales.doc.com. nismaster2