create_compare_check
Creates a comparison check for the specified template and target type.
Format
There are three forms of the EM CLI create_compare_check command:
Latest comparison:
emcli create_compare_check
-name="<check_name>"
-template="<template_name>"
-target_type="<target_type>"
-compare_type="L<ATEST>"
-target_name="<target_name>"
Saved comparison:
emcli create_compare_check
-name="<check_name>"
-template="<template_name>"
-target_type="<target_type>"
-compare_type="S<AVED>"
-saved_guid="<saved_guid>"
Consistency comparison:
emcli create_compare_check
-name="<check_name>"
-template="<template_name>"
-target_type="<target_type>"
-compare_type="C<ONSISTENCY>"Options
-
name
Name of the comparison check being created.
-
template
Name of the template being used as the baseline for the comparison.
-
target_type
Target type associated with the template.
-
compare_type
Type of comparison. Values are:
-
L or LATEST
-
S or SAVED
-
C or CONSISTENCY
-
-
target_name
Name of the target.
-
saved_guid
Name of the saved comparison.
Example
The following example creates the mycheck1 comparison check using the 'Database Instance Template'. The check is against the Oracle database target my_target. The comparison type is L for latest.
emcli create_compare_check
-name="mycheck1"
-template="Database Instance Template"
-target_type="oracle_database"
-compare_type="L"
-target_name="my_target"