cl_lsuser command

Purpose

Displays user account attributes for users that exist on a PowerHA® SystemMirror® cluster.
Note: Arguments associated with a particular flag must be specified immediately following the flag.

Syntax

cl_lsuser [-cspoc "[-f] [-g ResourceGroup | -n Nodelist]"]  [-c | -f] [-a List ] {ALL | Name [ ,Name ]... }

Flags

-cspoc
Argument used to specify the following C-SPOC option:

-f - This option has no effect when used with the cl_lsuser command.

-g ResourceGroup - Generates the list of nodes participating in the resource group where the command will be executed.

-n Nodelist - Runs the command on this list of nodes. If more than one node, separate nodes listed by commas.

-a Lists
Specifies the attributes to display. The List variable can include any attribute defined in the chuser command and requires a blank space between attributes. If you specify an empty list, only the user names are displayed.
-c
Displays the user attributes in colon-separated records, as follows:
# name:  attribute1:  attribute2:  ...
User:      value1:      value2:      ...
-f
Displays the output in stanzas, with each stanza identified by a user name. Each Attribute=Value pair is listed on a separate line:
user:
attribute1=value
attribute2=value
attribute3=value
ALL | Name [name]...
Display information for all users or specified user or users.

Examples

  1. To display in stanza format the user ID and group-related information about the smith account from all cluster nodes, enter:
    cl_lsuser -fa id pgrp groups admgroups smith
  2. To display all attributes of user smith in the default format from all cluster nodes, enter:
    cl_lsuser smith
  3. To display all attributes of all the users on the cluster, enter:
    cl_lsuser ALL