Use this Knowledge Script to monitor the state of a BITS job. This script raises an event if a BITS job is in error state and when it is not in error state.
For Windows Sever 2008 and Windows 2008 R2 or later, you can run this script on both 32-bit and 64-bit platforms. For older versions of Windows, you can only run this script on 32-bit platforms.
This script requires version 2.0 or later of Windows .NET Framework on the computer you want to monitor.
BITS Job object
The default interval for this script is Every 5 minutes.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
Raise event if BITS job is in error state? |
Set to y to raise an event when the BITS job is in the error state. The default is y. |
Raise event if BITS job is not in error state? |
Set toy to raise an event when the BITS job is not in the error state. The default is y. |
Collect data for status of BITS job? |
Set to y to collect data for charts and reports. If enabled, data collection returns the state of the BITS job: canceled, executing, completed, or error. The default is n. |
Event severity when BITS job not in error state |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which the BITS job is not in an error state. The default is 25 (blue event indicator). |