How It Works
An endpoint action passes through three parts: the app server, a collection server and the computer. The app server never connects out to a collection server. Each collection server calls in to the app server, and each agent calls in to its collection server.
The parts
| Part | What it is | What it does |
|---|---|---|
| App server | The xAssets web application, its database and the batch processor | Holds the register, builds and signs each action's script, queues the job, records every result |
| Collection server | The Windows service xAssets Discovery Service 7, installed on a server you choose | Polls the app server about every 5 seconds for work. Passes each action to agents or pushes it agentless. Returns the answers |
| Agent | The xAssets Discovery Agent, installed on the computer | Keeps a connection open to a collection server, runs the script, reports each phase |
The agent installs to C:\Program Files\xAssets\xAssets Discovery Agent\.
Two kinds of collection server
A collection server works in one of two modes. It cannot work in both.
| LAN collection server | Listening collection server | |
|---|---|---|
| Serves | Computers on its own network | Agents anywhere that can reach it |
| Reaches a computer by | Connecting in over SMB and WMI with a credential pack | The agent's own outbound connection |
| Runs network discovery | Yes | No |
| Holds credential packs | Yes | No |
| Listens for agents | No | Yes, on the Agent Listener address |
The setting Discovery Agent Collection Server (DMPCCollectionServer) names the listening collection server. An agent installed from xAssets connects to that server. Two screens call it the Cloud Collection Server: the Install Agent Off LAN form and Setup Collection Server. Setup Collection Server calls the other kind a LAN Collection Server.
See How to Install a Second Collection Server for installing one.
A run, step by step
Take Fetch > Event Log on DEVDC as the example.
- You submit the dialog. The app server queues an endpoint job and returns at once. The message ends "Do you want to follow it now?".
- The batch processor builds the run. It writes the script for the action and signs it for each target computer. It creates a dispatch job for the collection server.
- The collection server collects the job. It checks in about every 5 seconds and takes the waiting dispatch job. A job not taken within 120 seconds fails. The message reads "Dependant Batch Job N has not been started by the Collection Server X after 120 seconds".
- The collection server sends the action. DEVDC has an agent, so the listening collection server sends the script over the agent's open connection. A computer without an agent receives it agentless from a LAN collection server.
- The computer checks and runs it. The computer checks the signature against its own key, runs the script and reports each phase.
- The answer comes back. The collection server forwards the result to the app server. Activity > Jobs shows the run, its phases and the answer.

Phases
Each action declares the phases it reports. Every target starts at Sent. A restart, for example, reports Sent, Applied and then Verified once the computer is back. A failure reports the reason, such as an access denied message or "failed signature verification".
A computer that does not answer stays at Sent until its reporting deadline. It then shows No result. An agent that is offline when the action is sent receives it when it reconnects, up to 168 hours later.
See Following a Run for the run view.
Signing
Every action is signed for each target computer. The computer keeps the first signing key it receives and refuses any action signed with another key. A computer first keyed by a different xAssets database therefore refuses actions from this one. Installing the agent from this database takes the computer over. See Agent States.
Large runs
A run with 50 or more targets keeps the detail of successful computers on the collection server. The app server keeps the counts and every failure. The collection server keeps the detail for 3 days by default. You can request it as a detailed report from Activity. Both numbers are settings: see Endpoint Settings.