installAgent

Install an agent

This command installs an agent over SSH.

Format

udclient [global-args...] [global-flags...]
  installAgent [JSON file]

Parameters

None.

Template

This command takes a JSON request string or file. Use the following template for the request:
{
  "host": "Host name or IP address of the system to 
  install the agent on",
  "installDir": "Installation directory for the agent",
  "javaHomePath": "Path to Java on the agent system",
  "name": "Name of the agent resource",
  "port": "SSH port of the agent system; the default port 
  is 22",
  "sshPassword": "SSH password for the agent system; leave 
  blank to use public key authentication instead",
  "sshUsername": "SSH user name to use to connect to the 
  agent system",
  "tempDirPath": "Path to directory to install from on the 
  agent system",
  "webProxyUri": "Web socket URI for the relay server (e.
  g. https://relay:20080).",
  "webUri": "Web socket URI for the Deploy server (e.g. 
  wss://server:7919)."
}

Example

udclient -username jsmith -password passwd 
  -weburl https://myserver.example.com:8443
  installAgent
  -name NewAgent
  -host agenthost.example.com
  -port 22
  -sshUsername root
  -sshPassword 12345
  -installDir /opt/install-dir/agent
  -javaHomePath /usr/lib/java
  -tempDirPath /tmp
  -serverHost host.example.com
  -serverPort 7918

Related REST command: Install an agent.