Test Agent API
68 OTH-7000
Performing Current Tasks With the API
Performing OTDR Tests
³ You can start an OTDR test by sending an HTTP POST to the /otdr/tests
endpoint.
³ Building the optical path might require to query the OTDR and
switches characteristics, which can be done with the
/system/devices/otdr and /system/devices/opticalswitches endpoints.
³ OTDR testing is asynchronous. You can monitor an OTDR test by
polling its status. You can also access the final test result, in Bellcore
SOR format, with the otdr/tests/{testId}/result/sor endpoint.
Troubleshooting
The EXFO support team might ask for more detailed information should
the system not behave as expected.
³ You can configure the logging level and retrieve the system logs with
the corresponding /logs endpoints.
³ You can obtain debug information on a test execution with the
/otdr/tests/{testid}/result/dump endpoint.
IMPORTANT
³ You can only schedule one OTDR test a time.
³ Only the data of the last two OTDR tests is stored. As soon as
you request a test, the data of the oldest test is discarded.
³ Restarting your unit discards all test data.