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
| Item | Requirement |
|---|---|
| Operating system | Windows 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) |
| Permissions | Administrator on the computer (Administrator or root) to install and pair |
| Network | Outbound HTTPS only (port 443) to your company's system address. No inbound port needs to be opened in the firewall |
| Devices | Network printers on port 9100, printers defined in the operating system, or COM ports for serial devices |
| System account | A 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
- Copy the installer
positive-agent-<version>-win-x64.msi(orwin-arm64) to the computer, and check that it's signed: right-click it → Properties → Digital Signatures. - 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 - 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 files, in
The installer is built with Windows' built-in tools, with no third-party tools (DA12).
Install on Linux
- Copy the right package to the computer, then install it:Or, on .rpm systems:
sudo apt install ./positive-agent-1.0.0-linux-x64.debsudo dnf install ./positive-agent-1.0.0-linux-x64.rpm - The package creates the
positive-agentuser and the data folder/var/lib/positive-agent, and enables thepositive-agent.serviceservice.
Pair with the system
- 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.
- 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>
- Windows (administrator command prompt):
- If the service was already running before pairing, restart it:
- Windows:
sc stop PositiveDeviceAgent, thensc start PositiveDeviceAgent. - Linux:
sudo systemctl restart positive-agent.
- Windows:
- 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 statusshows 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-agenton 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
- First, revoke the agent from Device agents → Revoke agent.
- On the computer, run
positive-agent unpairto delete the local pairing key. - Uninstall the program: from Installed apps on Windows, or with
sudo apt remove positive-agenton Linux.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| The pairing code is wrong, expired or already used. | The ten minutes have passed, or the code was used | Create a new code |
| Too many wrong pairing codes. Wait 10 minutes and try again. | Wrong codes were entered several times | Wait 10 minutes |
| The agent shows Offline | The service is stopped, or the computer can't reach the server | Start 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 system | Run positive-agent unpair, then pair it with a new code |
| The printer shows Offline | The printer is off, or its address is wrong | Check Device settings |