Pair an agent
Purpose
This screen creates a one-time pairing code that links a computer running the device agent to a branch, and sets the workstation whose settings the agent uses (DA4). The screen's note reads: Create a one-time code, then run the shown command on the PC as an administrator. The code is valid for 10 minutes and works once.
How to get there
- From the menu: Devices → Pair an agent.
- The address is
/device/pairing.
Permissions
| Action | Key |
|---|
| Create pairing codes and see unused codes | device.agent.pair |
Pairing is separate from configuring devices (device.device_profile.update) and from revoking agents (device.agent.revoke).
Fields
| Field | Required? | Description |
|---|
| Agent name | Yes | The name shown in the agent list, such as e.g. Cashier 1 - Main branch; up to 100 characters |
| Branch | Yes | The computer's branch. The agent uses this branch's device settings |
| Workstation profile (optional) | No | A profile from Device profiles for the same branch. Its settings take precedence over the branch's (P10). Branch settings (no workstation) means the branch's settings alone are used |
| Update ring | Yes | Stable (the default) or Pilot (DA6) |
Procedures
Pair a new computer
- Type the Agent name and choose the Branch, then the workstation profile if there is one.
- Select Create pairing code.
- The Pairing code appears in large type, with Valid until and the expiry time, and the Command to run on the PC.
- Run the command on the computer as an administrator, as described in Installing the agent.
- The code disappears from Unused codes, and the agent appears in Device agents.
Business rules
- A code is eight letters and digits, leaving out easily confused characters (0, 1, I and O), and is shown as
XXXX-XXXX. - A code is valid for 10 minutes and works once, and it isn't accepted in another company (tenant). The system doesn't store the code itself, only a fingerprint of it, so it can't be shown again once you leave the screen.
- After ten wrong attempts within 10 minutes from the same address, pairing is paused for a while.
- Creating a code and pairing are recorded in the audit log.
Common error messages
| Message | Cause | Fix |
|---|
| Choose a valid branch. | The branch doesn't exist | Choose a branch from the list |
| The workstation profile is inactive or belongs to another branch. | The workstation isn't suitable | Choose an active workstation of the same branch |
| Enter a name of up to 100 characters. | The name is empty or too long | Correct the name |