This script is built on top of curl
and jq
. You must set the global variable UCENTRALGW
in order to use it.
cli help
Get the device JSON document.
Delete the device.
Create a device using the default configuration.
serial
: device serial numbercfg
: JSON config file nameMAC
: string MAC Address
Get the device status JSON document.
serial
: device serial number
Get statistics for the device.
serial
: device serial number
Get healthchecks for a device.
serial
: device serial number
Get newest healthchecks for a device.
serial
: device serial number
Get the last healthcheck
serial
: device serial number
Get the device capabilities JSON document.
serial
: device serial number
Delete the device capabilities JSON.
serial
: device serial number
Reboot the device.
serial
: device serial number
Do firmware upgrade for a device.
serial
: device serial numberURI
: complete URI where the upgrade file exists. No validation is performed.
Activate LEDs a device.
serial
: device serial numberpattern
: on/off/blinkduration
: number in seconds
Change configuration for a device.
serial
: device serial numbercfg
: JSON config file name
Do factory reset for device.
serial
: device serial numberkeep_redirector
: true=keep redirector, false=reset redirector
Force a message from the device.
serial
: device serial numbermessage
: state or healthcheck
Do wifiscan for a device.
serial
: device serial numberverbose
: verbose=true/false
Start telemetry
stream for a device.
Launch a remote trace for a device.
serial
: device serial numberduration
: number in secondsnetwork
: which network to perform trace on: lan or wan
Get the command JSON document.
command-uuid
: command UUID
Delete the command.
command-uuid
: command UUID
Get the newest commands for a device.
serial
: device serial number
List devices.
List commands for a specific device.
serial
: device serial number
Delete commands for a device.
serial
: device serial number
Get logs for the device.
serial
: device serial number
Get the latest logs for the device.
serial
: device serial number
Delete logs for the device.
serial
: device serial number
Request event queue for the device.
serial
: device serial number
List default configurations.
Create a default configuration
name
: unique name, no spacesids
: comma separated list of modelscfg
: JSON config file name
Add a device to the black list
serial
: serial number of the device to addreason
: reason for blacklisting
List all blacklisted devices
Add a device to the black list.
serial
: device serial number
Get the number of devices in the DB.
Get only the serial numbers.
Get a list of devices based on a list.
serial_list
: serial numbers (must be comma separated).
Get devices with their status.
Set the log level for s specific subsystem.
Get the current log levels for all subsystems.
Get the log level names available.
Get the list of subsystems.
Get basic system information.
Reload the configuration for a subsystem.### getfile
Get the file associated with trace command .
uuid
: UUID of file to retrieve
Get the details for an rtty session.
serial
: device serial number
Get the lifetime stats counters for a device
serial
: device serial number
Get the last statistics for a device.
serial
: device serial number
Get the newest statistics for a device.
serial
: device serial number
This will return you the end-to-end latency from command-line to return value.
To pass additional flags to the CURL command, create an environment variable called FLAGS and git ve the values you want. For example, for force all call to use IPv6, set FLAGS="-6", for verbose mode and IPv6, set FLAGS="-6 -v"
All dates are expressed in UNIX time UTC in seconds. If you are using JS or other languages, please make sure that you convert your UTC time to seconds (some languages use microseconds or milliseconds).