Agent Toolbox
The Agent Toolbox contains a group of utilities that BMC Customer Support can use to analyze proper functionality and troubleshoot issues in the Agent. Use the toolbox only when instructed by BMC Support to run tests on the Agent.
The tools in this toolbox are divided into several groups, according to the following categories:
-
CPU Tests: Provides tools for CPU and memory monitoring, as described in Running CPU Tests on the Agent Host.
-
System Tests: Provides tools for obtaining and analyzing system-level statistics, including the following system-level information; I/O measurements for files and details of DLLs, OS error details and time zone details, and Information about semaphores and locks, as described in Running System Tests on the Agent Host.
-
Analysis of Agent Functionality: Provides tools for analysis of various aspects of Agent functionality, including Analysis of disk space in Agent directories, Verification of WMI connections, and Stress tests for system monitoring, as described in Analyzing Agent Functionality.
-
Analysis of the Agent Operating System: Provides tools for analysis of the Agent operating system, including a check for compliance with operating system requirements and file system stress test, as described in Analyzing the Agent Operating System.
-
Analysis of Logs: Provides tools that help you scan the Agent logs for issues, as described in Analyzing the Agent Logs.
-
Job Tracker Checks: Provides tools that enable you to check the Job Tracker on the Agent host, as described in Checking the Job Tracker on the Agent Host.
-
Job Tracking Management Tasks: Provides tools that perform job tracking tasks on the Agent host, as described in Managing Job Tracking on the Agent Host.
(Windows only) Run the Agent Toolbox as administrator, using the command prompt (cmd).
Running CPU Tests on the Agent Host
This procedure describes how to run tools for monitoring of CPU and memory usage by the Agent. The Agent Toolbox offers several CPU tests that you can run on the Agent host.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
-
Linux: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
-
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 1 (CPU tests) and press ENTER.
-
in the CPU Tests menu, type the number of the relevant option:
-
1 - Get CPU specs
-
2 - CPU usage
-
3 - CPU and Memory monitoring
-
4 - CPU and Memory monitoring during changes of a directory
-
-
In the menu of the selected CPU test, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tests, including a description of the input parameters and the final output, see CPU Tests: Input and Output.
CPU Tests: Input and Output
The following table lists the tools for CPU tests in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - Get CPU specs (LINUX only) |
No input parameters. |
Basic CPU specifications for the LINUX platform. |
2 - CPU usage |
|
Percentage of CPU usage for each sample and an average of CPU usage from all samples. |
3 - CPU and Memory monitoring |
|
(In the output file) Process information and process memory details for each test run. |
4 - CPU and Memory monitoring during changes of a directory |
|
(In the output file) Process information and process memory details from the first run and from various subsequent runs, provided that changes were detected in the specified directory. |
Running System Tests on the Agent Host
This procedure describes how to run system-level tests on the Agent host using the Agent Toolbox.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 2 (System tests) and press ENTER.
-
In the System Tests menu, type the number of the relevant option:
-
1 - IO check
-
2 - Get OS Error description
-
3 - Check time zone
-
4 - Semaphore simulator
-
5 - File lock simulator
-
6 - Directory lock test
-
7 - DLL Tester
-
8 - Check execv
-
-
In the menu of the selected system test, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tests, including a description of the input parameters and the final output, see System Tests: Input and Output.
System Tests: Input and Output
The following table lists the tools for system tests in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - IO check |
|
Results of the IO test: The number of open/write/close actions performed on the file during the test and the average time (in milliseconds) that a write action took. |
2 - Get OS Error description |
1 - Error number: Defines the number of the system error for which you want details. |
Details of the specific system error. |
3 - Check time zone |
No input parameters. |
Time zone specifications from the Agent host. |
4 - Semaphore simulator (Linux only) |
1 - File path: Determines the file path where you want to perform the semaphore simulation. |
Descriptions of the steps during semaphore simulation on the specified file. |
5 - File lock simulator (Linux only) |
1 - File path: Determines the file path where you want to perform the lock simulation. |
Descriptions of the steps during lock simulation on the specified file. |
6 - Directory lock test (Windows only) |
|
Details about the processes that hold a lock on the directory. If you chose T as the type of service, these processes are terminated. NOTE: Before the first time that you run this tool, you must download the Handle utility from the Windows Sysinternals site and place it in the Toolbox directory. In addition, you must run the tool as an Administrator. |
7 - DLL Tester (Windows only) |
DLL/EXE Directory: In the DLL/EXE Test window, browse and select the directory to analyze. |
Details of the DLL files in the specified directory (full path to the file, whether 32-bit or 64-bit, and version of the DLL). |
8 - Check execv (Linux only) |
|
Results of the execv system call, which simulates Agent calls. |
Analyzing Agent Functionality
This procedure describes how to run the Agent Toolbox utilities that analyze Agent functionality.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 3 (Agent Help Tools 1) and press ENTER.
-
In the Agent Help Tools 1 menu, type the number of the relevant option:
-
1 - Analyze disk space in Agent's directories
-
2 - WMI Verify
-
3 - System Monitoring
-
4 - Permission Check Utility
-
5 - Java Version Matching Check
-
6 - Agent Image validation
-
7 - Extract XML from log file
-
8 - HTTP(S) Connectivity
-
9 - Extract SaaS Token
-
-
In the menu of the selected utility, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tools, including a description of the input parameters and the final output, see Agent Analysis Tools: Input and Output.
Agent Analysis Tools: Input and Output
The following table lists the Agent analysis tools in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - Analyze disk space in Agent's directories |
1- Debug Level: Determines the level of logging for this test, from 0 (no logging) to 4 (most detailed logging). The default is 0. |
A list of Agent directories that cannot be modified, and another numbered list of Agent directories that contain files that can be deleted. You can request more cleanup information about each of the directories in the second list. |
2 - WMI Verify (for Windows to Windows connections) |
|
Results of various tests to verify that a Windows Management Instrumentation (WMI) connection can be established and all WMI prerequisites are met. If debugging is turned on, detailed information is provided. |
3 - System Monitoring |
|
Stress tests are performed in the following areas of the system:
Results from all iterations of these stress tests are summarized in a file named tool_box_measures.csv, in a directory named Measure within the Agent Home directory. Basic statistics are provided for each test iteration, including time measurements and state (OK, Warning, or Problem). |
4 - Permission Check Utility |
|
Checks permissions for a specific user and a specific file. |
5 - Java Version Matching Check |
No input required. |
Results of a check for matching of the java version on the Agent. |
6 - Agent Image validation |
No input required. |
Results of a check for problems in the Agent image. |
7 - Extract XML from log file |
|
Notification that the .xml file was created and contains entries from the specified log file. |
8 - HTTP(S) Connectivity |
|
Results of an HTTPS connectivity check from the Agent host using either java HTTPS or an Apache HTTPS client. |
9 - Extract SaaS Token |
|
Results of a check of the HTTPS that extracts the endpoint URL from an Agent token that is used during Agent installation. |
Analyzing the Agent Operating System
This procedure describes how to run the Agent Toolbox utilities that analyze the Agent operating system.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 4 (Agent Help Tools 2) and press ENTER.
-
In the Agent Help Tools 2 menu, type the number of the relevant option:
-
1 - Prerequisite Check
-
2 - File System test
-
3 - "Secret" files permissions check
-
4 - Extract Datadog Alerts
-
-
In the menu of the selected utility, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tools, including a description of the input parameters and the final output, see Agent Operating System Tools: Input and Output.
Agent Operating System Tools: Input and Output
The following table lists the analysis tools for the Agent operating system in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input Parameters |
Output |
---|---|---|
1 - Prerequisite Check (Linux only) |
No input required. |
Results of a check for compliance with the minimal operating system requirements described in Control-M Limits on UNIX Accounts. |
2 - File System test (Windows only) |
|
Results of a stress test on a Windows operating system. This test performs various operations, repeated in a loop, and uses multiple threads. Operations include the creation of large files with random data, writing to the registry, and renaming and deleting the created files. The output is written to a log file. |
3 - "Secret" files permissions check (Linux only) |
No input required. |
A list of "secret" files, such as SSH keys or encrypted files, with incorrect read permissions. If no problems were detected, a message notifies you that all files are OK. |
4 - Extract Datadog Alerts |
|
A list of alerts or performance metrics created by the Agent and sent by the Agent Uploader to Datadog via AWS S3. |
Analyzing the Agent Logs
This procedure describes how to run the Agent Toolbox utilities that analyze Agent logs.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 5 (Agent Log Tests) and press ENTER.
-
In the Agent Log Tests menu, type the number of the relevant option:
-
1 - Time gaps in log
-
2 - Analyze daily log
-
3 - Check Memory Leaks
-
-
In the menu of the selected utility, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tools, including a description of the input parameters and the final output, see Log Analysis Tools: Input and Output.
Log Analysis Tools: Input and Output
The following table lists the log analysis tools in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - Time Gaps in Log |
|
A list of detected gaps in the Agent proclog file. |
2 - Analyze Daily Log |
|
A list of alerts for jobs that took a long time to submit (exceeding the specified threshold), as detected in each of the daily logs. |
3 - Check Memory Leaks |
|
To ensure that leaks are detected, set the Agent debug level to 6 (the highest value). Use the following command: Linux: agdbglvl 6 Windows: agdbglvl -agent <instanceName> 6 A list of leaks in threads, where a malloc function was not followed by a free function, as detected through the proclog files. If you set the debug level of this test to a value above 0, a log file is created for this test in the same directory. |
Checking the Job Tracker on the Agent Host
This procedure describes how to run Agent Toolbox utilities that check the Job Tracker on the Agent host.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 6 (Tracker tests) and press ENTER.
-
In the Tracker tests menu, type the number of the relevant option:
-
1 - Starved jobs
-
2 - Tracker workers list
-
3 - Job locks
-
-
In the menu of the selected utility, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tools, including a description of the input parameters and the final output, see Job Tracker Checks: Input and Output.
Job Tracker Checks: Input and Output
The following table lists the Job Tracker Check tools in the Agent Toolbox, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - Starved jobs |
|
A list of job status files that have not been modified for some time. This report is written to the Tracker log. |
2 - Tracker workers list |
|
A list of Tracker workers currently associated with the Job Tracker, with basic details for each one. This report is written to the Tracker log. Tracker workers are created by the Tracker in response to the accumulation of jobs, and they are responsible for performing monitoring actions on the job status files. |
3 - Job locks |
|
A list of existing locks on jobs that are currently being tracked, with an indication of which Tracker worker is responsible for each lock. This report is written to the Tracker log. |
Managing Job Tracking on the Agent Host
This procedure describes how to run Agent Toolbox utilities that perform job tracking tasks on the Agent host.
Begin
-
Open a command prompt window where the Agent is installed.
-
Run the toolbox by entering the full path to the toolbox script file, enclosed in quotes:
LINUX: "<AGENT_HOME>/ctm/toolbox/toolbox.sh"
Windows: "<AGENT_HOME>\toolbox\toolbox.bat"
-
In response to the Start message, type Y (yes) and then press ENTER to continue.
-
In the Main Menu, type 7 (Tracker workers tests) and press ENTER.
-
In the Tracker workers tests menu, type the number of the relevant option:
-
1 - Send job track request
-
2 - Worker job track lists
-
-
In the menu of the selected utility, specify values for all required input parameters and for any of the optional input parameters. For each input parameter, do the following:
-
Type the number of the option and press ENTER.
-
Type the value for the input parameter and press ENTER.
-
-
Type r (Run) and press ENTER.
For more information about each of the tools, including a description of the input parameters and the final output, see...
Job Tracking Tasks: Input and Output
The following table lists the Agent Toolbox tools that enable you to perform Job Tracking tasks, along with details about the input parameters and output of each tool:
Tool |
Input parameters |
Output |
---|---|---|
1 - Send job track request |
|
This tool manually initiates a Job Track request for a specific job. A message regarding this action and its results is written to the Tracker log. |
2 - Worker job track lists |
|
A list of jobs that a Tracker worker is responsible for tracking, with basic information for each job. This report is written to the Tracker log. |