Early-access price: $1 per asset, once, until Census 1.0. Founding customers keep it. See pricing

Early-access price

$1 per asset. Once. Yours forever.

A perpetual license for Census, with no subscription. This price ends when Census 1.0 is released.

Buy before 1.0 and become a founding customer:

See pricing Download free

Under 100 assets? Census is free, with every feature and no time limit.

Documentation › Inventory

Census agent

The Census agent is a small program (about 7 MB, no dependencies) that inventories the computer it runs on and reports to your Steward IT Census server over HTTPS. Use it for:

  • laptops that are often away from the office (it reports from anywhere the server is reachable, e.g. over VPN or a published port)
  • computers on other subnets / sites or behind firewalls
  • computers where you can't enable WinRM or SSH
  • instant actions: the agent keeps a connection open to the server, so deployments, scripts, console commands, service control and screenshots start within a second or two

It's available for Windows (x64, ARM64), Linux (x64, ARM64, 32-bit ARM) and macOS (Intel, Apple Silicon). It collects the same data as a WinRM/SSH scan, and runs as SYSTEM (Windows) or root (Linux/macOS).

Installing#

The methods below use three values, shown on Scanning › Census agents: the server URL, the agent key and the certificate fingerprint. Installing by hand with the Windows setup wizard needs only the server URL (see below).

The Install panel on that page has one section per program, closed until you click it: Census agent, Census Action Launcher and Census Remote Scanner. Each has the build, how to install it (a deployment, a download, and for the agent the USB installer), and its command lines for a manual install.

  • Agent key: proves the agent belongs to your organization. Without it, anyone who can reach the server could submit fake inventory or use up your licensed assets.
  • Certificate fingerprint: pins the server's self-signed certificate, so no other machine can impersonate your server. It's not needed if you install a certificate trusted by your computers (see Installation).

You never have to type them. Use one of these methods.

USB / file share installer (easiest)#

  1. On Census agents › Install, choose your platform and USB / network share installer (.zip), then Continue.
  2. Unzip it to a thumb drive or network share.
  3. On each computer, right-click install-census-agent.cmd › Run as administrator (Linux/macOS: sudo sh install-census-agent.sh).

The bundle contains your agent key, so keep it on trusted media. Rotate the key if it's lost (see below).

Push from the server (WinRM / SSH)#

Choosing Install Census agent as the package under Deployment › New deployment (also Push to computers on the Census agents page, or Install agent… for assets selected on the Assets list) installs the agent remotely over WinRM/SSH using your stored credentials, choosing the right build for each computer. See Deployment.

Install by hand with the setup wizard#

On a single Windows computer, download the agent MSI (Census agents › Install › Census agent › Download the agent MSI, or steward-it-census-agent-<version>-x64.msi from the website) and double-click it. The setup wizard asks for:

  • Census server address: the address you open the console with, for example https://census.corp.local:8443. census.corp.local:8443 works too (setup adds https://), and an address copied from the browser is cut down to the server part.

  • Install code: the 5 digits shown as Install code on the Census agents page (only logins that may manage agents see it, and not roles limited to some assets). A computer added with the code waits for approval (see Approving new agents), whether or not New agents need approval is on. Without the right code the server refuses the computer, so people who only know your server's address can't fill the approval list. An administrator can make a new code with New install code: computers already added keep working.

    The install code needs a trusted server certificate. The agent sends the code only to a server whose certificate the computer trusts: from Let's Encrypt or another public authority, or from your company's certificate authority (see HTTPS certificate). With Census's own self-signed certificate the computer couldn't tell your server from another computer posing as it, so setup stops with a message instead. The Census agents page shows whether your server's certificate allows it. Until then, install with the agent key.

  • Agent key (instead of the install code): with the key from the Census agents page, the computer starts reporting immediately, without approval.

Installed with the agent key and without a fingerprint, the agent trusts the certificate the server shows the first time it connects (unless the computer already trusts it) and writes it to C:\ProgramData\CensusAgent\msi-install.log: compare it with the fingerprint on the Census agents page if you want to be sure. From then on it only accepts that certificate.

Install with the MSI (Intune, Group Policy, PDQ)#

For software deployment tools there is a Windows installer: Census agents › Install › Census agent › Download the agent MSI (census-agent-windows-amd64.msi; the release download calls it steward-it-census-agent-<version>-x64.msi). It's for 64-bit Windows; run by hand it shows the setup wizard, and with /qn it installs silently with your server's settings. The page shows the command with your values filled in:

