list_assoc
Lists associations between the specified source and destination targets.
Format
Standard Mode
emcli list_assoc -source="target_name:target_type" -dest="target_name:target_type"[-subseparator="subseparator:attribute_ name:character"] [-noheader] [-script [-format="[name:<pretty|script|csv>];[column_separator: "column_sep_string"];[row_separator:"row_sep_string"]"]
Interactive (Script) Mode
list_assoc( source="target_name:target_type" ,dest="target_name:target_type" [,subseparator="subseparator:attribute_name:character"] [,noheader=True/False] [,script=True/False] [,format="[name:<pretty|script|csv>];[column_separator: "column_sep_string"];[row_separator:"row_sep_string"]"] ) [ ] indicates that the parameter is optional.
Options
-
source
Source target.
-
dest
Destination target.
-
subseparator
By default, multi-value input attributes use a colon (:) as a subseparator. Specifying this option overrides the default subseparator value.
Example:
subseparator="<
attribute_name
=
sep_char
>"
whereattribute_name
is the name of the attribute for which you want to override the separator character, andsep_char
is the new subseparator character.Example:separator="att=#"
-
noheader
Displays the output in tabular output without column headers.
-
script
Prints the output in a format that can be used in scripting.
-
format
Specifies how the output is formatted. The default value is "name:pretty", which prints the output table in a readable format not intended to be parsed by scripts. Other format options include:
-
format="name:script" Sets the default column separator to a tab and the default row separator to a newline in the output. You can override the column and row separator strings with your own values.
-
format="name:script;column_separator:<column_sep_string>" Causes the verb output to be column-separated by <column_sep_string>. Rows are separated by the newline character.
-
format="name:script;row_separator:<row_sep_string>" Causes the verb output to be row-separated by <row_sep_string>.
-
format="name:script;column_separator:<column_sep_string>;row_separator:<row_sep_string>"
-
Causes the verb output to be column-separated by <column_sep_string> and row- separated by <row_sep_string>.
-
format="name:csv" Sets the default column separator to a comma and the default row separator to a newline in the output.
-
Output
Exit Codes
0 indicates that the verb processing was successful.
Non-zero values indicate that the verb processing was unsuccessful.
Example
This example lists all associations between the source target "abc_cluster:cluster" and the destination target "def.oracle.com:host":
emcli list_assoc -source="abc_cluster:cluster" -dest="def.oracle.com:host"