Skip to content
Detection & ResponseMarkdown

Sensor actions

Restart or remove the security sensors on your realm's devices, up to a hundred at once; upgrading from the realm isn't working yet.

Available, with limitsAPI

The security sensor on each device sometimes needs a restart after a configuration change, or removing from a machine you’re retiring. You do it from the realm, for one device or up to a hundred at once. Upgrading a sensor from the realm is accepted but doesn’t reach the device yet: upgrade it with the device package instead (see below).

  • Who: an administrator of the realm, in a group holding RealmOwner on the realm or a realm above it (see Delegated administration). Detection & Response doesn’t yet tell RealmViewer apart from RealmOwner: a viewer can restart and remove sensors too.
  • Where: the API.
  • First: the sensor ids of the devices; the sensors list gives them.
ActionEndpointWhat happens
RestartPOST https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/restartEach connected sensor restarts and comes back with the realm’s configuration
RemovePOST https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/removeEach sensor’s registration is removed; its device must enroll again to report
Upgrade (not working yet)POST https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/upgradeAccepted and queued, but the device refuses it, so upgrade/progress ends failed

Each takes {"agents": [...]}, the sensor ids, and answers each one done or failed, with why.

The sensors list gives each sensor’s status, operating system and version; one device’s device view gathers everything about it. Through the API (Call the API), restart two sensors:

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/restart \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{"agents": ["<sensor id>", "<sensor id>"]}'
{ "done": ["<sensor id>"], "failed": [{ "agent": "<sensor id>", "reason": "<why>" }] }

The sensor ships inside the device package, and its version moves with the package. To upgrade it, install the new device package on the device, as when you enrolled it (see Device enrollment). The upgrade call is accepted today, but the device refuses the upgrade, and POST https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/upgrade/progress reports it as failed. Each sensor’s version is in the sensors list.

In failedWhyWhat to do
not an agent of this realmThe id isn’t one of your realm’s sensorsCheck the id in the sensors list; nothing was done to it
A reason saying the sensor isn’t activeThe device isn’t connectedTry again when its status is active
A 400 for the whole callNo ids, more than 100, or an id that isn’t a sensor idSend 1 to 100 sensor ids
LimitValue
Sensors per action1 to 100
Sensor id3 to 9 digits
  • Only your realm’s devices. An id that isn’t your realm’s is answered in failed, and nothing is done to it.
  • Removing a sensor isn’t removing the device. The device stays enrolled but stops reporting here. To take the whole device out of the realm, use Device removal, which removes its sensor too.
SymptomCauseFix
A sensor shows disconnectedThe device is off, offline, or revokedCheck the device in Health and actions; a revoked device stays disconnected
A sensor shows neverIts device enrolled but has never connectedCheck the device client is running on it
An upgrade stays failedUpgrading from the realm isn’t working yetInstall the new device package on the device

None yet. Restarts and removals aren’t recorded in the realm’s audit trail.