Printer FriendlyEmail Article Link

Spirent TestCenter - Automation: How to check the stcapi version of the LabServer

Environment/Versions
Virtual LabServer
Answer
You can use the ”system_info” method of the stcrestclient library:
 
from stcrestclient import stchttp

stc = stchttp.StcHttp(server=LAB_SERVER_IP, port=80)
stc.system_info()

You show get a similar output:

{'supported_api_versions': ['1'], 'features': ['bulk-api', 'client-role'], 'time': 'Thu 15 Apr 2021 18:09:41 UTC', 'stcapi_version': '2.5.3'}

Product : Automation,LabServer,Spirent TestCenter