Next Topic

Previous Topic

Book Contents

test.status

Displays current status of the tests for the device specified. The search can be restricted to test names with certain pattern, or severity.

test.status "deviceName=<value>"
[, "testName=<regexp>" | "testSerial=<value>"]
[, "status=<ok|warning|critical|unknown|unreachable>"]

Example:

test.status "devicename=Branch Office Router", "testname=CPU-1 Load"
OK 203 request accepted, records returned: 1

Output is in the following format:

"testSerialNumber=4620018","currentSeverity=Warning","value=6","warningThreshold=5","criticalThreshold=18","lastTestTimeStr=20170522143658","timeInCurrentStateStr=00000000000658","testName=CPU-1 Load"

where the time_stamp and time_in_state are provided in YYYYMMDDhhmmss format. Note that the test name is displayed in the last field, and test serial number is in the first field.