The caWmiAgent can be used to monitor Windows WMI Resources, such as files, scheduled tasks, processes, and so forth. You must first identify those jobs that were created using the AT command, and then add a watcher in Agent Technology. For more information about the agent-specific options of caWmiAgent, see the guide Inside Systems Monitoring , which you can find either on the product media or online at
You can configure caWmiAgent to monitor Windows Scheduled Jobs if the jobs or tasks are created using AT command.
Note: If a Task was created manually from Control Panel -> Scheduled Tasks, the WMI agent cannot recognize it. See below for information on how to monitor the status of these tasks.
To run a WMI query to see all the Scheduled Jobs
- From the Desktop, select Start,
The Run dialog appears.
- Enter WBEMTest and click OK.
The Windows Management Instrumentation Tester window appears.
- Click Connect.
The Connect window appears.
- Enter the following for the first field Namespace and then click Connect:
The Windows Management Instrumentation Tester appears again.
- Under the IWbemServices section, click Query.
The Query dialog appears.
- Enter the following WMI Query to list all Scheduled Jobs/Tasks
select * from Win32_ScheduledJob
- Click Apply.
The query displays all the Jobs that were created using AT command only.
To monitor the Status of a Job created using the AT command
- Go to %AGENTWORKS_DIR%\AGENTS\BIN.
- Double-click cawmicnf.exe, enter ?Username = caunint' and provide the password.
- Launch Agent View for WMI Agent from the 2D Map, from Management Command Center (MCC), or from Node View.
- From the WMI Watcher interface, click Add Watcher.
- Enter the following details, and then click Apply to finish.
(Specifies the JobId you want to monitor)
(Click Property List to select a Property)
(Action: Down Critical)
(Action: Down Critical)
Note: String Match indicates the WMI property value which is returned by the WQL query.
The Watcher will query against ?JobId=7? (example: select JobStatus from Win32_ScheduledJob where JobId=7). If the Watcher returns Success (Job Status is Success), then the Watcher status will be Normal; if the Watcher returns Fail, then the Watcher status will show Critical status.
To monitor Scheduled Jobs created from Control Panel -> Scheduled Tasks
Scheduled Jobs or Tasks created manually cannot be found by WMI. Therefore, the caWmiAgent cannot monitor a Job property such as Status. However, Microsoft's Scheduled Tasks writes its results to a file : %SystemRoot%\SchedLgU.Txt.
With this text file you can use the Log Agent (caiLogA2) to monitor that file for certain job failures or errors.
For more information about how to use the Log Agent, see the chapter Monitoring System Resources in Inside Systems Monitoring.