Listing resource groups and their members
Use the following commands to list resource groups and their members:
- lssam
- Lists resource groups and their members in tree format. For more information about the lssam command, see lssam.
- lsrg
- Lists resource groups or the members of a resource group. This section gives you an overview of
how the command is used and provides some usage examples.
For more information about the lsrg command, see lsrg.
To list a resource group or its members, you can use the lsrg command. If the resource group name is omitted, all of the resource groups are listed. If the resource group name is specified with the -m option, the member resource names and resource classes are listed.
If the Attr parameter is specified, then the attributes specified for the resource group are listed.
Three resource groups are defined in the following examples:
Example 1: If command lsrg is entered,
this type of information is displayed:
Resource Group Names:
apacherg2
apacherg3
apacherg4Example 2: To list all members of all resource groups, enter:
lsrg -m This
information is then displayed: Displaying Member Resource information:
Class:Resource:Node[ManagedResource] Mandatory MemberOf OpState WinSource Location
IBM.Application:apache1 True apacherg2 Offline Nominal node03Example 3: apacherg2 contains one resource. To list the
members of apacherg2, this command is entered:
lsrg -m -g eez-was-rgThe
following Member Resource information for resource group eez-was-rg is
displayed: Member Resource 1:
Class:Resource:Node[ManagedResource] = IBM.ServiceIP:eez-ip
Mandatory = True
MemberOf = eez-was-rg
SelectFromPolicy = ORDERED
Subscription = {}
Instances = 0
Requests = {}
Ordering = 0
ActivePeerDomain = clmanager
ConfigValidity =
OpState = OnlineExample 4: To list the attributes of a resource group apacherg2,
this command is entered:
lsrg -g eez-was-rgThe
following Member Resource information for resource group eez-was-rg is
displayed: Resource Group 1:
Name = eez-was-rg
MemberLocation = Collocated
Priority = 0
AllowedNode = ALL
NominalState = Offline
ExcludedList = {}
Subscription = {}
Owner =
Description =
InfoLink =
Requests = {}
ActivePeerDomain = clmanager
OpState = Online
TopGroup = eez-srvdb2-rg
ConfigValidity =
TopGroupNominalState = Online