Download CA Workload Automation AE User Guide

Transcript
Define a Windows Event Log Monitoring Job
Example: Check If a String Does Not Exist in a File
This example searches lines 1 to 200 of the transmitter.log file for the text string
"Warning". If the string is not found, the job completes successfully. If the string is
found, the job fails.
insert_job: textfile_job
job_type: OMTF
machine: monagt
text_file_name: /export/home/log/transmitter.log
text_file_filter: Warning
text_file_mode: LINE
lower_boundary: 1
upper_boundary: 200
text_file_filter_exists: FALSE
monitor_mode: NOW
Define a Windows Event Log Monitoring Job
You can define a Windows Event Log Monitoring (OMEL) job to monitor a Windows
event log in the computer where the agent is running. The monitor returns the most
recent event available or continuously monitors for events in a particular Windows
event log.
Note: To run these jobs, your system requires CA WA Agent for Windows.
Follow these steps:
1.
Insert a job and specify the following attributes in the definition:
job_type: OMEL
Specifies that the job type is Windows Event Log Monitoring.
machine
Specifies the name of the machine on which the job runs.
win_log_name
Specifies the name of the event log.
366 User Guide