All pages

Scripts and wall screens

Settings > Tokens makes two things that use qKVM without a person signing in: a link for a wall screen, and a token for a script.

Both are shown once, and qKVM keeps only what it needs to know them again. An admin can take either back at any moment. Neither can change settings, accounts, devices or other tokens: that takes a person.

  1. In Settings > Tokens, make a display link: the machines it shows, and how long it works.
  2. Open it once in the browser of the screen.
  3. The screen shows the wall as a display, and after a restart or a power cut it comes back by itself.

A link may look at the machines it was made for, and never act on them. A viewer account with Keep this browser signed in asks for its password again after 30 days; a link asks for nothing.

A token for a script

OptionWhat it doesDefault
Roleviewer: look; operator: look and act on machines. Never adminviewer
Machinesgroups, single machines, or allall
Works for1 to 3650 daysuntil taken back

The script sends the token with every request:

curl -H "Authorization: Bearer qkvm_..." https://qkvm.example:8787/api/v1/status

A viewer token may read GET /api/v1/wall, /status and a picture. An operator token may also list and run actions: GET /api/v1/actions and POST /api/v1/devices/{id}/actions.

Answers

Every answer is JSON. A refusal is {"code": "...", "message": "..."}:

StatusMeans
401no valid token
403the role does not allow it
404a machine the token is not for
409 busysomething else is being done to that machine
502the device refused or did not answer
503 lockedstarted with --locked-start, and nobody has signed in yet

After a restart, a token works as before. With --locked-start it is refused until someone signs in, so do not start a wall that way where scripts run unattended.

What a token never does

  • Open a server's console, or type a saved text (it could read the text back off the screen).
  • Mount virtual media, or take over another holder's keyboard and mouse.

What a token did is in the activity log under its name.

Full reference