NLIST
View/search objects and object properties.
Syntax
NLIST [class_type [property_search_option]
[object_name] [/basic_option]
[display_option]] | [/? | /VER]
Description
Use NLIST at a workstation to:
-
view information about objects such as users, groups, volumes, servers,
and so forth
-
search on objects and object properties
Options
- class_type
-
Specify an object type, such as USER, SERVER,
PRINTER, GROUP, VOLUME, and so forth. See
nlist(1nuc)
for details.
For bindery servers (NetWare 3), replace class_type with
USER, SERVER, QUEUE, GROUP, or
VOLUME. These are the only objects available for NetWare 3.
- property_search_option
-
Specify a search option. For online help on these options, type
NLIST /? R.
- object_name
-
Specify the name of the object you want information about.
- /basic_option
-
Specify an option from the following:
- A
-
View users who are logged in.
- B[=server]
-
View information stored in the bindery of the specified server (bindery
servers only).
- C
-
Scroll continuously through information.
- CO[=context]
-
Set the context to be searched (NDS servers only).
- D
-
View all object properties.
- N
-
View object names.
- S
-
Search all levels of the database, beginning at the current context.
- SHOW [property]
-
View a specific property of an object.
- TREE
-
View all tree names visible from this login.
- display_option
-
Select how data is displayed. For online help, type NLIST /? D.
- /?
-
View online help. (Other parameters are ignored.)
- /VER
-
View the version number of the utility and the files it uses to execute.
(Other parameters are ignored.)
Usage
Searching on objects and properties allows you to view specific groups of
objects.
For example, you can view all users whose passwords will expire on a certain
date. Or you can view all groups that have a particular user as a member.
You can use property groups with only a bindery connection or with bindery
services.
USER, SERVER, QUEUE, GROUP, and
VOLUME are the only objects you can search on in a bindery
context.
The following list shows syntax for frequently use NLIST operations.
To list any information use:
NLIST [class type] [=object name] [/option ... ]
To list user information use:
NLIST user=[username] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
For bindery servers, use property_group instead of
property.
To list server information use:
NLIST server=[server] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
For bindery servers, use property_group instead of
property.
To list group information use:
NLIST group=[group] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
For bindery servers, use property_group instead of
property.
To list printer information use:
NLIST printer=[printer] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
For bindery servers, use property_group instead of
property.
To list print queue information use:
NLIST queue=[queue] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
To list volume information use:
NLIST volume=[volume] [WHERE [property] [operator] [value]]
[SHOW [property]] [/option ... ]
To list object information use:
NLIST [class type] [=object name] [[WHERE name [operator]
[value1] | WHERE object] [operator] [value2]] [/option ... ]
To List bindery object information use:
NLIST /OT [=value] [WHERE name [operator] [value1] |
WHERE object] [operator] [value2]] [/option ... ]
Examples
-
To list users whose password length is less than 5, type:
NLIST USER WHERE "PASSWORD MINIMUM LENGTH" LT 5
-
To list users whose accounts will expire by June 30, 1995, type:
NLIST USER WHERE "ACCOUNT EXPIRATION" LE 06-30-95
-
To list users who are members of group MANAGERS, type:
NLIST USER WHERE "GROUP MEMBERSHIP" = MANAGERS
-
To list users logged in, type:
NLIST USER /A
-
To list users who have supervisor equivalence, type:
NLIST USER WHERE "SECURITY EQUAL TO" = SUPERVISOR
-
To list properties of user CINDY, type:
NLIST USER=CINDY /D
-
To list users managed by JOE (bindery users only), type:
NLIST USER WHERE MANAGERS=JOE
-
To list users logged in to the database, type:
NLIST USER /A /S
-
To list properties of users in the current context, type:
NLIST USER /D
-
To list the login script of every user who has a login script in all
contexts, type:
NLIST USER SHOW "LOGIN SCRIPT" /S
-
To list users whose telephone numbers begin with 4 (search subordinate
containers), type:
NLIST USER WHERE "TELEPHONE NUMBER" = 4
/S
-
To list users at a context, type:
NLIST USER /CO <context>
-
To list telephone numbers of users in the current context, type:
NLIST USER SHOW "TELEPHONE NUMBER"
-
To identify the version number of a server, type:
NLIST SERVER SHOW VERSION
-
To list the network address of server ACCT (search all subordinate
containers) (NDS servers), type:
NLIST SERVER=ACCT SHOW ``NETWORK ADDRESS'' /S
-
To list the network address of server ACCT (search all subordinate
containers) (bindery servers), type:
NLIST SERVER=ACCT SHOW ``ATTACHMENT INFORMATION''
-
To list servers in the current context, type:
NLIST SERVER
-
To search for servers in the directory tree, type:
NLIST SERVER /S
-
To see if server ACCT is up, type:
NLIST SERVER=ACCT /A
-
To list servers whose name begins with ``L'', type:
NLIST SERVER = L
-
To list members of group TEMPORARY, type:
NLIST GROUP=TEMPORARY SHOW MEMBERS
-
To list groups with MSMITH as a member, type:
NLIST GROUP WHERE MEMBER EQ MSMITH
-
To list the owner of group RECORDS, type:
NLIST GROUP=RECORDS SHOW OWNER
-
To list information about group RECORDS (bindery servers only),
type:
NLIST GROUP=RECORDS SHOW MISC
-
To list operators for printer P1, type:
NLIST PRINTER=Q1 SHOW OPERATOR
-
To list users for printer P1, type:
NLIST PRINTER=Q1 SHOW USER
-
To list printers whose name begins with ``P'', type:
NLIST PRINTER WHERE NAME = P
-
To list printers in the current context and below, type:
NLIST PRINTER /S
-
To list operators for print queue Q1, type:
NLIST QUEUE=Q1 SHOW OPERATORS
-
To list users for print queue Q1, type:
NLIST QUEUE=Q1 SHOW USERS
-
To list print queue names, type:
NLIST QUEUE /N
-
To list host servers where volumes beginning with ``A'' reside, type:
NLIST VOLUME=A* SHOW ``HOST SERVER''
-
To list the bindery server where VOL1: resides, type:
NLIST VOLUME=VOL1 SHOW SERVER
-
To list the NDS server where VOL1: resides, type:
NLIST VOLUME=VOL1 SHOW ``HOST SERVER''
-
To list objects named MYSERVER, type:
NLIST
WHERE NAME = MYSERVER
-
To list objects in the current context, type:
NLIST
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999