run_config_history

Runs the configuration history saved search and displays the results.

Format

emcli run_config_history 
      -name="<Saved History Search Name>" 
      [-change_category="<change_category>"] 
      [-output_file="<Filename> "] 
      [-mode="<Display mode> "] 
      [-format=" <output_format>"] 
      [-no_header] 

Options

  • name

    Name of the configuration history saved search. Allowed values:

    • Exact name of the configuration history saved search.

  • change_category

    Displays the change category of Configuration changes, Relationship changes, or both.

    • C

    • R

    • B

    Default is B.

  • output_file

    Absolute path name of the file where the output or results are exported. If this is not present then the output is displayed in the console. If this is not present, then the output mode is based on the internal filter settings.

  • mode

    Display mode of the output. If this parameter is not specified, then the output mode is based on the internal filter settings.

    • Grouped

    • ShowAll

  • format

    Specifies the format. Allowed values:

    • format="name:pretty" - Prints out the output table in a readable format.

    • format="name:script" - Sets the default column separator to a tab and the default row separator to a new line.

    • format="name:csv" - Sets the column separator to a comma and the row separator to a new line.

    Default is format="name:pretty".

  • no_header

    Displays a tabular output without the column headers.

Examples

Example 1

The following command shows the result of the history configuration search named "Host History" and exports it to the file "/home/HostHistoryFile.out" in a tabular format.

emcli run_config_history 
      -name="Host History" 
      -output_file="/home/HostHistoryFile.out"

Example 2

The following command shows the result of the history configuration search named "Host History" in a ShowAll mode in a tabular mode without the headers.

emcli run_config_history 
      -name="Host History"
      -mode="ShowAll"
      -format="name:pretty"
      -no_header