get_blackout_targets
Lists targets for a specified blackout.
Format
emcli get_blackout_targets
-name=<name>
[-createdby=<blackout_creator>]
[-noheader]
[-script | -format=
[name:<pretty|script|csv>];
[column_separator:<column_sep_string>];
[row_separator:<row_sep_string>];
]
[ ] indicates that the parameter is optionalOptions
-
name
Name of the blackout.
-
createdby
Enterprise Manager user who created the blackout. The default is the current user. For listing details of a blackout created using emctl, use -createdby="<SYSTEM>".
-
noheader
Displays tabular information without column headers.
-
script
This is equivalent to
-format="name:script". -
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. -
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.
-
Output Columns
Target Name, Target Type, Status, Status ID
Examples
Example 1
This example lists targets in the blackout blackout1 the current user created.
emcli get_blackout_targets -name=blackout1
Example 2
This example lists targets in the blackout blackout1 that user joe created.
emcli get_blackout_targets -name=blackout1 -createdby=joe