Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
An Agent client to control the JobScheduler Universal Agent via the command line. The client uses the Agent web services.
Features:
- Send a command
- Show information
Examples
Show information
agent-client.sh http://127.0.0.1:5000 /overview agent-client.sh http://127.0.0.1:5000 /processHandler
Terminate Agent
agent-client.sh http://127.0.0.1:5000 '{$TYPE: Terminate, sigtermProcesses: true}' agent-client.sh http://127.0.0.1:5000 '{$TYPE: Terminate, sigtermProcesses: true}' /overview /processHandler
Usage
The first argument is the Agent URI, for example http://localhost:5000
The following arguments are web service names (each starting with a slash) or commands (JSON or YAML).
With no argument, the client checks wether the Agent is alive.
The command responses are written to stdout. In case of an error, the error message is written to stdout, and detailed messages are written to stderr.
Exit code 0 means success.