associate_cs_group_targets
Associates the specified compliance standard with the specified groups of targets for test mode or normal mode. Test mode is applicable only for drift and consistency compliance standards.
Format
emcli associate_cs_group_targets -cs_iname="<internal_name_of_standard>" -author="<author>" -version="<version>" (-group_names="<group_name_list>" | -group_names_file="<file_name>)"
Options
-
cs_iname
Internal name of the compliance standard.
-
author
Author of the compliance standard.
-
version
Version of the compliance standard.
-
group_names
Comma separated list of group names.
-
group_names_file
Name of the file that contains the group names. The group names can be either comma-separated values or in a file where the group names are listed on separate lines. Examples are:
-group_names_file=group1,group2,group3
-group_names_file="group.txt" where group.txt contains the following lines:
- group1
- group2
- group3
Note: Use either group_names or group_names_file.
Example
The following example creates associations for the second version of the security standard, authored by Jones, for the groups named tgt_grp1 and tgt_grp2.
emcli associate_cs_group_targets -cs_iname="security_standard" -author="Jones" -version="2" -group_names="tgt_grp1,tgt_grp2"