Paragon-neo: Checking the status of the instrument
Before executing remote-control commands, it is essential to confirm that the instrument is in the correct state, as many commands depend on specific system conditions and to allow the execution to continue uninterrupted. For instance, the following API call is used to change the operating mode of the SyncE Wander Generation app, which would require no generation running to be applied:
put/app/generation/synce/wander/mode
The remote-control API offers services to determine the run state of each application. Below are some commonly used applications:
SyncE ESMC and Wander generation status:
/app/generation/synce/esmc/{Port}/app/generation/synce/wanderSyncE Wander measurement status:
/app/measurement/synce/wander/{PortNumber}CAT or PFV status:
/cat/general/status/pfv/general/status
Following on from the previous example mentioned above, to check the status of the wander generation application using the wrapper command calnexGetVal in Python:
state = calnexGetVal("app/generation/synce/wander", "RunState")
This command will return a Boolean value, either True if the app is running or False that can be used as a condition to continue running the script.
More sample functions for checking the link status and the reference status can be found in this article: Paragon-neo/100G: Some simple REST examples - Calnex Product FAQ - Confluence