Including and excluding a group member from operations on the group from the command line

Follow this procedure for including and excluding a group member from operations on the group from the command line.

To include or exclude a group member, enter the following:
nim -o select -a include_all=Value -a exclude_all=Value \
-a include=MemberName -a exclude=MemberName GroupName
As an example, to exclude the machine, Standalone2, from further operations on machine group, MacGrp1 and to include a previously excluded machine, Standalone3, enter:
nim -o select -a exclude=Standalone2 -a include=Standalone3  MacGrp1
The special attributes include_all and exclude_all, when assigned a value of yes, can be used respectively to include or exclude all members in a group. The select operation evaluates command line attributes from left to right. The following example shows how to exclude all members except Standalone2 from subsequent operations on the MacGrp1 machine group:
nim -o select -a exclude_all=yes -a include=Standalone2 MacGrp1
Using the special -g option shows the excluded status of the group's members:
lsnim -g MacGrp1
Group member information similar to the following is displayed:
MacGrp1:
type   = mac_group
member1=Standalone1;ready for a NIM operation,not running;EXCLUDED
member2=Standalone2;ready for a NIM operation; currently running;
member3=Standalone3;ready for a NIM operation,not running;EXCLUDED