get_config_templates

Gets all of the comparison templates.

Format

emcli get_config_templates
      [-target_type="oracle_database"]
      [-template_name="host_template"]
      [-owner="SYSMAN"]
      [-list_default_templates="yes"]
      [-list_oracle_provided_templates="no"]
      [-format="[name:<pretty|script|csv>]; 
            [column_separator:"column_sep_string"];
            [row_separator:"row_sep_string"]"] 
      [-noheader]
 
[ ]  indicates that the parameter is optional

Options

  • target_type

    Target type on which the comparison template is created. The value should be the internal name. To get the internal name, execute the following EM CLI command:

    emcli get_target_types
    
  • template_name

    Name of the template, which can be a full value or a pattern match using "%". The value should be an internal name.

  • owner

    Owner of the comparison template, which can be a full value or a pattern match using "%".

  • list_default_templates

    Valid inputs are "yes" and "no". If the value of this option is "yes", the result will contain default templates. If the value of this option is "no", the result will not contain default templates. If this option is not specified, the result shows all templates.

  • list_oracle_provided_templates

    Valid inputs are "yes" and "no". If this option is provided, the result will be only templates provided by Oracle. If the value of this option is "yes", the result contains Oracle-provided templates. If the value of this option is "no", the result will not contain Oracle-provided templates. If this option is not specified, the result shows all templates.

  • format

    Format specification (default is -format="name:pretty").

    • format="name:pretty" prints the output table in a readable format not intended to be parsed by scripts.

    • format="name:script" sets the default column separator to a tab, and the default row separator to a newline. The column and row separator strings can be specified to change these defaults.

    • format="name:csv" sets the column separator to a comma and the row separator to a newline.

  • noheader

    Displays tabular output without column headers.

Output columns:

  • Template IDTemplate NameTarget TypeDefault — Displays "Yes" if the template is the default, "No" otherwiseOracle Provided — Displays "Yes" if the template is provided by Oracle, "No" otherwiseOwnerSaved TimeTime ZoneDescription

Examples

Example 1

This example shows all of the comparison templates created by the user name "Test Admin" that are created on target type "Test Database" and having the template_name as "Test Database Template".

emcli get_config_templates -target_type="oracle_database" -template_name="Test Database Template" -owner="Test Admin"

Example 2

This example shows all of the comparison templates provided by Oracle.

emcli get_config_templates -list_oracle_provided_templates="yes"