Executing tasks on BMC PATROL Agents from Infrastructure Management
You can perform the following tasks on BMC PATROL Agents by using Central Monitoring Administration or Operations Console:
- Run PSL commands on an agent
- Reinitialize an agent
- Kill an agent
- Reload an agent
- (Only using Central Monitoring Administration) Synchronize monitor instances with an agent
- (Only using Central Monitoring Administration)Configuration history for a BMC PATROL Agent
To work with the BMC PATROL Agents:
Perform the following tasks according to the console you use:
- Infrastructure Management Central Monitoring Administration
- In the navigation pane of Central Monitoring Administration, click the Servers drawer.
- Select an appropriate Infrastructure Management Server.
- In the Integration Service column, expand the Integration Service.
- In the Agent column, select an agent.
- Click the wrench icon
, and click Query Agent.
- operator console
- Perform one of the following tasks:
- In the Main drawer of the operator console, select Devices > Grid View. Select an agent, and click the blue wrench icon
.
- On the Show Monitors page, in the Tools Menu column of a monitor, click the blue wrench icon
.
- In the Main drawer of the operator console, select Devices > Grid View. Select an agent, and click the blue wrench icon
- Select Query Agent.
- Perform one of the following tasks:
Perform any of the following tasks that you want to perform on the BMC PATROL Agent:
Field/Icon
Description
Command
To select a commonly-used PSL command, click
and select a command from the list.
The PSL command appears in the Command box. Click Apply and then Execute.
To manually enter a PSL command, type the command in the Command box and press Enter, or click Execute.
The PSL command is run on the BMC PATROL Agent, and the result is displayed.
For example, %DUMP ALL
For information about the PSL commands, see the PATROL Script Language Reference Manual Volume 1—PSL Essentials.Reinitializes (restarts) an agent
Reloads the config.default file and the change file for a BMC PATROL Agent
Stops a BMC PATROL Agent
- Infrastructure Management Central Monitoring Administration
- If you have reinitialized, reloaded, or stopped a BMC PATROL Agent, on the confirmatory message, click OK.
Synchronizing monitor instances with a BMC PATROL Agent
You can synchronize monitor instances with a BMC PATROL Agent through Central Monitoring Administration. This process triggers the BMC PATROL Agent to resend all the instances that the agent monitors to Infrastructure Management.
To synchronize with the BMC PATROL Agents, perform the following tasks:
- In the navigation pane of Central Monitoring Administration, click the Servers drawer.
- Select an appropriate Infrastructure Management Server.
- In the Integration Service column, expand the Integration Service.
- In the Agent column, select the agent that you want to sync with.
- Click the wrench icon
, and click Sync Agent.
- On the confirmatory message, click Yes.
The monitor instances on the agent are synchronized with Infrastructure Management.
OS commands and the Query Agent functionality
You cannot run OS commands directly using the Query Agent functionality. You must run these commands using the system PSL function and view the output of this function using the print function. The following example shows how to of run the net user command using the system function:
Enter this command in the Command field of the Query Agent dialog box and click Submit.
The system command runs the OS command on the PATROL Agent. Enclosing the system command within the print command causes the command output to be displayed in the Query Agent output screen; otherwise, the command executes and the Query Agent screen displays the following message:
Configuration history for a BMC PATROL Agent
Using Central Monitoring Administration, you can view the applied configuration history for a BMC PATROL Agent (version 9.5 and later).
By default, the last 10 configurations applied to the BMC PATROL Agent are displayed.
- In the navigation pane of Central Monitoring Administration, click the Servers drawer.
- In the Agent column, select a BMC PATROL Agent.
- Click the wrench icon
and click Show History for applied configurations.
The table provides the following information:
Table field | Description |
---|---|
Time | The date and time when the policy was applied. |
Policies Considered | Policies that were applied on the BMC PATROL Agent. |
Status | Status of the policy - success, failure, or configuration removed. |
Configuration Sent | Details of the configuration sent to the BMC PATROL Agent. |