Support for blackouts
This topic discusses how to set and control blackouts for various BMC PATROL objects.
Using blackouts
You can set blackouts for various PATROL objects such as parameters, application instances, or application classes by using the BMC PATROL Agent configuration interface.
You can control blackouts for PATROL objects by using options for setting types of blackouts.
You can use the /AgentSetup/Blackout configuration branch to configure blackouts for PATROL objects. The branch maintains the list of objects that you want to black out and the object-specific blackout configuration such as the type of blackout, schedule information, duration, and information message to be associated with the blackout.
You can configure a blackout by using pconfig, wpconfig (Windows), xpconfig (UNIX ® ), PATROL Configuration Manager, or a PSL pconfig script, by using the following format:
The preceding format contains the following options:
<object> represents the PATROL object that you want to black out. Specify the PATROL object as described in the following table.
PATROL objects
PATROL object options
Description
Application class
Blackout is applied to the specified application class, and all the instances and the parameters contained in the application class instances.
Application class instance
Blackout is applied to the specified application class instance and all its parameters.
Parameter
Blackout is applied to the specified parameter.
The object is specified in the following format:
/APP_NAME[/INST_NAME][/PARAM_NAME]You can specify the application class ([/APP_NAME]) in an exact form, and in a generic form by using the __ANYAPPL__ wildcard string, as illustrated below:
- For exact: /AgentSetup/Blackout/FILESYSTEM
- For generic: /AgentSetup/Blackout/__ANYAPPL__
__ANYAPPL__ applies the blackout to all the application classes, instances, and parameters contained in that application class.
You can specify the application class instance ([/INST_NAME]) in an exact form, and in a generic form by using the __ANYINST__ wildcard string, as illustrated below:
- For exact:/FILESYSTEM/dev-pts/FSCapacity
- For generic:/FILESYSTEM/__ANYINST__/FSCapacity
For example,
- TYPE represents the type of blackout. Specify the name of the type of blackout based on the PATROL object activities that you want to suppress during blackout, as described in the following table.
Types of blackout
Type name | Type value | Description |
---|---|---|
TYPE_COLLECTION | 1 | Suppresses data collection for parameters of an application class or an application class instance |
TYPE_ALARM | 2 | Suppresses range evaluations |
TYPE_EVENT | 4 | Suppresses event generation
|
TYPE_RECOVERY | 8 | Suppresses recovery action |
TYPE_SNMPTRAP | 16 | Suppresses Simple Network Management Protocol (SNMP) traps generated by the standard event classes |
TYPE_INFO | 32 | Generates only the blackout start and stop information events |
TYPE_ALL | 63 | Runs all blackout types |
When an event is generated for a PATROL object, the event description displays the type values described in the above table for various types of blackout.
You can define multiple types by separating the types by using a | as in case of TYPE_EVENT|TYPE_RECOVERY|TYPE_COLLECTION, TYPE_RECOVERY|TYPE_SNMPTRAP, and so on.
START_INFOrepresents the condition when you want the blackout to start for the specified object. Specify START_INFO in the following format:
START \[ONCE/DAILY/DOW/DOM] \[LIST OF DAYS\] AT TIMEThe following table describes the values that you can specify for START_INFO.
START_INFO options
START_INFO options
Description
ONCE
Applies the blackout once
DAILY
Applies the blackout daily
DOW
Applies the blackout on a day of the week
To specify Monday, enter 1; for Tuesday, enter 2; and so on.DOM
Applies the blackout on a day of the month (1 to 31)
LIST OF DAYS
Applies the blackout on the list of days that you specified as a range by using ‘-' or as comma-separated values
This is applicable for the DOW and DOM options.
Note: The following happens when you specify a range:- For DOW, if you do not specify the start day in the range, the product assumes Monday as the start day; similarly, if you do not specify the end day in the range, the product assumes Sunday as the end day.
- For DOM, if you do not specify the start date in the range, the product assumes 1st as the start date; similarly, if you do not specify the end date in the range, the product assumes the last date of the month as the end date.
TIME
Applies the blackout at the time that you specified in the Hour:Min format (24-hour format), when you want the blackout to start
- DURATION represents the duration for which you want the blackout to be applied. Specify the duration in minutes.
If you set the duration to 0 (zero), the blackout is set for an infinite duration. - INFO_MSG represents the information message that you want the product to render on the consoles, for the BlackoutStart and BlackoutStop events.
For the examples that illustrate the usage of the blackout functionality, see Examples.