create_config_onetimecompare
Creates a one-time comparison for the specified template and target type.
Format
There are three forms of the create_config_onetimecompare command:
Latest comparison: emcli create_config_onetimecompare -name="<check_name>" -template_name="<template_name>" -target_type="<target_type>" -compare_type="L" -ref_target_name="<target_name>" -dest_target_list="<comma_separated_list_of_target_names>" Saved comparison: emcli create_config_onetimecompare -name="<check_name>" -template_name="<template_name>" -target_type="<target_type>" -compare_type="S" -saved_config_name=<saved_config_name> -dest_target_list="<comma_separated_list_of_target_name>" | -dest_saved_config_list="<comma_separated_list_of_saved_configuration>" Consistency comparison emcli create_config_onetimecompare -name="<check_name>" -template_name="<template_name>" -target_type="<target_type>" -compare_type="C" -ref_target_name="<target_name>"
Options
-
name
Name of the one-time comparison.
-
template_name
Comparison Template name to be used for the one time comparison.
-
target_type
Target type of the one-time comparison.
-
compare_type
Comparison type:
-
L for latest comparison
-
S for saved comparison
-
C for consistency comparison
-
-
ref_target_name
Reference target name of the one-time comparison.
-
dest_target_list
Comma separated list of destination target names of the one-time comparison. Can be used with the dest_saved_config_list option when the comparison type is "S".
-
saved_config_name
Saved configuration name of the target.
-
dest_saved_config_list
Comma separated list of destination saved configuration names. Can be used with the dest_target_list option when the comparison type is "S".
Examples
Example 1
The following example creates a one-time comparison for the Latest compare type.
emcli create_config_onetimecompare -name="my_check" -template_name="my_template" -target_type="host" -compare_type="L" -ref_target_name="target_name" -dest_target_list="target1,target2,target3"
Example 2
The following example creates a one-time comparison for the Saved compare type.
emcli create_config_onetimecompare -name="my_check" -template_name="my_template" -target_type="host" -compare_type="S" -saved_config_name="saved_config" -dest_target_list="target1,target2,target3"