list_add_host_sessions
Lists all of the Add Host sessions.
Format
emcli list_add_host_sessions [-host_name="Host name"] [-session_name="Session name"] [-match_all] [-noheader] [-script | -format= [name:<pretty|script|csv>]; [column_separator:"column_sep_string"]; [row_separator:"row_sep_string"]; ] [ ] indicates that the parameter is optional
Options
-
host_name
Displays all of the Add Host sessions that the provided host is a part of.
-
session_name
Displays all of the sessions that match the session name provided.
-
match_all
Displays results that match all of the provided query criteria. By default, the results that match any of the provided query criteria are displayed.
-
noheader
Displays tabular output without column headers.
-
script
This option 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=
column_separator:"column_sep_string" column-separates the verb output by <column_sep_string>. Rows are separated by the newline character. -
row_separator:"row_sep_string" row-separates the verb output by <row_sep_string>. Rows are separated by the tab character.
-
Output Columns
Session Name, Deployment Type, Host, Initialization, Remote Prerequisite, Agent Deployment
Examples
Example 1
This example displays all of the Add Host sessions.
emcli list_add_host_sessions
Example 2
This example displays all of the Add Host sessions that the host 'example.com' was part of, AND whose session name contains the string 'Jan_15'.
emcli list_add_host_sessions -host_name=example.com -session_name=Jan_15 -match_all