delete_blackout
Deletes a blackout that has already ended or has been fully stopped. You cannot delete a blackout that is either in progress or currently scheduled. You must first run stop_blackout.
Format
emcli delete_blackout
-name="name"
[-createdby="blackout_creator"]
[-emd_url="emd_url"]
[ ] indicates that the parameter is optionalOptions
-
name
Name of the blackout to delete.
-
createdby
Enterprise Manager user who created the blackout. The default is the current user. The
SUPER_USERprivilege is required to delete a blackout created by another user. For blackouts created via emctl, -createdby="<SYSTEM>" should be specified. -
emd_url
The emd_url of the agent through which emctl blackout was created. This is a mandatory parameter for blackouts created through emctl.
Examples
Example 1
This example deletes blackout backup_monthly created by the current user.
emcli delete_blackout
-name=backup_monthly
Example 2
This example deletes the blackout black_2015-04-14 04:45:10 which was created via emctl for the given unique name.
emcli delete_blackout
-name="black_2015-04-14 04:45:10"
-createdby="<SYSTEM>"
-emd_url="https://myhost.example.com:1234/emd/main/"