Environmental variables that the BlackBerry Enterprise Server Log Monitoring Tool uses
The BlackBerry Enterprise Server Log Monitoring Tool sets the following environmental variables before it performs any of the actions that you specify:
|
Variable |
Description |
|---|---|
|
LogMonitorEncoding |
This variable specifies the type of encoding that is used for the file. For example, the value might be “ ” or UTF-8 encoded. |
|
LogMonitorEvent |
This variable specifies the event ID in the log file name. |
|
LogMonitorAction |
This variable specifies the action that the tool performs after it finds the requested event ID or text string. |
|
LogMonitorText |
This variable specifies the text string. |
|
LogMonitorValue |
This variable specifies the value that the tool returns that matches an event ID or text string. |
You can use these variables when you specify the actions that you want the tool to perform. For example, you can use the variables in a batch script (.bat file) that sends an email message when the tool finds a specific event ID. You can design the script to use the LogMonitorEvent value in the subject line of the email message. For example, the script can send an email message with the subject "40702".
Example: Accessing and displaying environmental variables on the screen
A batch script that accesses and displays environmental variables on the screen can include the following lines:
@echo off echo "LogMonitorEncoding=%LogMonitorEncoding%" echo "LogMonitorEvent=%LogMonitorEvent%" echo "LogMonitorAction=%LogMonitorAction%" echo "LogMonitorText=%LogMonitorText%" echo "LogMonitorValue=%LogMonitorValue%"
Was this information helpful? Send us your comments.