![]() |
![]() |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 19Administering NIS+ TablesThis chapter describes NIS+ tables and how to administer them. (See Table 10-1, for detailed descriptions of the default NIS+ tables.) Note - NIS+ might not be supported in a future release. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment (seeSystem Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) ). For more information, visit http://www.sun.com/directory/nisplus/transition.html. NIS+ TablesInformation used by NIS+ is stored in NIS+ tables. (See Chapter 23, Information in NIS+ Tables for a description of each default NIS+ system tables supplied in Solaris operating environment.) For a complete description of NIS+ table-related commands and their syntax and options, see the NIS+ man pages. The nistbladm CommandNote - Some NIS+ table administration tasks can be performed more easily with Solstice AdminSuite tools if you have them available. The nistbladm command is the primary NIS+ table administration command. The nistbladm command is for use on NIS+ tables stored in an NIS+ directory object. With it, you can create, modify, and delete NIS+ tables and entries. To create a table, its directory must already exist. To add entries to the table, the table and columns must already be defined. To create a table, you must have create rights to the directory under which you will create it. To delete a table, you must have destroy rights to the directory. To modify the contents of a table, whether to add, change, or delete entries, you must have modify rights to the table or the entries. nistbladm Syntax SummaryThe general syntax of the nistbladm command is:
Where:
Table 19-1 nistbladm Options
nistbladm and Column ValuesColumn values are used to identify individual entries in tables using the format:
Where:
For example, suppose you had a hosts table that listed machine names and IP addresses: Table 19-2 Example Hosts Table
In this example, your could identify the altair entry (row) in three different ways using the column=value of:
But notice in the table above that the machine regulus is multi-homed and has two IP addresses. In that case, the column=value of host=regulus identifies two rows. To identify just the first regulus row, you would enter either:
Note - Some nistbladm operations require that you enter a column=value pair for every column in the table. nistbladm, Searchable Columns, Keys, and Column ValuesWhen an NIS+ table is created, one or more columns are designated searchable with either the S or the I flags as described in Specifying Table Columns. You can use the niscat -o tablename command to display a list of a table's columns and their characteristics. A table is keyed on its searchable columns. This means that each row in the table must have a unique combination of values in the searchable columns. For example, if a table has one searchable column, each table row must have a unique value in that column, no two rows can contain the same value. For example, suppose you had a table containing one searchable column named city and a non-searchable column named country. The following rows would all be permitted:
But you could not have two rows like:
If a table has multiple searchable columns, it is the combination of values that must be unique. For example, suppose you had a table containing two searchable columns, Lastname, Firstname and a non-searchable column named city. The following rows would all be permitted:
But you could not have two rows like this:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||