LUI Grouping



Working with groups

LUI now allows you to define groups of machines & resources to simplify repetitive operations. By using groups, instead of issuing 9 allimr commands to allocate 3 resources to 3 clients, you can do it in just one. For example:

Define a machine group with the 3 machines thor1,thor2,thor3:

mklimg -t machine -g mgroup -m thor1,thor2,thor3

Define a resource group with the 3 resources thorrpm,thorroot,thorboot:

mklimg -t resource -g rgroup -m thorrpm,thorroot,thorboot

Finally, allocate the resources in rgroup to the machines in mgroup:

allimr -r rgroup -g mgroup

There are also commands to list groups and delete groups:

Display all defined groups:

lslimg
Machine Groups:
        mgroup
Resource Groups:
        rgroup

Now, display the contents of rgroup:

lslimg -g rgroup
Group: rgroup
        thorboot
        thorrpm
        thorroot

To delete thorrpm from the resource group rgroup:

dellimg -g rgroup -m thorrpm

To delete the entire resource group rgroup:

dellimg -g rgroup 

Grouping is available on all LUI commands except for mklimm & mklimr. As a side benefit, the commands that now support grouping can also support comma delimited lists of nodes or resources. For example:

lslimr -n thorboot,thorrpm