register_hybridgateway_agents
Takes a list of agents and marks each agent as a hybrid gateway.
Format
emcli register_hybridgateway_agent -hybridgateway_agent_list="hybridgateway_agent_list"
Options
-
hybridgateway_agent_list
List of agents to be registered as hybrid gateway agents. The agents must be separated by a space.
-
named_credential
Named credential used to make SSH connection to cloud host, it is used for the network check.
-
named_credential_owner
Owner of named credential.
-
cloud_hostname
Cloud hostname where you want to install hybrid agent.
-
ignore_central_agent_check
Flag used to skip the central agent check for the specified list of agents.
-
ignore_network_check
Flag used to skip the network check for the specified list of agents. This flag makes the following parameters optional:- -named_credential
- -named_credential_owner
- -cloud_hostname
-
ssh_port
Specified the SSH port used to check the network. Default: 22
-
timeout
Specifies the amount of time (in seconds) the network check process will wait for a connection. Default: 5
Exit Codes
0 if successful. A non-zero value indicates that verb processing was unsuccessful.
Example
The following example registers agent1 and agent2 as hybrid gateways.
emcli register_hybridgateway_agent -hybridgateway_agent_list="agent1 agent2"
Example
The following example registers agent1 and agent2 as hybrid gateways while using -ignore_network_check and -ignore_central_agent_check.
emcli register_hybridgateway_agent -hybridgateway_agent_list="agent1 agent2" -ignore_network_check -ignore_central_agent_check
Example
The following example registers agent1 and agent2 as hybrid gateways while using -ignore_central_agent_check.
emcli register_hybridgateway_agent -hybridgateway_agent_list="agent1 agent2" -named_credential="named_credential" -named_credential_owner="credential_owner" -cloud_hostname="cloud_hostname" -ignore_central_agent_check