Skip to main content

query

The query command provides a simplified, read-only interface for retrieving device information. It consolidates device data into structured responses for common query types: routing status, video signal details, health metrics, and network configuration.

Command TypeDisplayNet
Minimum Version3.x.x

Usage

query <target> <routing | video | health | network>
query <target> path <dotpath>

Arguments

ArgumentRequiredDescription
targetYesDevice(s) to query. See Targets.
subcommandYesThe query type. See Subcommands.
dotpathpath onlyA dot-separated path into the device data tree. See Dot paths.

Targets

ValueQueries
<device>A single device, by name (case-insensitive, spaces as underscores) or MAC address
<device>,<device>,...Each listed device
allAll online devices
all_txAll transmitter devices (includes transceivers)
all_rxAll receiver devices (includes transceivers)

Subcommands

SubcommandReturns
routingActive streams and subscriptions. Inactive streams and unsubscribed addresses are filtered out
videoVideo and audio signal details. Transmitters return an input object, receivers an output object, transceivers both
healthOnline state, temperature, error status, and firmware version
networkIP address, DHCP/static mode, subnet mask, gateway, hostname, and port status
pathThe value at an arbitrary dot-path in the device data: a string for leaf nodes, a JSON object for subtrees

Dot paths

A dot-separated path into the device data tree, supporting nested object traversal and node lookups:

  • identity.firmware_version
  • status.temperature
  • nodes[HDMI_DECODER:0].status.video
  • streams[HDMI:0].configuration.address

Examples

Routing state of one device
query DN-300T routing
Health of every device
query all health
Read a single value by path
query DN-300T path identity.firmware_version

Return value

query DN-300T routing
{
"status": "SUCCESS",
"request_id": null,
"result": {
"query_routing": [
{
"device_id": "6cdffb000420",
"device_name": "DN-300T",
"type": "TRX",
"streams": [
{
"type": "HDMI",
"index": 0,
"state": "STREAMING",
"address": "224.1.1.1"
}
],
"subscriptions": [
{
"type": "HDMI",
"index": 0,
"address": "224.1.1.3"
}
]
}
]
},
"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.
RoleUser
OperationParameters
querytarget sub_command [dot_path]

A parameter in brackets is optional.

See also

  • get: full device-object retrieval