NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5254
To Create an NIS+ Table
When you set up an NIS+ domain, the nisserver script creates a default
set of tables. You can also create your own custom tables.
1. Issue the following command from any NIS+ client host:
nistbladm -c table_type column=flags column=flags ...
tablename
The following example creates a three-column table called
hostinfo.Wiz.Com. The S flag indicates that the first two columns
are searchable.
nistbladm -c hostinfo host=S user=S \
location= hostinfo.org_dir.Wiz.Com.
In most cases, the table type can be the same as the table name
(without org_dir and the domain name). In most of the standard
tables, the table type is the same as the table name. Two-column
tables in which only the first column is searchable have type
key-value. All automounter maps have type key-value.
2. If your table has type key-value (two columns with only the first
column searchable), you can use the nisaddent command to
populate it from a file or an NIS map. The following example
populates the auto_direct map from the /etc/auto.direct file:
nisaddent -f /etc/auto.direct -t auto_direct.org_dir
key-value
If your table is not of type key-value, you must add entries to it one
at a time. You can use SAM, or you can use the nistbladm command.
See “To Add an Entry to an NIS+ Table” on page 240.
At least one column in a table must be searchable.
To create a table, you must have create permission for the org_dir
directory (or the directory where you want to put the new table).
For more information, see the following man pages: nistbladm(1),
nisaddent(1M), and sam(1M).