Get started with Endpoint Management
Make a one-time token, enroll a Linux or macOS device with it, and see the device connected and reporting in your realm.
AvailableAPI
In this guide you enroll one device, Maya’s laptop, into your realm foobar, and see it report in. It takes about ten
minutes. At the end the laptop holds its own certificate from your realm, its security sensor is reporting to your
realm’s security log, and you can ask it from the realm what it runs.
Before you begin
Section titled “Before you begin”- A realm administrator’s session in
$CVYUH_SESSION: you needMODIFYon the realm’s endpoint settings, whichRealmOwnerholds (Who can call). Call the API shows how to get a session. Everything here is done through the API. - A Linux or macOS machine, and someone with administrator rights on it to install the package.
- The package for its platform (deb or rpm for Linux on amd64 or arm64, pkg for macOS), and the device address the device connects to (a host and port), both from whoever runs your deployment.
- Outbound access from the machine to the device address, with no proxy in between; see Device client.
The device client is named for your deployment. These steps use cvyuh-uem, installed under /var/cvyuh on Linux
and /Library/Cvyuh on macOS.
Enroll a device
Section titled “Enroll a device”-
Make an enrollment token. Ask the realm for a token that lasts long enough to install, four hours here:
Terminal window curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/enrolment-tokens \-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \-H "Content-Type: application/json" \-d '{"ttlHours": 4}'The realm answers
201:{ "token": "<enrollment token>", "expiresAt": "<RFC 3339 time>" }The token enrolls one device into
foobar. Get it to the laptop by a channel you trust. The address ends inenrolment-tokens, spelled that way. -
Install the package on the laptop:
Terminal window sudo apt install ./<package>.debOn a distribution that uses rpm,
sudo dnf install ./<package>.rpm.Terminal window sudo installer -pkg ./<package>.pkg -target / -
Enroll the laptop with the token, the device address, and your realm’s sign-in address,
https://foobar.cvyuh.com/oauth2.Terminal window sudo /var/cvyuh/bin/cvyuh-uem enroll --name maya-laptop \--server <device address> --token <enrollment token> \--issuer https://foobar.cvyuh.com/oauth2Terminal window sudo /Library/Cvyuh/bin/cvyuh-uem enroll --name maya-laptop \--server <device address> --token <enrollment token> \--issuer https://foobar.cvyuh.com/oauth2It prints the name the device was enrolled as, and the date to enroll it again before:
enrolled maya-laptop as <certificate name> against <device address>; enrol again before <RFC 3339 time> -
Start the device client.
Start it now, and with every boot:
Terminal window sudo systemctl enable --now cvyuh-uemNothing to do: the installer started it as the
com.cvyuh.endpointlaunch daemon, and it connects as soon as the laptop is enrolled. -
See it in the realm. List the realm’s devices:
Terminal window curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1 \-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"maya-laptopis there,activeand connected:[{"id": "<device id>","uid": "maya-laptop","status": "active","os": "linux","enrolledAt": "<RFC 3339 time>","dar": { "agentId": "<sensor id>" },"connected": true}]Keep its
id, the device id.dar.agentIdis its security sensor’s id, which Detection & Response calls take. -
Ask it what it runs. Run the
reportaction on the device, over its own connection: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"}'The laptop answers with its client’s version, its operating system, and whether its security sensor (
dar) and AI tools agent (aig) are running:{"id": "<action id>","ok": true,"detail": { "version": "<version>", "os": "linux", "dar": { "running": true }, "aig": { "running": true } }}
Within a few minutes the laptop’s security sensor also appears in the Detection & Response sensors list, and its system inventory in the security log.
If enroll was refused, or the device doesn’t show as connected, see
If enrollment fails and the device client’s
Troubleshooting. The certificate lasts a year: enroll the device again
before the date enroll printed (Enroll a device again).
If you’re done trying it out, remove the device: DELETE on https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/<device id>
(see Device removal).