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 |
Update blackout | blackout_name |
Delete blackout | blackout_name |
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.
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"
Related topics
Creating-a-new-standard-blackout-policy
Creating-a-new-component-based-blackout-policy
Webinar: Blackout Policies