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.
From the command-line interface, use the msend command to create a new blackout.
Criteria | Example command |
---|---|
Selector name | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; blackout_Duration=2h;selector_name=ALL_Events" |
Class | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; blackout_Duration=2h;based_on_class=ITDA_Event" |
Timeframes | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekEnd_Blackout; include_time_frames=[tf_IT,tf_FINANCE]" |
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.
Criteria | Example command |
---|---|
Slot, existing timeframe, same class | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekDays;include_time_frames=[TF_Tuesday]" |
Slot, existing timeframe, different class | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=WeekDays;include-time_frames=[TF_Monday];based-on_class=PATROL_EV" |
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.
Criteria | Example command |
---|---|
Existing blackout | msend -n <Cell name> -a BLACKOUT_EV -b "blackout_name=BO;delete_blackout=YES" |