Next Topic

Previous Topic

Book Contents

Client Commands

Login

Provides authentication information to the server. This username and password are specified in the dge.xml configuration file.

Login <login_id> | <password>

Logout | Quit

Ends a login session.

session.Logout

Result.insert

Inserts a result value for an existing test into the database. The Result.insert must be submitted to the EDF listener on the DGE that is monitoring the device.

Result.insert device_name | device_addr | test_name | test_serial | date_time | result_value

where

-1

UNKNOWN

Indicates an unexpected, or unknown test result

-2

FAILED

Used when a test fails, such as an http test returning a 500 code

-3

UNREACHABLE

 

-4

SUSPENDED

Test is not being run

Example

The device and test need to be created in Traverse using either the web interface (under the Advanced Tests section) or the BVE Server. The testType should be set to external for EDF tests.

% telnet bve_host 7661

OK 200 Traverse BVE TCP Server v5.0 ready

LOGIN traverse/traverse
OK 201 request accepted and processed, ready for next request

DEVICE.CREATE "devicename=my_device", "address=192.168.123.25",
"devicetype=unix", "snmpcid=public", "comment=my workstation",
"locationName=Denver Office"

OK 201 request accepted and processed, ready for next request

TEST.CREATE "devicename=my_device", "testname=my_test",
"testtype=external", "subtype=external", "interval=15m", "units=xyz",
"warningThreshold=55", "criticalThreshold=85", "maxvalue=100",
"resultProcessDirective=0", "resultMultiplier=1"

OK 201 request accepted and processed, ready for next request

QUIT

Now connect to the EDF server on port 7657 on the DGE that is monitoring the device. Use the username and password in the dge.xml configuration file, which is different from the one we used to access the BVE Server in the first step. Note that we are not using the test serial number and are also specifying the timestamp as 0 which indicates use current date and time.

% telnet dge_host 7657

OK Traverse External Data Feed Server Ready

login edfuser|fixme

OK

result.insert my_device | 192.168.123.25 | my_test | | 0 | 25

OK

QUIT

OK Received logout - bye

To view the newly inserted test result via BVE Server:

% telnet bve_host 7661
OK 200 Traverse BVE TCP Server v5.0 ready

login zyrion/zyrion

OK 201 request accepted and processed, ready for next request

RESULT.SEARCH "devicename=my_device", "testname=my_test", "starttime=NOW"

OK 203 request accepted, records returned: 1
my_device|470000|my_test|470003|external|external|20030506100124|1|25|25|25|Ok|55|85

QUIT

OK 299 Logging out.