Skip to content
Endpoint ManagementMarkdown

Health and actions

Ask a connected device what it runs, and restart its security sensor, without anyone at the keyboard.

AvailableAPI

When a device looks quiet, you can ask it directly: which version of the device client it runs, on which operating system, and whether its security sensor and AI tools agent are running. If the sensor is stuck, you can restart it from the realm, without anyone at the keyboard.

  • Privilege: running an action needs MODIFY on the realm’s endpoint settings, which RealmOwner holds (Who can call).
  • Where: the API.
  • The device must be connected. Check connected on its record.

An action goes down the device’s own session, and the device answers it.

kindWhat the device doesWhat it answers
reportReports its stateversion, os, and for each part installed, whether it’s running
statusReports the security sensor’s stateThe sensor, with running
restart-darRestarts the security sensorThe sensor, with its state after the restart

In these answers, and in the restart-dar action’s name, the API calls the security sensor dar and the AI tools agent aig.

The answer is { "id", "ok", "detail" }: ok says whether the action held, and detail carries what it found, or why it failed.

Run an action with the device id, the id on its Device records entry (Call the API):

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id>/do \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{"kind": "report"}'
{
"id": "<action id>",
"ok": true,
"detail": { "version": "<version>", "os": "linux", "dar": { "running": true }, "aig": { "running": true } }
}

Nothing. An action runs in the background on the device; no prompt or notice appears. Restarting the sensor pauses its watching for the moment it takes to start again.

AnswerWhenWhat to do
ok: false, no such action: <kind>The device doesn’t know that kindUse report, status or restart-dar
ok: false on status or restart-darThe device has no security sensorReinstall the package on the device
503The device isn’t connectedCheck connected, and see the device client’s Troubleshooting
504The device didn’t answer within 30 secondsAsk again; if it keeps timing out, check the device
404No device with that id in this realmList the realm’s devices for its id
403You lack MODIFY on the realm’s endpoint settingsAsk a realm administrator to grant it
WhatValue
Wait for the device’s answer30 seconds
Devices per actionOne; to restart many sensors at once, see Sensor actions
Actionsreport, status, restart-dar
HistoryNone kept
SymptomCauseFix
report says the sensor isn’t runningIt stopped and hasn’t been started yetWait a minute, since the client restarts it on its own, or run restart-dar
restart-dar answers, but the sensor stops againSomething on the device stops itCheck the device’s own logs (Device client)
503 for a device that shows connectedIt disconnected in betweenAsk again once it’s connected

Actions aren’t kept: the answer is the only record, and nothing is written to the realm’s audit trail. Keep the answer if you need it later.

  • Only known actions. A kind the device doesn’t know is answered ok: false, no such action: <kind>.
  • No sensor, no sensor actions. status and restart-dar on a device without the sensor answer ok: false.
  • No lock, wipe or restart of the device itself. Actions reach the device client’s parts only; see Known limitations.