Skip to main content

server

The server command manages the DisplayNet Server itself: power, service restarts, the front panel display, configuration backup, and database maintenance.

Command TypeDisplayNet
Minimum Version2.x.x
warning

All server subcommands require the Admin role.

Usage

server <subcommand> [<arguments>]

Subcommands

Power and services

SubcommandDescription
rebootImmediately reboots the server host (restart is a legacy alias)
poweroffImmediately powers off the server host (shutdown is a legacy alias)
apirestartRestarts the DisplayNet API service
applypendingApplies pending device claim/authentication configuration changes, restarting the SDVoE API when required. See claim

Front panel display

SubcommandDescription
backlight <0-100>Sets the front panel backlight brightness
logoShows the logo on the front panel display
netdisplayShows the hostname and network addresses on the front panel display
nodisplayClears the front panel display

Sessions and maintenance

SubcommandDescription
activityLists connected API clients: user, role, connection type, address, and login time
backup <password>Creates an encrypted backup of the server configuration
restore <password> <data>Restores the server configuration from an encrypted backup
readbackup <password> <data>Decrypts and inspects a backup payload without restoring it
vacuum [<table>]Runs VACUUM ANALYZE on the logging database in the background (all tables if omitted)
dbstatsReports logging database size and vacuum statistics per table
cleartempthresholdnotificationcacheClears the device temperature-threshold notification cache, so a device already over its TempThreshold notifies again

Examples

Reboot the server
server reboot
Dim the front panel
server backlight 30
See who is connected
server activity

Return value

server activity
{
"status": "SUCCESS",
"request_id": null,
"result": {
"user_activity": [
{
"userName": "DisplayNet",
"userRole": "User",
"connectionType": "WebSocket",
"connectionAddress": "127.0.0.1:52362",
"loginTime": "5/19/2023 6:26 PM"
},
{
"userName": "DNAdmin",
"userRole": "Admin",
"connectionType": "WebSocket",
"connectionAddress": "10.241.52.203:39622",
"loginTime": "6/2/2023 4:42 PM"
}
]
},
"error": null
}

REST API

Endpoint typeDisplayNet API command
AddressPOST /api/displaynet/<operation>, or name the operation in the body of a POST /api/displaynet. See Sending commands.
RoleAdmin
SubcommandOperationParameters
activityserver_activity
apirestartserver_apirestart
applypendingserver_applypending
backlightserver_backlightvalue
backupserver_backuppassword
cleartempthresholdnotificationcacheserver_cleartempthresholdnotificationcache
dbstatsserver_dbstats
freeallserver_freeall
logoserver_logo
netdisplayserver_netdisplay
nodisplayserver_nodisplay
poweroffserver_poweroff
readbackupserver_readbackuppassword data
rebootserver_reboot
restoreserver_restorepassword data
vacuumserver_vacuum[table]

A parameter in brackets is optional.

See also

  • cert: HTTPS/WSS certificate management
  • authkey: trusted SSH key management
  • version: server and API version information