Previous Table of Contents Next


oak% nisls -l org_dir
org_dir.esg.eng.sun.com.:
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:46 1993
auto_master
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:48 1993 auto_home
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:49 1993
bootparams
T r---rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:51 1993 cred
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:53 1993 ethers
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:55 1993 group
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:56 1993 hosts
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:24:58 1993
mail_aliases
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:ØØ 1993
sendmailvars
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:Ø1 1993 netmasks
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:Ø3 1993 netgroup
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:Ø5 1993 networks
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:Ø7 1993 passwd
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:Ø8 1993 protocols
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:1Ø 1993 rpc
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:12 1993 services
T ----rmcdrmcdr--- oak.ESG.Eng.sun.COM. Sun Feb 28 21:25:13 1993 timezone
oak%

You can display information about each table object using the niscat -o table-name.directory-name command. Information about the hosts table object is displayed in the following example:

oak% niscat -o hosts.org_dir
Object Name   : hosts
Owner      : oak.ESG.Eng.sun.COM.
Group      :
Domain     : org_dir.ESG.Eng.sun.COM.
Access Rights : ----rmcdrmcdr---
Time to Live : 12:Ø:Ø
Object Type  : TABLE
Table Type      : hosts_tbl
Number of Columns    : 4
Character Separator:
Search Path     :
Columns        :
        [0] Name       : cname
           Attributes :(SEARCHABLE, TEXTUAL DATA, CASE INSENSITIVE)
           Access Rights : ----------------
        [1] Name       : name
           Attributes :(SEARCHABLE, TEXTUAL DATA, CASE INSENSITIVE)
           Access Rights: -----------------
        [2]  Name       : addr
            Attributes :(SEARCHABLE, TEXTUAL DATA, CASE INSENSITIVE)
            Access Rights: ----------------
        [3]  Name       : comment
            Attributes :(TEXTUAL DATA)
            Access Rights: ----------------
oak%

The access rights for the table object are displayed on the fifth line. This table has four named columns: cname, name, addr, and comment. Each column has its own access rights, which are displayed after the name and attributes of the column. In this example, no additional access to the columns has been granted, and owner and group have read, modify, create, and delete permissions for the table object.

If you have read permission, you can display the values for a table using the niscat table-name.directory-name command. In the next example, the auto_master.org_dir map has two entries:

oak% niscat auto_master.org_dir
/bin  auto_local
/-   auto_direct
oak%

You can display the names of the columns and the contents using the niscat -h table-name.directory-name command. In the following example, the auto_master table has two columns, named key and value, and the separator is a space. The auto_master.org_dir map has two entries:

oak% niscat -h auto_master.org_dir
# key value
/bin  auto_local
/-   auto_direct
oak%


NOTE:  When an NIS+ table has many entries, the output of the niscat command can be quite long. If you’re searching for specific entries, you may want to use nismatch or nisgrep instead.

You can create or delete tables using the nistbladm command. You can also use the nistbladm command to create and modify entries. See the nistbladm(1) manual page for more information. You can also look in Chapter 8, “Setting Up the Automounter,” for examples of how to use the nistbladm command to create and edit automount maps.


Previous Table of Contents Next