Skip to content

Upgrade the test agent service from center service

HydraXMan edited this page Dec 26, 2022 · 1 revision

Operations in Center

Swagger-UI: https://hydradevicenetwork.azurewebsites.net/swagger-ui/index.html#/

1. Upload Agent jar

API: /api/package/addAgentPackage

image

2. Choose an Agent to Update

API: /api/agent/updateAgent

image

3. Get Update Status and Messages

API: /api/agent/getUpdateInfo

image

After auto restarting the value of updateStatus will be changed to SUCCESS.

Updates for Agent Owner

For Windows

  1. There is no need to do this, if restartAgent.bat has been existed in the installer folder.
  2. Copy restartAgent.bat in restartAgent.zip to the install folder of Hydra Lab Agent.
  3. Make sure you have enabled Windows service for Hydra Lab.

image

For Linux

  1. There is no need to do this, if restartAgent.sh has been existed in the installer folder.
  2. Copy and Chmod -R 777 restartAgent.sh in restartAgent.zip to the install folder of Hydra Lab Agent.

image

Clone this wiki locally