Install Discovery Agent on Linux
Complete the following procedure on Linux. Be sure that your Migration Hub home region has been set before you begin this procedure.
Note
If you are using a non-current Linux version, see Requirements on older Linux platforms.
To install AWS Application Discovery Agent in your data center
-
Sign in to your Linux-based server or VM and create a new directory to contain your agent components.
-
Switch to the new directory and download the installation script from either the command line or the console.
-
To download from the command line, run the following command.
curl -o ./aws-discovery-agent.tar.gz https://s3-us-west-2.amazonaws.com/aws-discovery-agent.us-west-2/linux/latest/aws-discovery-agent.tar.gz
-
To download from the Migration Hub console, do the following:
-
Open the console and go to the Discovery Tools
page. -
In the Discovery Agent box, choose Download agent, then choose Linux in the resultant list box. Your download begins immediately.
-
-
-
Verify the cryptographic signature of the installation package with the following three commands:
curl -o ./agent.sig https://s3.us-west-2.amazonaws.com/aws-discovery-agent.us-west-2/linux/latest/aws-discovery-agent.tar.gz.sig
curl -o ./discovery.gpg https://s3.us-west-2.amazonaws.com/aws-discovery-agent.us-west-2/linux/latest/discovery.gpg
gpg --no-default-keyring --keyring ./discovery.gpg --verify agent.sig aws-discovery-agent.tar.gz
The agent public key (
discovery.gpg
) fingerprint is7638 F24C 6717 F97C 4F1B 3BC0 5133 255E 4DF4 2DA2
. -
Extract from the tarball as shown following.
tar -xzf aws-discovery-agent.tar.gz
-
To install the agent, choose one of the following installation methods.
To... Do this... Install Discovery Agent
To install the agent, run the agent install command as shown in the following example. In the example, replace
your-home-region
with the name of your home region,aws-access-key-id
with your access key id, andaws-secret-access-key
with your secret access key.sudo bash install -r
your-home-region
-kaws-access-key-id
-saws-secret-access-key
By default, agents automatically download and apply updates as they become available.
We recommend using this default configuration.
However, if you don't want agents to download and apply updates automatically, include the
-u false
parameter when running the agent install command.(Optional) Install Discovery Agent and configure a non-transparent proxy
To configure a non-transparent proxy, add the following parameters to the agent install command:
-
-e The proxy password.
-
-f The proxy port number.
-
-g The proxy scheme.
-
-i The proxy username.
The following is an example of the agent install command using the non-transparent proxy parameters.
sudo bash install -r
your-home-region
-kaws-access-key-id
-saws-secret-access-key
-dmyproxy.mycompany.com
-emypassword
-fproxy-port-number
-g https -imyusername
If your proxy doesn't require authentication, then leave out the
-e
and-i
parameters.The example install command uses
https
, if your proxy uses HTTP, specifyhttp
for the-g
parameter value. -
-
If outbound connections from your network are restricted, you'll need to update your firewall settings. Agents require access to
arsenal
over TCP port 443. They don't require any inbound ports to be open.For example, if your home region is
eu-central-1
, you'd usehttps://arsenal-discovery.
eu-central-1
.amazonaws.com:443
Topics
Requirements on older Linux platforms
Some older Linux platforms such as SUSE 10, CentOS 5, and RHEL 5 are either at end of life or only minimally supported. These platforms can suffer from out-of-date cipher suites that prevent the agent update script from downloading installation packages.
- Curl
-
The Application Discovery agent requires
curl
for secure communications with the AWS server. Some old versions ofcurl
are not able to communicate securely with a modern web service.To use the version of
curl
included with the Application Discovery agent for all operations, run the installation script with the-c true
parameter. - Certificate Authority Bundle
-
Older Linux systems might have an out-of-date Certificate Authority (CA) bundle, which is critical to secure internet communication.
To use the CA bundle included with the Application Discovery agent for all operations, run the installation script with the
-b true
parameter.
These installation script options can be used together. In the following example command, both of the script parameters are passed to the installation script:
sudo bash install -r
your-home_region
-kaws-access-key-id
-saws-secret-access-key
-c true -b true
Manage the Discovery Agent Process on Linux
You can manage the behavior of the Discovery Agent at the system level using the
systemd
, Upstart
, or System V init
tools.
The following tabs outline the commands for the supported tasks in each of the
respective tools.
Uninstall Discovery Agent on Linux
This section describes how to uninstall Discovery Agent on Linux.
To uninstall an agent if you're using the yum package manager
-
Use the following command to uninstall an agent if using yum.
rpm -e --nodeps aws-discovery-agent
To uninstall an agent if you're using the apt-get package manager
-
Use the following command to uninstall an agent if using apt-get.
apt-get remove aws-discovery-agent:i386
To uninstall an agent if you're using the zypper package manager
-
Use the following command to uninstall an agent if using zypper.
zypper remove aws-discovery-agent
Troubleshooting Linux Discovery Agent
If you encounter problems while installing or using the Discovery Agent on Linux, consult the following guidance about logging and configuration. When helping to troubleshoot potential issues with the agent or its connection to the Application Discovery Service, AWS Support often requests these files.
-
Log files
Log files for Discovery Agent are located in the following directory.
/var/log/aws/discovery/
Log files are named to indicate whether they are generated by the main daemon, the automatic upgrader, or the installer.
-
Configuration files
Configuration files for Discovery Agent version 2.0.1617.0 or newer are located in the following directory.
/etc/opt/aws/discovery/
Configuration files for versions of Discovery Agent before 2.0.1617.0 are located in the following directory.
/var/opt/aws/discovery/
-
For instructions on how to remove older versions of the Discovery Agent, see Prerequisites for Discovery Agent.