MIDServerManage - Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The MIDServerManage script include provides methods that allow you to manage a MID Server by sending messages to start, stop, upgrade, get logs, send test probes, and send system messages.
Use in server scripts to send messages to a MID Server.
MIDServerManage - MIDServerManage()
Creates an instance of MIDServerManage.
Name | Type | Description |
---|---|---|
None |
MIDServerManage - grab_logs(String agentName, String logs)
Gets the logs for the specified MID server.
Name | Type | Description |
---|---|---|
agentName | String | The MID server name |
logs | String | The type of log to get (Optional) |
Type | Description |
---|---|
String | The log message |
Example
Output: Background message, type:info, message: Grabbing MID Server Logs
MIDServerManage - restart(String agentName)
Restarts the specified MID server.
Name | Type | Description |
---|---|---|
agentName | String | The MID server name |
Type | Description |
---|---|
void |
Example
MIDServerManage - stop(String agentName)
Stops the specified MID server.
Name | Type | Description |
---|---|---|
agentName | String | The MID server name |
Type | Description |
---|---|
void |
Example
MIDServerManage - system_msg(String agentName, String cmd, String name)
Creates a system message for the specified MID server.
Name | Type | Description |
---|---|---|
agentName | String | The MID server name |
cmd | String | The value of the probe source field |
name | String | The name of the probe |
Type | Description |
---|---|
void |
Example
MIDServerManage - text_probe(String agentName, String probeID, String topic, String ename, String source)
Sends a test probe for the specified MID server.
Type | Description |
---|---|
Object | The probe for the specified MID server |
Example
MIDServerManage - upgrade(String agentName)
Upgrades the specified MID server.
Name | Type | Description |
---|---|---|
agentName | String | The MID server name |
Type | Description |
---|---|
void |
Example
On this page
- MIDServerManage - MIDServerManage()
- MIDServerManage - grab_logs(String agentName, String logs)
- MIDServerManage - restart(String agentName)
- MIDServerManage - stop(String agentName)
- MIDServerManage - system_msg(String agentName, String cmd, String name)
- MIDServerManage - text_probe(String agentName, String probeID, String topic, String ename,
String source)
- MIDServerManage - upgrade(String agentName)