Skip to main content

Adding Agentless Hosts

This section provides instructions for adding agentless hosts via the GUI, or the command-line client.

To add agentless hosts via the GUI:

  1. On the Hosts page, click Add Hosts. Under the Select agent type section, ensure Agentless is selected.

  2. Provide the information for connecting to the host(s). At minimum, this includes:

    • Target-host addresses (either IP or FQDN).
    • Management-account credentials

    To add One host or hosts from a Range of IP addresses, provide target-host information directly in the GUI. When adding Multiple hosts, you may provide target-host information directly in the GUI, or from a .csv file. The format of the host-information .csv is described later in this section.

Hosts can also be added using the command-line client, in one of the following ways:

  • One host: Add one host to the managed environment using host information provided in the command arguments.

  • Multiple hosts: Add one or more hosts using host information from a file.

For example, to add a single host:

$ ssh-mgr-client add-hosts -d \
hostname=hostname,username=username,password=password

As another example, to add multiple hosts, specify host information in a file. Declare the names of the data fields on the first row, then declare the hosts on subsequent rows:

hostname,username,password
sap1.example.com,username,password
sap2.example.com,username,password
dbeast.example.com,username,password
192.0.2.100,username,password
logistics.example.com,username,password
192.0.2.124,username,password

Then specify the file as input for the add-hosts command:

$ ssh-mgr-client add-hosts -f /path/to/host_information.csv
tip

A comprehensive list of supported fields is available in the add-hosts help:

$ ssh-mgr-client add-hosts help

In some situations, Key Manager may fail to deploy a host to the monitored state. In such situations, the host is left in the available state. You can display all such instances with a command like the following:

$ ssh-mgr-client list-hosts -F "state=available" -H

You can then attempt to redeploy the hosts with:

$ ssh-mgr-client deploy-hosts -F "state=available"

For detailed documentation about the relevant command-line client commands, see the following sections: