Appdiscovery Ug
Appdiscovery Ug
Discovery Service
User Guide
AWS Application Discovery Service User Guide
Table of Contents
What Is AWS Application Discovery Service? .......................................................................................... 1
Components .............................................................................................................................. 2
Arsenal ............................................................................................................................. 2
Agentless Discovery Components ......................................................................................... 2
AWS Application Discovery Agent ......................................................................................... 6
Processing and Database Components .................................................................................. 7
Prerequisites .............................................................................................................................. 8
Related Services and Partner Tools ............................................................................................... 8
Accessing Application Discovery Service ........................................................................................ 8
Limitations ................................................................................................................................ 9
Setting Up ....................................................................................................................................... 10
Request Access ......................................................................................................................... 10
Create and Configure an IAM User .............................................................................................. 10
Attach Required IAM User Policies ...................................................................................... 11
Create a Key Pair ............................................................................................................. 14
Set Up Agentless Discovery ....................................................................................................... 14
Deploying the AWS Agentless Discovery Connector Virtual Appliance ...................................... 14
Configuring the AWS Agentless Discovery Connector ............................................................ 15
Set Up Discovery Agents ........................................................................................................... 15
Before You Begin ............................................................................................................. 15
Installing the AWS Application Discovery Agent .................................................................... 16
Console tutorial ............................................................................................................................... 19
Step 1: Working with the Dashboard .......................................................................................... 19
Step 2: Working with the Data Collection Page ............................................................................ 19
Step 3: Working with the Servers Page ....................................................................................... 21
Step 4: Working with the Server Network Diagram ....................................................................... 23
Step 5: Working with the Applications Page ................................................................................ 25
Troubleshooting ............................................................................................................................... 27
General Troubleshooting Tools ................................................................................................... 27
Inspect the AWSApplication Discovery Agent Configuration ................................................... 27
Run the AWS Application Discovery Agent in Offline Mode .................................................... 27
Enable Logging for the AWS Application Discovery Agent ...................................................... 28
Troubleshooting the AWS Application Discovery Agent Data .......................................................... 29
Troubleshooting AWS Application Discovery Agent Configuration ................................................... 29
AWS Application Discovery Agent Fails to Register ................................................................ 29
Failure to Create AWS Application Discovery Agent Credentials for Windows Server ................... 30
Document History ............................................................................................................................ 31
AWS Glossary .................................................................................................................................. 32
iii
AWS Application Discovery Service User Guide
AWS Application Discovery Service helps you plan application migration projects by automatically
identifying servers, virtual machines (VMs), software, and software dependencies running in your on-
premises data centers. Application Discovery Service also collects application performance data, which
can help you assess the outcome of your migration. The data collected by Application Discovery Service
is securely retained in an AWS-hosted and managed database in the cloud. You can export the data as a
CSV or XML file into your preferred visualization tool or cloud-migration solution to plan your migration.
For more information, see AWS Application Discovery Service FAQ.
• Agentless discovery mode is recommended for environments that use VMware vCenter Server.
This mode doesn't require you to install an agent on each host. Agentless discovery gathers server
information regardless of the operating systems, which minimizes the time required for initial on-
premises infrastructure assessment. Agentless discovery doesn't collect information about software
and software dependencies. It also doesn't work in non-VMware environments.
• Agent-based discovery mode collects a richer set of data than agentless discovery by using Amazon
software, the AWS Application Discovery Agent, which you install on one or more hosts in your data
center. The agent captures infrastructure and application information, including an inventory of
installed software applications, system and process performance, resource utilization, and network
dependencies between workloads. The information collected by agents is secured at rest and in transit
to the Application Discovery Service database in the cloud.
We recommend that you use agent-based discovery for non-VMware environments and to collect
information about software and software dependencies. You can also run agent-based and agentless
discovery simultaneously. Use agentless discovery to quickly complete the initial infrastructure
assessment and then install agents on select hosts.
Application Discovery Service integrates with application discovery solutions from AWS Partner Network
(APN) partners. Third-party application discovery tools can query Application Discovery Service and
write to the Application Discovery Service database using a public API. You can then import the data into
either a visualization tool or cloud-migration solution.
Important
Application Discovery Service doesn't gather sensitive information. All data is handled according
to the AWS Privacy Policy. You can operate Application Discovery Service offline to inspect
collected data before it is shared with the service.
1
AWS Application Discovery Service User Guide
Components
For more information about the data that Application Discovery Service collects, see AWS Application
Discovery Service Components (p. 2).
Contents
• Arsenal (p. 2)
• Agentless Discovery Components (p. 2)
• AWS Application Discovery Agent (p. 6)
• Processing and Database Components (p. 7)
Arsenal
Arsenal is an agent service managed and hosted by AWS that sends data from AWS Application Discovery
Agents and the AWS Agentless Discovery Connector to Application Discovery Service in the cloud. The
word arsenal is included in some URLs and IAM policies.
Timestamp Guaranteed
OSType If available
SystemRelease If available
MoRefID Guaranteed
2
AWS Application Discovery Service User Guide
Agentless Discovery Components
instanceUuid If available
FolderPath Guaranteed
Name Guaranteed
Hostname If available
Hypervisor Guaranteed
Manufacturer Guaranteed
ToolsStatus If available
Datacenter Guaranteed
Type Guaranteed
(Host or VM)
vCenterId Guaranteed
smBiosId If available
MacAddress Guaranteed
IpAddress If available
portGroupName If available
3
AWS Application Discovery Service User Guide
Agentless Discovery Components
portGroupId If available
virtualSwitchName If available
Name If available
CPUType If available
Timestamp Guaranteed
MoRefID Guaranteed
Type Guaranteed
(Host or VM)
vCenterId Guaranteed
smBiosId If available
PowerState Guaranteed
MemorySize If available
MemoryReservation If available
ActiveRAM If available
MaxActiveRam If available
NetworkCards If available
Name If available
4
AWS Application Discovery Service User Guide
Agentless Discovery Components
BytesReadPerSecond If available
BytesWrittenPerSecond If available
TotalUsage If available
MaxTotalUsage If available
Disks If available
DeviceID If available
Name If available
Capacity If available
scsi If available
BytesReadPerSecond If available
BytesWrittenPerSecond If available
ReadOpsPerSecond If available
WriteOpsPerSecond If available
Cpus If available
Name If available
UsagePct If available
5
AWS Application Discovery Service User Guide
AWS Application Discovery Agent
UsageMHz If available
numCores If available
speedMHz If available
reservationMHz If available
Agents collect information in the following categories and send it to Application Discovery Service using
Secure Sockets Layer (SSL) encryption:
After you install agents, you manage them using the Application Discovery Service API. The API includes
actions to start and stop agents. You can also retrieve information about agents, including the host name
where agents reside, their health, and the version number of each agent. For more information, see the
Application Discovery Service API Reference.
Note
The AWS Application Discovery Agent is a component of Amazon Inspector. The word inspector
is associated with the AWS agent download site and installation package.
6
AWS Application Discovery Service User Guide
Processing and Database Components
Data in the Discovery database is encrypted at rest. Encryption keys for the data are managed using the
AWS KMS.
Note
The AWS Discovery database is not a general purpose, enterprise configuration management
database (CMDB). You can't save snapshots of discovered resources or track resource changes.
The service does not alert you when resource configurations change. Similarly, though the
service does collect performance data, it is not a general purpose, health monitoring solution.
When you use Application Discovery Service, you can specify filters and query specific configuration
items in the AWS Discovery database. The service supports server, process, and connection configuration
items. This means you can specify a value for the following keys and query your IT assets.
Note
Server Performance, shown below, is an attribute of Server.
transportProtocol avgDiskReadsPerSecondInKB
count totalDiskFreeSizeInKB
avgDiskWritesPerSecondInKB
avgDiskReadIOPS
avgDiskWriteIOPS
maxDiskReadsPerSecondInKB
maxDiskWritesPerSecondInKB
maxDiskReadIOPS
maxDiskWriteIOPS
avgNetworkReadsPerSecondInKB
avgNetworkWritesPerSecondInKB
maxNetworkReadsPerSecondInKB
maxNetworkWritesPerSecondInKB
7
AWS Application Discovery Service User Guide
Prerequisites
Prerequisites
Agentless discovery is compatible only with VMware vCenter Server.
Linux
• Ubuntu 14
• Amazon Linux 2012.03 or 2015.03
• Centos 6 or 7
• Redhat 6 or 7
Microsoft Windows
Firewall Configuration
After completing discovery of your virtualized inventory, use AWS Server Migration Service to perform
an incremental, automated migration of your VMs to the Amazon EC2 cloud. For information, see the
AWS SMS User Guide.
You can use the AWS VM Import/Export tools to import VM images manually from your local
virtualization environment into AWS and convert them into ready-to-use Amazon EC2 Amazon Machine
Images (AMIs) or instances. For more information, see Importing a VM as an Instance Using VM Import/
Export.
8
AWS Application Discovery Service User Guide
Limitations
The AWS CLI provides commands for a broad set of AWS products. It is supported on Windows, Mac,
and Linux. For more information, see AWS Command Line Interface User Guide.
Application Discovery Service API
You can use the Application Discovery Service API to manage software agents in your data center,
query discovered assets, categorize discovered assets using tags, and export data. Application
Discovery Service uses JavaScript Object Notation format (JSON) to send and receive formatted
data. JSON presents data in a hierarchy so that both data values and data structure are conveyed
simultaneously. For more information, see the Application Discovery Service API Reference.
AWS SDKs and tools
If you prefer to build applications using language-specific APIs instead of submitting a request over
HTTP or HTTPS, AWS provides libraries, sample code, tutorials, and other resources for software
developers. These libraries provide basic functions that automate tasks such as cryptographically
signing your requests, retrying requests, and handling error responses, making it is easier for you to
get started. For more information, see Tools for Amazon Web Services.
Limitations
Application Discovery Service has the following limitations for agentless and agent-based discovery.
Agentless discovery
The service limits you to 10 GB of data per day. If you reach this limit, the service won't process any more
data for that day. If you frequently reach this limit, contact AWS Support about extending the limit.
Agent-based discovery
• The AWS Application Discovery Agent does not support Linux environments with non-standard
Ethernet naming conventions. The system requires an eth0 adapter.
• The service enforces the following maximum limits:
• 250 active agents (agents that are collecting and sending data to Application Discovery Service in
the cloud).
• 10,000 inactive agents (agents that are responsive but not collecting data).
• 10 GB of data per day (collected by all agents associated with a given AWS account).
• 90 days of data storage (after which the data is purged).
9
AWS Application Discovery Service User Guide
Request Access
This section describes the steps required to set up Application Discovery Service.
Note
You need to provide your AWS account when you request access to Application Discovery
Service. If you don't have an account, open https://aws.amazon.com/, choose Create an AWS
Account, and follow the instructions provided.
Contents
• Request Access (p. 10)
• Create and Configure an IAM User (p. 10)
• Set Up Agentless Discovery (p. 14)
• Set Up AWS Application Discovery Agents (p. 15)
Request Access
Before you can use AWS Application Discovery Service, you must create an AWS account and configure
access permissions for that account. AWS partners and customers must also submit a request to be
whitelistedin order to gain access to Application Discovery Service. When we receive the request, we send
you detailed information about how to get started with the service.
10
AWS Application Discovery Service User Guide
Attach Required IAM User Policies
For more information about setting up an IAM administrator, see Creating Your First IAM Admin User and
Group. For information about IAM, see What Is IAM?
AWSApplicationDiscoveryServiceFullAccess
Grants the IAM user account access to the Application Discovery Service API. With this policy, the
user can configure Application Discovery Service, start and stop agents, start and stop agentless
discovery, and query data from the AWS Discovery Service database. This policy also grants the user
access to Arsenal. Arsenal is an agent service managed and hosted by AWS that forwards data to
Application Discovery Service in the cloud.
AWSApplicationDiscoveryAgentAccess
Grants the AWS Application Discovery Agent access to register and communicate with Application
Discovery Service. This policy needs to be attached to any user whose credentials are to be used by
an AWS Application Discovery Agent.
AWSAgentlessDiscoveryService
Grants the AWS Agentless Discovery Connector running in your VMware vCenter Server access to
register, communicate with, and share connector health metrics with Application Discovery Service.
This policy needs to be attached to any user whose credentials are to be used by the connector.
Note
The AWSAgentlessDiscoveryService policy uses the following API actions:
awsconnector:RegisterConnector and awsconnector:GetConnectorHealth. For more
information , see API Actions of the AWSAgentlessDiscoveryService IAM Policy (p. 13).
Each of the Application Discovery Service managed policies is shown here so that you can customize
them as needed.
AWSApplicationDiscoveryServiceFullAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
“discovery:*"
],
"Resource": "*"
}
]
}
AWSApplicationDiscoveryAgentAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
11
AWS Application Discovery Service User Guide
Attach Required IAM User Policies
"Action": [
"arsenal:RegisterOnPremisesAgent"
],
"Resource": "*"
}
]
}
AWSAgentlessDiscoveryService
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"awsconnector:RegisterConnector",
"awsconnector:GetConnectorHealth"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:GetUser",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::connector-platform-upgrade-info/*",
"arn:aws:s3:::connector-platform-upgrade-info",
"arn:aws:s3:::connector-platform-upgrade-bundles/*",
"arn:aws:s3:::connector-platform-upgrade-bundles",
"arn:aws:s3:::connector-platform-release-notes/*",
"arn:aws:s3:::connector-platform-release-notes",
"arn:aws:s3:::prod.agentless.discovery.connector.upgrade/*",
"arn:aws:s3:::prod.agentless.discovery.connector.upgrade"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::import-to-ec2-connector-debug-logs/*"
]
},
{
"Effect": "Allow",
"Action": [
"SNS:Publish"
],
"Resource": "arn:aws:sns:*:*:metrics-sns-topic-for-*"
},
{
"Sid": "Discovery",
"Effect": "Allow",
"Action": [
"Discovery:*"
12
AWS Application Discovery Service User Guide
Attach Required IAM User Policies
],
"Resource": "*"
},
{
"Sid": "arsenal",
"Effect": "Allow",
"Action": [
"arsenal:RegisterOnPremisesAgent"
],
"Resource": "*"
}
]
}
<operation name="RegisterConnector">
<input target="RegisterConnectorRequest" /> Request type for RegisterConnector API.
<output target="RegisterConnectorResponse" /> Response type for RegisterConnector API.
<member name="snsTopicArn" target="String" /> Metrics SNS topic arn that is created/
whitelisted for caller.
<error target="AuthenticationFailureException" /> This exception is thrown if the
credentials passed in the request could not be validated or user is not authorized to
perform the operation.
<error target="ServerInternalErrorException" /> This exception is thrown if there is
erroneous logic in the service. It also includes all service dependency exceptions.
<error target="ServiceUnavailableException" /> The request has failed due to a
temporary failure of the server.
<error target="ServerThrottleException" /> This exception is thrown if maximum number
of request(for a given API) from an IAM user has been reached.
<error target="InvalidParameterException" /> The request is missing required
parameter(s) or has invalid parameter(s).
</operation>
<operation name="GetConnectorHealth">
<input target="GetConnectorHealthRequest" /> Request type for GetConnectorHealth API.
<member name="connectorId" target="String" /> Connector Id that will be used to verify
identity of caller.
<output target="GetConnectorHealthResponse" /> Response type for GetConnectorHealth
API.
<member name="serviceHealthList" target="ServiceHealthList" /> Contains all services'
health information.
<member target="ServiceHealth" /> The object that contains all health information for a
given service.
<member name="serviceName" target="String" /> The name of the service which was using
connector health metrics publisher.
<member name="healthList" target="HealthList" /> The list of health for the given
service.
<member target="Health" /> The object that represent a unique health metric that was
published from the connector.
<error target="AuthenticationFailureException" /> This exception is thrown if there is
erroneous logic in the service. It also includes all service dependency exceptions.
<error target="ServiceUnavailableException" /> The request has failed due to a
temporary failure of the server.
<error target="ServerThrottleException" /> This exception is thrown if maximum number
of request(for a given API) from an IAM user has been reached.
13
AWS Application Discovery Service User Guide
Create a Key Pair
<structure name="Health"> The object that represent a unique health metric that was
published from the connector.
<member name="name" target="String" /> The name of the health that corresponds to
"metric" field in Connector Metrics Publisher. The value of name is not user visible label
that will show in Connector dashboard.
<member name="value" target="String" /> The value for the health metric. It's a json
that contains more information about how a health will display in connector dashboard.
<member name="lastChecked" target="TimeStamp" /> The publish time for the last received
metric.
</structure>
If you haven't created a key pair already, you can create one using the Amazon EC2 console. Note that if
you plan to launch instances in multiple regions, you'll need to create a key pair in each region. For more
information about regions, see Regions and Availability Zones (Linux).
14
AWS Application Discovery Service User Guide
Configuring the AWS Agentless Discovery Connector
1. In a web browser, type the following URL in the address bar: https://ip_address/, where ip_address is
the IP address of the connector console that you saved earlier.
2. In Step 1: License agreement, read and accept the agreement and choose Next.
3. In Step 2: Create a password, type a strong password for access to the connector and choose Next.
4. In Step 3: Network information, read the information provided and configure network settings.
5. In Step 4: Log uploads and upgrades, select the right options and choose Next.
6. In Step 5: Discovery Connector setup, choose Configure vCenter credentials.
a. For vCenter IP address, type the IP address of your VMware vCenter Server host.
b. For vCenter username, type the name of a local or domain user that the connector uses
to communicate with vCenter. For domain users, use the form domain\username or
username@domain.
c. For vCenter password, type the user password.
d. Choose Ignore security certificate to bypass SSL certificate validation with vCenter. Choose
Save.
7. Choose Configure AWS credentials and type the credentials for the IAM user who is assigned
the AWSAgentlessDiscoveryService IAM policy that you created in Attach Required IAM User
Policies (p. 11). Choose Save.
8. Choose Configure where to publish data and select the publishing options. Choose Save.
Note
After you complete this initial setup, you can access connector settings by using SSH and the
connector IP address: root@Connector_IP_address. The default user name is ec2-user and the
default password is ec2pass. We strongly encourage you to change the value of the default user
name and password.
After agentless-discovery setup is complete, you can use either the Application Discovery Service console
or the Application Discovery Service API to start collecting data, manage the service, tag and query
configuration items, and export data. You can export data as a CSV file to an Amazon S3 bucket or an
application that enables you to view and evaluate the data. For information about using the console, see
Tutorial: Using the AWS Application Discovery Service Console. For information about using the API, see
the Application Discovery Service API Reference.
15
AWS Application Discovery Service User Guide
Installing the AWS Application Discovery Agent
If you installed a Linux preview version of the AWS Application Discovery Agent, you must uninstall it or
you won't be able to install the current version. This does not apply to the agent for Windows. Use the
following command to download the removal script to your Linux instance or server:
curl -O https://d1wk0tztpsntt1.cloudfront.net/linux/latest/remove_preview_agent
sudo ./remove_preview_agent
Topics
• On-Premises Installation for Microsoft Windows (p. 16)
• On-Premises Installation for Linux (p. 17)
DiscoveryAgentInstall.exe REGION=us-west-2
Note
The AWS Application Discovery Agent automatically downloads and applies updates as they
become available. If you don't want agents to download and apply updates automatically,
then run the following command when you install the agent:
16
AWS Application Discovery Service User Guide
Installing the AWS Application Discovery Agent
[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Note
The IAM policy attached to your AWS account must have access to Application Discovery
Service resources. For more information, see Attach Required IAM User Policies (p. 11).
5. Update your firewall settings. The AWS Application Discovery Agent requires outbound access to
arsenal.us-west-2.amazonaws.com:443. It does not require any inbound ports to be open. Agents
also work with transparent web proxies.
1. On the EC2 instance where you installed the AWS Application Discovery Agent, open a command
prompt with administrator permissions and navigate to C:/Program Files/Amazon Web Services/Aws
Agent.
2. Run the following command:
AWSAgentStatus.exe
This command returns the status of the currently running agent, or an error stating that the agent
cannot be contacted.
To start or stop an AWS Application Discovery Agent, use Windows Services Manager to start or stop
the AWS Agent service and the AWS Agent Updater service. To uninstall an agent, use Add/Remove
Programs to remove these services.
[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Note
The IAM policy attached to your AWS account must have access to Application Discovery
Service resources. For more information, see Attach Required IAM User Policies (p. 11).
3. Download the agent installer to a host server or VM.
4. Open the /opt/aws/awsagent/etc/agent.cfg file and verify that the endpoint is (arsenal.us-
west-2.amazonaws.com) and the region is (us-west-2).
5. Run the following command to install the agent in the us-west-2 region:
17
AWS Application Discovery Service User Guide
Installing the AWS Application Discovery Agent
Note
Agents automatically download and apply updates as they become available. If you
don't want agents to download and apply updates automatically, then run the following
command when you install the agent:
6. After the installation completes, use the following command to remove the agent installation script:
rm install
7. Update your firewall settings. The AWS Application Discovery Agent requires outbound access to
arsenal.us-west-2.amazonaws.com:443. It does not require any inbound ports to be open. Agents
also work with transparent web proxies.
The following table lists commands that you can use to manage or uninstall agents.
Task Command
After agent installation is complete, you can use the Application Discovery Service console or the
Application Discovery Service API to manage your discovery agents, tag and query configuration items,
and export data. You can export data as a CSV file to an Amazon S3 bucket or an application that
enables you to view and evaluate the data. For information about using the console, see Tutorial: Using
the AWS Application Discovery Service Console. For information about using the API, see the Application
Discovery Service API Reference.
18
AWS Application Discovery Service User Guide
Step 1: Working with the Dashboard
This tutorial provides console-based examples of workflows involved in using the AWS Application
Discovery Service. Using Application Discovery Service, you can efficiently plan the migration of
applications in your virtualized on-premises environment to Amazon EC2.
Note
Before beginning this tutorial, confirm that your AWS account has been whitelisted for access
to the Application Discovery Service console. To request access, complete the form provided at
How to Start.
Contents
• Step 1: Working with the Dashboard (p. 19)
• Step 2: Working with the Data Collection Page (p. 19)
• Step 3: Working with the Servers Page (p. 21)
• Step 4: Working with the Server Network Diagram (p. 23)
• Step 5: Working with the Applications Page (p. 25)
Note
You must explicitly start data collection for discovery to begin.
19
AWS Application Discovery Service User Guide
Step 2: Working with the Data Collection Page
This topic describes how to carry out typical data-related management tasks.
The following procedure focuses on discovery agents, but the steps for agentless discovery connectors
are nearly identical.
• Collection status
• Health
• Host name
• IP address
• Agent ID
4. Select one of the available operators:
• ==
• !=
5. Select a field value. These vary based on the filter selected earlier. For Health, you see a menu with
the following possible values, shown in part here:
• HEALTHY
• RUNNING
• UNHEALTHY
• UNKNOWN
• BLACKLISTED
• SHUTDOWN
The table now displays only the entries that match your filter criterion. You can also define multiple
filters, delete filters, and bypass the filter menus by typing into the filter bar directly. For more
information about agent health status and collection status, see Querying Discovered Configuration
Items in the Application Discovery Service API Reference.
The collection states encountered in the procedures below have the following meanings:
• STARTED—The collection tool has started collecting and sending data to Discovery service.
• START_SCHEDULED—The data collection has been scheduled to be started. The next time collection
tool contacts AWS, it will start sending data to the Discovery Service and the collection status will
change to STARTED.
• STOPPED—The collection tool has stopped sending data to the Discovery service.
• STOP_SCHEDULED—The data collection has been scheduled to be stopped. The next time collection
tool contacts AWS, it will stop sending data to the Discovery service and the Collection status will
change to STOPPED.
20
AWS Application Discovery Service User Guide
Step 3: Working with the Servers Page
3. Choose Start data collection. In the Collection status field, note that the status of each of your
selected collection tools changes to either START_SCHEDULED or STARTED. The next time each
of your selected collection tools contacts AWS, it collects and sends data to Application Discovery
Service.
The following procedures describe how to carry out typical server-related management tasks.
21
AWS Application Discovery Service User Guide
Step 3: Working with the Servers Page
• ==
• !=
• Contains
• Not Contains
4. Supply a value or choose from values offered by the menu. These vary based on the filter that you
selected earlier. For Type, you see a menu with values such as the following:
• EC2
• OTHER
• VMWARE_VM
• VMWARE_HOST
• VMWARE_VM_TEMPLATE
The table now displays only the entries that match your filter criterion. You can also define multiple
filters, delete filters, and bypass the filter menus by typing into the filter bar directly.
5. In the table, open a Server ID link to display details about that server. This opens a detail page
with a diagram of the server's connections to other servers, basic system information, system
performance, running processes, and inbound and outbound connections. Choose Applications to
list the applications to which the server belongs, or Tags to list tags that have been applied to the
server. Choose Actions to see the actions that can be performed on the server, including Group as
application, Add tag, Remove server from application, and Remove tag.
Tags are user-defined key/value pairs that can store meta-information about servers. Application
discovery tags are similar to AWS tags, but the two types of tag cannot be used interchangeably. You can
add or remove tags on up to 10 servers at a time on the Servers page. On server detail pages, you can
add or remove tags only for the selected server. Up to five tags can be added or removed from a server
or servers in a single operation.
22
AWS Application Discovery Service User Guide
Step 4: Working with the Server Network Diagram
7. Choose the tag key names. The Tags window opens with a table containing all of the tag key/value
pairs for the selected server.
The following screenshot shows the server network diagram in its initial state for the selected server.
Hover over an element of the diagram to view additional information about it. Hovering over a server
node displays basic system information, and hovering over a connection displays the destination port
and network protocol.
The following screenshot shows the detailed information displayed for a server node.
23
AWS Application Discovery Service User Guide
Step 4: Working with the Server Network Diagram
Choose a server node to select it. Selected nodes are displayed with green check mark in nodes. Multiple
nodes can be selected and grouped as an application. Open a server node to view the details for that
server.
In the following screenshot, two neighboring server nodes have been selected.
Application Discovery Service supports grouping individual servers into applications. An application is a
higher-level group of interdependent servers that implement a solution together. On the Servers page,
you can select up to 10 discovered servers at a time and group them into a new or existing application.
From a server detail page, you can manipulate the diagram of neighboring servers to create or add to an
application.
24
AWS Application Discovery Service User Guide
Step 5: Working with the Applications Page
• Application ID
• Application name
• Description
• Server ID
5. Choose one of the available operators:
25
AWS Application Discovery Service User Guide
Step 5: Working with the Applications Page
• ==
• !=
• Contains
• Not Contains
6. Supply a value or choose from predefined values. These vary based on the filter field selected earlier.
For Application name, you see a menu listing all the applications that you previously created.
The table now displays only the entries that match your filter criterion. You can also define multiple
filters, delete filters, and bypass the filter menus by typing into the filter bar directly.
To create an application
26
AWS Application Discovery Service User Guide
General Troubleshooting Tools
The following documentation can help you troubleshoot problems with Application Discovery Service
that you might encounter while migrating your on-premises servers to Amazon EC2.
• On Linux: /opt/aws/aws/agent/etc/agent.cfg
• On Windows: %Program Files%AWS%agent.cfg
1. Create a temporary folder, such as /var/tmp for Linux or C:\tmp for Windows.
2. Edit the file the appropriate file for your operating system:
27
AWS Application Discovery Service User Guide
Enable Logging for the AWS Application Discovery Agent
• Linux: /opt/aws/aws/agent/etc/agent.cfg
• Windows: C:\ProgramData\Amazon Web Services\AWS Agent\agent.cfg
Add the following lines; in addition to your temporary folder path, supply a file name where
indicated.
{
"MustCollect" : true,
"Publisher": "File",
"MsgFile": "temporary path and file",
"SystemPerformanceMsgs": true,
"SystemPerformanceUpdateFrequency": 1,
"SystemPerformanceMsgFrequency": 30,
"ProcessPerformanceMsgs": true,
"ProcessPerformanceUpdateFrequency": 1,
"ProcessPerformanceMsgFrequency": 30,
"ListeningPortInfo": true,
"Users": true,
"Groups": true,
"NetworkInterfaces": true,
"Terminals": true,
"PackageInfo": true,
"InstanceMetaData": true,
"NetworkConnections": true,
"ListeningPorts" : true,
"Processes": true,
"CodeModules": true,
"KernelModules": true,
"DnsEntries": true,
"Subscribers": "discovery"
}
This configuration causes the agent to write events to a location specified by MsgFile. The metrics
that the agent collects are also specified. (In normal operation, the AWS endpoint would supply this
information.)
3. Stop and restart the agent using the command appropriate for your operating system:
To activate debugging
{
"SubSystems" : "ALL",
"LogLevels" : "LogAll",
"LogFile" : "c:\\tmp\\agent.log"
}
28
AWS Application Discovery Service User Guide
Troubleshooting the AWS Application Discovery Agent Data
2. Stop and restart the agent using the command appropriate for your operating system:
• Although AWS does not currently support console-based data visualization for the Application
Discovery Agent, you can manually convert the CSV format of discovery data to GraphML format and
view it offline with any open-source visualization tool that can consume GraphML format.
• Download sample agent data in CSV format.
• Contact AWS Support to have obsolete discovery data purged from the repository.
• If you are using Linux, confirm that the .aws/credentials file is located in the root user's home
directory as described in On-Premises Installation for Linux. The file must not be in some other user's
home directory.
• If you are using Windows, confirm that the AWS credentials are properly installed, as described in
On-Premises Installation for Microsoft Windows. Check that the permissions provided for the AWS
credentials conform to the appropriate managed policy, as described in Attach Required IAM User
Policies.
• Run the following commands:
• Linux: /opt/aws/awsagent/etc/agent.cfg
• Windows: C:\ProgramData\Amazon Web Services\AWS Agent .\AWSAgentStatus.exe
• Check the region in the output. Agents should be configured to communicate with the endpoint of
ADS in the us-west-2 region.
• Check the time skew from your NTP servers and correct if necessary. Incorrect time skew causes the
agent registration call to fail.
• Check that you are meeting all prerequisites, including OS support. If you attempt to install the
inspector agent package on Ubuntu and the operation fails with message containing "Failed to find an
inspector agent package for this OS...", contact AWS Support.
• If you use agentless discovery and don’t see inventory information after starting data collection with
the connector, confirm that you have registered the connector with your vCenter Server instance.
Agentless discovery does not support a standalone ESX host that is not part of the vCenter Server
instance.
29
AWS Application Discovery Service User Guide
Failure to Create AWS Application Discovery
Agent Credentials for Windows Server
• If you are using Windows 2008 R2, confirm that the security patches are up-to-date.
30
AWS Application Discovery Service User Guide
The following table describes the important changes to the documentation since the last release of
Application Discovery Service.
Launch of agentless discovery Added content that describes July 28, 2016
how to set. up and configure
agentless discovery.
31
AWS Application Discovery Service User Guide
AWS Glossary
For the latest AWS terminology, see the AWS Glossary in the AWS General Reference.
32