run_config_search

Runs a configuration search using a specified search name.

Format

emcli run_config_search 
      -search_name="<Configuration Search UI Name>" 
      [-target_name="<target name>"]
      [-on_host="<hostname>"]
      [-memberof="<group name>"]
      [-output_file="<output file name>"]
      [-format=name:<pretty|script|csv>;
      [column_separator:"column_sep_string"];
      [row_separator:"row_sep_string"];  

[ ]  indicates that the parameter is optional. 

Options

  • search_name

    A display name for the configuration search.

  • target_name

    Name of the target. It can be a full value or a pattern match using "%".

  • on_host

    Name of the host where the target is running. It can be a full value or a pattern match using "%".

  • memberof

    Name of the file with an absolute path where the output or results will be exported. If this parameter is not specified then the output is displayed in the console.

  • output_file

    Name of the file with an absolute path where the output or results will be exported. If this is not present then the output is displayed in the console.

  • 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 may be specified to change these defaults.

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

      format="name:script;column_separator:<column_sep_string>" column-separates the verb output by <column_sep_string>. Rows are separated by the newline character.

    • format="name:script;column_separator:<column_sep_string>" column-separates the verb output by <column_sep_string>. Rows are separated by the newline character.

    • format="name:script;row_separator:<row_sep_string>" row-separates the verb output by <row_sep_string>. Columns are separated by the tab character.

  • column_separator

    Specifies the column separator.

  • row_separator

    Specifies the row separator.

Examples

Example 1

The following command shows the results of the search named "Search File Systems on Hosts" where the target name starts with "oracle":

emcli run_config_search 
      -search_name="Search File Systems on Hosts" 
      -target_name="oracle%"  

Example 2

The following command shows the results of the search named "Search File Systems on Hosts" where the target name starts with "oracle" and the host name containing the pattern "host" are members of the group "group1":

emcli run_config_search 
      -search_name="Search File Systems on Hosts" 
      -target_name="oracle%" 
      -on_host="%host%" 
      -memberof="group1"