cl_lsgroup command

Purpose

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

Syntax

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

Flags

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

-f - This option has no effect when used with the cl_lsgroup 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 List
Specifies the attributes to display. The List parameter can include any attribute defined in the chgroup command, and requires a blank space between attributes. If you specify an empty list using only the -a flag, only the group names are listed.
-c
Displays the attributes for each group in colon-separated records, as follows:
# name: attribute1: attribute2:...

Group: value1:value2:     ...
-f
Displays the group attributes in stanzas. Each stanza is identified by a group name. Each Attribute=Value pair is listed on a separate line:
group:
attribute1=value
attribute2=value
attribute3=value
ALL | group [group]...
All resource groups, or particular group or groups to display.

Examples

  1. To display the attributes of the finance group from all cluster nodes enter:
    cl_lsgroup finance
  2. To display in stanza format the ID, members (users), and administrators (adms) of the finance group from all cluster nodes, enter:
    cl_lsgroup -f -a id users adms finance
  3. To display the attributes of all the groups from all the cluster nodes in colon-separated format, enter:
    cl_lsgroup -c ALL