The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.
To create a system group, use the group_create command, for example:
spacecmd {SSM:0}> group_create group3 "Example system group 3"
To list system groups, use the group_list command, for example:
spacecmd {SSM:0}> group_list
group1
group2
group3
To add client systems to a system group, use the group_addsystems command.
spacecmd {SSM:0}> group_addsystems group3 svr1.mydom.com
You can also specify systems by the software channels to which they are subscribed or the results of a system search, for example:
spacecmd {SSM:0}>group_addsystems group3 channel:ol6-x86_64
spacecmd {SSM:0}>group_addsystems group3 ip:192.168.1
See Section 8.3, “Searching for Systems Using spacecmd”.
To display the details of a system group, use the group_details command.
spacecmd {SSM:0}> group_details group3
Name group3
Description: Example system group 3
Number of Systems: 1
Members
-------
svr1.mydom.com
To work with a system group, specify it using
group:
to
a spacecmd command, for example:
group_name
spacecmd {SSM:0}> system_listerrata group:group3
Security Errata
---------------
ELSA-2015-1115 Moderate: openssl security update 6/15/15
ELSA-2015-1072 Moderate: openssl security update 6/4/15
ELSA-2015-0863 Moderate: glibc security and bug fix update 4/21/15
...
To create a union of two or more system groups, create an empty group and specify the groups to the group_addsystems command.
spacecmd {SSM:0}>group_create group4 "Example system group 4"
spacecmd {SSM:0}>group_addsystems group4 group:group1 group:group2
To create an intersection of two or more system groups, clear the
contents of the system set in the System Set Manager, use the
ssm_intersect command to create the
intersection as the new system set, create an empty group and
specify the system set as ssm
to the
group_addsystems command.
spacecmd {SSM:0}>ssm_clear
spacecmd {SSM:0}>ssm_intersect group:group1 group:group2
spacecmd {SSM:2}>group_create group5 "Example system group 5"
spacecmd {SSM:2}>group_addsystems group5 ssm
spacecmd {SSM:2}>ssm_clear
spacecmd {SSM:0}>
{SSM:
shows the
number of systems that are members of the system set.
N
}
To remove client systems from a system group, use the group_removesystems command.
spacecmd {SSM:0}>group_removesystems group3 svr1.mydom.com
Systems ------- svr1.mydom.com Remove these systems [y/N]:y
To delete a system group, use the group_delete command.
spacecmd {SSM:0}>group_delete group3
group3 Delete these groups [y/N]:y