msiexec /i census-agent-windows-amd64.msi /qn SERVER_URL=https://census.corp.local:8443 AGENT_KEY=<agent key> FINGERPRINT=<fingerprint>
Property Meaning
SERVER_URL The server's address, https://<server>:<port>. Required for a first installation.
AGENT_KEY The agent key; it is kept out of the installer's log.
INSTALL_CODE Instead of AGENT_KEY: the 5-digit install code from the Census agents page; it is kept out of the installer's log too. The computer then waits for approval there. One of the two is required.
FINGERPRINT The server certificate's fingerprint. Leave it out only if your computers trust the server's certificate.
  • Intune: package the MSI as a Win32 app with the Microsoft Win32 Content Prep Tool and use the command above as the install command. Intune fills in the uninstall command and the MSI detection rule.
  • Group Policy: use a computer startup script that runs the command above from a share the computers can read. Running it again at the next startup changes nothing once the agent is installed. (Group Policy software installation can't pass the properties, so use a startup script.)
  • PDQ Deploy and similar tools: run the same command.

The MSI installs the agent to C:\Program Files\Steward IT Census\census-agent.exe, checks in with the server (a few seconds), and installs and starts the Census Agent service, which sends the computer's inventory a minute or two later. If the server answers that the key or fingerprint is wrong, the installation stops and nothing is changed. If the server can't be reached at that moment (a laptop away from the office), the agent is installed anyway and keeps trying. A silent first installation without SERVER_URL is refused with a message in the installer's log.

An agent that was installed with the install command or the USB installer can be replaced by the MSI: it keeps its settings and identity, and its own Programs and Features entry is replaced by the MSI's.

Upgrades and uninstall: a newer agent MSI upgrades the installed one in place. The properties can be left out then: the agent keeps its settings and its identity (the same agent, with the same history, in Census). Update on the Census agents page also works for agents installed with the MSI, and Programs and Features shows the new version afterward. Uninstalling (Programs and Features, msiexec /x, or removing the Intune app) removes the service, the configuration and the program.

What the installer did is logged on each computer in C:\ProgramData\CensusAgent\msi-install.log. For the installer's own log, add /l*v C:\Windows\Temp\census-agent-msi.log to the command.

ARM computers#

Use census-agent-linux-arm64 on 64-bit ARM Linux and census-agent-linux-arm on 32-bit ARM Linux. Install Census agent and agent updates pick the right one automatically.

Command line#

# Windows (administrator PowerShell)
.\census-agent-windows-amd64.exe install -server https://census.corp.local:8443 -key <agent key> -fingerprint <fingerprint>
# Linux / macOS
sudo ./census-agent-linux-amd64 install -server https://census.corp.local:8443 -key <agent key> -fingerprint <fingerprint>

The exact command for your server is shown on the Census agents page. install first checks in with the server (so mistakes show immediately), then copies the agent to C:\Program Files\Steward IT Census\ (Linux/macOS /usr/local/bin/census-agent), installs it as a service and starts it. On Windows it also adds a Control Panel uninstall entry.

Group Policy (no service)#

To install the agent as a service with Group Policy, use the MSI. To inventory computers at every logon or startup without installing a service, use a startup script:

\\server\share\census-agent-windows-amd64.exe run-once -server https://census.corp.local:8443 -key <agent key> -fingerprint <fingerprint>

How often it reports#

The agent sends a full inventory at startup and then every 4 hours (change it under Scanning › Census agents › Reporting interval). Rescan now on an asset asks an online agent for a fresh inventory immediately.

Performance history#

The agent (running as a service) measures CPU use, memory in use and how full the system disk is every 5 minutes, and sends 15-minute averages to the server. They're shown as charts on the computer's Performance tab (24 hours, 7 or 30 days) and used by the report Busy computers (last 7 days). History is kept for 30 days. While the server can't be reached the agent keeps up to 2 days of averages and sends them later. The one-time run-once mode (Group Policy) doesn't measure performance.

Upgrading#

From the web interface (recommended): after upgrading the server, copy the new census-agent-* files from the release into the server's agents data folder. Scanning › Census agents then marks older agents with update available:

  • click Update on one agent, or Update all outdated agents;
  • the new agent is sent like a deployment: within seconds when the agent is online, otherwise over WinRM/SSH with your stored credentials, or when the agent next connects. Its progress is under Deployment;
  • the agent replaces its program file, keeps its settings and identity, and restarts a few seconds later. The new version appears on the Agents page after its next report.

The update uses the build matching each computer (Windows/Linux/macOS, x64/ARM64); computers whose build is missing from the agents folder are skipped with a message.

The Agents page shows the version of each file in the agents folder next to its download link. An agent is offered an update only when the folder holds a different version than the agent runs; a warning appears when the folder's files are older than the server, which usually means the new files haven't been copied yet.

Manually: run install again with the new version (the same command, or the USB installer), or run census-agent upgrade with the new file as administrator/root. Settings and identity are kept.

Uninstalling#

  • Windows: Control Panel › Programs and Features › Steward IT Census Agent › Uninstall.
  • MSI installs: the same entry, msiexec /x with the MSI, or remove the Intune app.
  • Remotely: Census agents page › Uninstall. The agent removes itself the next time it connects (immediately if online), then disappears from the list.
  • Command line: "C:\Program Files\Steward IT Census\census-agent.exe" uninstall (administrator) or sudo census-agent uninstall.

Uninstalling removes the service, the configuration and the program. The asset stays in your inventory; archive or delete it there if wanted. Forget on the Agents page only removes the list entry, and an agent that is still installed reappears at its next report. Forget also withdraws a remote uninstall that hasn't run yet, and so does installing the agent again on that computer, so an old request can never remove a fresh install.

Each agent's own key#

Every agent creates its own key the first time it connects and proves who it is with it from then on. The agent key in your installers can only add new computers: it can't be used to pose as an existing computer, pick up its tasks or replace its inventory. The Identity column on Census agents shows 🔑 own key. Nothing changes for installing: new and reimaged computers simply register.

A computer also stays with its agent: another agent can't take it over while its own agent is in use, and a refused report is noted in the asset's history. A reimaged computer normally takes over its old record by itself; if an install is refused because the computer still belongs to another agent, Forget or Revoke the old agent on Census agents first (the install then succeeds).

Revoke locks that agent out permanently, for example for a lost or stolen laptop. It moves to the Revoked agents section below the list, which keeps it locked out. To add the computer again, reinstall the agent on it: it registers as a new agent. Once a revoked computer no longer has the agent (reinstalled, wiped or retired), Remove clears it from that section; the lockout goes with it, so for a lost or stolen computer keep it listed (or rotate the agent key).

Images and cloned computers#

Every agent has an ID and a key of its own, kept on the computer. If you install the agent on a computer and then take an image of it, run this first, as administrator or root, and shut the computer down:

"C:\Program Files\Steward IT Census\census-agent.exe" reset

(Linux and macOS: sudo census-agent reset.) The agent stops and forgets its ID and key. At the next start, the computer itself and every computer made from the image registers as a new agent.

Without reset, an agent notices by itself when its settings were copied to another computer: the hardware ID is different, and so is the disk. It then registers as a new agent (and waits for approval if you require that). A new system board or a new disk alone doesn't count as another computer.

Computers cloned while their agent was older don't notice it. They all report as one agent, and a deployment for one can run on another. Census agents then shows Used by several computers at that agent. To fix it: update the agent, run census-agent reset on each of these computers and restart them, then Forget the old entry.

Approving new agents#

Computers installed without the agent key (the setup wizard with only the server address) always wait for approval.

The agent key is inside every installer, so anyone who has an installer can add a computer. If you'd rather decide yourself which computers join, turn on Census agents › New agents › New agents need approval (administrators; off by default): then computers installed with the key wait too.

A waiting computer is listed under Waiting for approval at the top of Census agents, with the host name, operating system, serial number, address and last user from its report. Until you decide, nothing from it is saved (no asset is added or changed) and it gets no tasks. The number of waiting computers also shows next to Census agents in the left panel.

Everyone who may manage Census agents also gets a notice in the console when a new computer starts waiting, with Approve and Reject for each. It stays on the screen until it is closed; after Close it comes back only for computers that start waiting later. For an email, add an alert of the type New computer waiting for approval (Alerts). One address can add at most 20 computers an hour without the key.

  • Approve lets the computer in: the agent sends its inventory within a minute (agents before 0.85.0 at their next report, within 15 minutes) and from then on works as usual.
  • Reject locks that agent out permanently, like Revoke: it moves to Revoked agents. Reinstalling the agent on that computer makes it ask for approval again.

Agents that already report are not affected, and installing still succeeds: the agent keeps trying until it is approved. An agent removed with Forget counts as new and asks again. Turning the setting off doesn't approve the computers already waiting: approve or reject them.

Rotating the agent key#

Census agents › Rotate agent key issues a new key. Existing agents stop reporting until they are reinstalled with the new key, so only do this if the key has leaked. Agents installed without the key (approved by hand) are not affected. For a single lost or stolen computer, use Revoke instead.

Files and locations#

Windows Linux macOS
Program C:\Program Files\Steward IT Census\census-agent.exe /usr/local/bin/census-agent /usr/local/bin/census-agent
Configuration C:\ProgramData\CensusAgent\agent.json /etc/census-agent.json /Library/Application Support/CensusAgent/agent.json
Service Census Agent (CensusAgent) CensusAgent.service launchd CensusAgent

Command reference#

census-agent install  -server URL -key KEY [-fingerprint FP]   install/upgrade as a service
                      (-code 12345 instead of -key: waits for approval)
census-agent run-once -server URL -key KEY [-fingerprint FP]   one report, no service
census-agent upgrade                                           replace the installed agent with this file and restart it (keeps settings)
census-agent uninstall                                         remove service, config and program
census-agent start | stop | status
census-agent print                                             show the inventory locally (JSON)
census-agent version