On this page

Installing the device agent (IT guide) ​

This page is for the IT technician who sets up branch computers. Each computer connected to peripherals needs just one agent, however many devices it has.

Requirements ​

ItemRequirement
Operating systemWindows 10 or 11, or Windows Server 2019 or later (x64 or ARM64); or Linux with systemd (Debian or Ubuntu with the .deb package, or Red Hat and similar with the .rpm package)
PermissionsAdministrator on the computer (Administrator or root) to install and pair
NetworkOutbound HTTPS only (port 443) to your company's system address. No inbound port needs to be opened in the firewall
DevicesNetwork printers on port 9100, printers defined in the operating system, or COM ports for serial devices
System accountA user with the device.agent.pair permission to create the pairing code (the IT device administrator template)

The agent runs as a service under a low-privilege account: LocalService on Windows, and the positive-agent user on Linux (in the dialout and lp groups, for serial ports and printers).

Install on Windows ​

  1. Copy the installer positive-agent-<version>-win-x64.msi (or win-arm64) to the computer, and check that it's signed: right-click it → Properties → Digital Signatures.
  2. Run the file as an administrator, or for a silent install, from an administrator command prompt:
    msiexec /i positive-agent-1.0.0-win-x64.msi /qn
  3. The installer sets up:
    • The files, in C:\Program Files\Positive\Device Agent\.
    • The Positive Device Agent service (internal name PositiveDeviceAgent), set to start automatically.
    • The data folder C:\ProgramData\Positive\Agent (the pairing key and the job log).
    • A scheduled task named Positive Device Agent Update, used only to install signed updates (DA11).

The installer is built with Windows' built-in tools, with no third-party tools (DA12).

Install on Linux ​

  1. Copy the right package to the computer, then install it:
    sudo apt install ./positive-agent-1.0.0-linux-x64.deb
    Or, on .rpm systems:
    sudo dnf install ./positive-agent-1.0.0-linux-x64.rpm
  2. The package creates the positive-agent user and the data folder /var/lib/positive-agent, and enables the positive-agent.service service.

Pair with the system ​

  1. In the system, open Devices → Pair an agent and create a pairing code for the branch (and the workstation profile, if there is one). For details, see Pair an agent.
  2. On the computer, within 10 minutes, run the command shown under Command to run on the PC:
    • Windows (administrator command prompt):
      "C:\Program Files\Positive\Device Agent\positive-agent.exe" pair --code ABCD-EFGH --url https://<your-company>.<domain>
    • Linux (as the service account, so that it owns the key files):
      sudo -u positive-agent positive-agent pair --code ABCD-EFGH --url https://<your-company>.<domain>
  3. If the service was already running before pairing, restart it:
    • Windows: sc stop PositiveDeviceAgent, then sc start PositiveDeviceAgent.
    • Linux: sudo systemctl restart positive-agent.
  4. Within a minute, the agent appears in Device agents as Online.

When it pairs, the agent creates a private key that never leaves the computer. On Windows the key is protected by the Windows data protection mechanism; on Linux it's stored in a file that only the service user can read. The code works only once, and repeated wrong attempts pause pairing for 10 minutes (DA4).

Check that it works ​

  • On the computer: positive-agent status shows the agent's version, the server it's paired with, the agent's name and the pairing date.
  • In the system: open the agent in Device agents and select Send test for the receipt printer. Follow the job in Device jobs until it's Done.
  • Service logs: Event Viewer on Windows (the Application log), or journalctl -u positive-agent on Linux.

Local printing from point of sale ​

The agent listens only on the local address 127.0.0.1:47123, so the point-of-sale app on the same computer can print even when the internet is down (D10c). It accepts requests only with a local token, which positive-agent loopback-token displays and which you enter in the point-of-sale app's settings. Don't open this port in the firewall.

Updates ​

The agent updates itself from signed releases that the system administrator sets in Agent updates. The agent checks the release's signature and the file's fingerprint before installing. Then the operating system installer (the scheduled task on Windows, or the update tool on Linux) checks the package's own signature again. No update is installed during the branch's business hours, except security fixes after 24 hours (DA6, P17).

Unpair and uninstall ​

  1. First, revoke the agent from Device agents → Revoke agent.
  2. On the computer, run positive-agent unpair to delete the local pairing key.
  3. Uninstall the program: from Installed apps on Windows, or with sudo apt remove positive-agent on Linux.

Troubleshooting ​

ProblemLikely causeFix
The pairing code is wrong, expired or already used.The ten minutes have passed, or the code was usedCreate a new code
Too many wrong pairing codes. Wait 10 minutes and try again.Wrong codes were entered several timesWait 10 minutes
The agent shows OfflineThe service is stopped, or the computer can't reach the serverStart the service, and check that the system address is reachable over HTTPS
The device agent was revoked. Pair the PC again with a new code.The agent was revoked in the systemRun positive-agent unpair, then pair it with a new code
The printer shows OfflineThe printer is off, or its address is wrongCheck Device settings