Managing blackouts using an event


In addition to managing blackouts using the BMC TrueSight Infrastructure Management administrator console and command-line interface commands, you can manage blackouts using an event.

The following table lists the mandatory slots for each operation:

Operation

Mandatory slots

Create new blackout

blackout_name
include_time_frames
or blackout_duration

Update blackout

blackout_name

Delete blackout

blackout_name
delete_blackout

To create a new blackout

From the command-line interface, use the msend command to create a new blackout.

Examples of different slot combinations:

  • blackout_name, blackout_duration, and selector_name
    msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; blackout_Duration=2h;selector_name=All_Events"
  • blackout_name, blackout_duration, and based_on_class
    msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; blackout_Duration=2h;based_on_class=ITDA_Event"
  • blackout_name, include_time_frames
    msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; include_time_frames=[tf_IT,tf_FINANCE]"

To update an existing blackout

From the command-line interface, use the msend command to update a new blackout.

You can update a blackout created using the administrator console, mposter command, or through an event.

If you update a blackout using a different "based_on_class" slot value, a new selector for that class is created. But if you update a blackout using the same "based_on_class" slot value, an existing selector is used.

Examples of different slot combinations:

  • blackout_name, include_time_frames with same class
    msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekDays;include_time_frames=[TF_Tuesday]"
  • blackout_name, include_time_frames with different class
    msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekDays;include-time_frames=[TF_Monday];based-on_class=PATROL_EV"

To delete an existing blackout

From the command-line interface, use the msend command to delete a blackout.

You can delete a blackout created using the administrator console, mposter command, or through an event.

Example:

msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=BO;delete_blackout=YES"

Note

The blackout_name slot is the key for blackout configuration. Ensure that you use the same value for updating and deleting blackouts.

Related topics

Creating-a-new-standard-blackout-policy

Creating-a-new-component-based-blackout-policy

Webinar: Blackout Policies


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*