niscat - display NIS+ tables and objects
niscat [-AhLMv] [-s sep] tablename...
niscat [-ALMP] -o name...
In the first synopsis, niscat displays the contents of the NIS+ tables named by tablename. In the second synopsis, it displays the internal representation of the NIS+ objects named by name.
Columns without values in the table are displayed by two adjacent separator characters.
The following options are supported:
-A
-h
-L
-M
-o name
-P
-s sep
-v
Example 1 Displaying the Contents of the Hosts Table
The following example displays the contents of the hosts table:
example% niscat -h hosts.org_dir # cname name addr comment client1 client1 192.168.201.100 Joe Smith crunchy crunchy 192.168.201.44 Jane Smith crunchy softy 192.168.201.44
The string *NP* is returned in those fields where the user has insufficient access rights.
Example 2 Displaying on the Standard Output
The following displays the passwd.org_dir on the standard output.
example% niscat passwd.org_dir
Example 3 Displaying Table Contents
Display the contents of table frodo and the contents of all tables in its concatenation path.
example% niscat -A frodo
Example 4 Displaying Table Entries
The following example diisplays the entries in the table groups.org_dir as NIS+ objects. Notice that the brackets are protected from the shell by single quotes.
example% niscat -o '[ ]groups.org_dir'
Example 5 Displaying the Table Object
The following example displays the table object of the passwd.org_dir table.
example% niscat -o passwd.org_dir
The previous example displays the passwd table object and not the passwd table. The table object includes information such as the number of columns, column type, searchable or not searchable separator, access rights, and other defaults.
Example 6 Displaying the Directory Object
The following example displays the directory object for org_dir, which includes information such as the access rights and replica information.
example% niscat -o org_dir
NIS_PATH
niscat returns the following values:
0
1
See attributes(5) for descriptions of the following attributes:
|
NIS+(1), nisdefaults(1), nismatch(1), nistbladm(1), nis_objects(3NSL), nis_tables(3NSL), attributes(5)
NIS+ might not be supported in future releases of the Solaris operating system. Tools to aid the migration from NIS+ to LDAP are available in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |