clear_problem
Clears problems matching the specified criteria (problem key, target type, and age). Only users with Manage Target privilege can clear the problems for a target. When a problem is cleared, the underlying incidents and events are also cleared.
By default, the problem notification is not sent out. You can override this by specifying the send_notification option. Clearing the underlying incidents and events does not send out a notification.
Format
emcli clear_problem -problem_key="problem_key" -target_type="target_type" -older_than="age_of_problem" [-target_name="target_name"] [-unacknowledged_only="clear_unacknowledged_problems"] [-send_notification="send_notifications_for_problems"] [-preview] [ ] indicates that the parameter is optional
Options
-
problem_key
Problem key of the problem to be cleared
-
target_type
Internal type name, such as oracle_database for "Oracle Database." You can use the get_target_types command to get the internal name for a target type.
-
older_tha n
Specify the age (in days) of the problem.
-
target_name
Name of an existing non-composite target. For example, the name of a single database. You cannot use the name of composite targets (target group).
-
unacknowledged_only
If provided, only the unacknowledged problems are cleared. This option does not require any value.
-
send_notification
If provided, any applicable notification is sent out for cleared problems. By default, no notification is sent for cleared problems. This optiondoes not require any value.
-
preview
Gets the number of problems that the command would clear.
Examples
Example 1
This example clears ORA-600 problems across all databases that have occurred (based on the occurrence date of the first incident) for at least 3 days.
emcli clear_problem -problem_key="ORA-600" -target_type="oracle_database" -older_than="3"
Example 2
This example sends applicable notifications when the problem clears. By default, a notification is not sent for the cleared problems.
emcli clear_problem -problem_key="ORA-600" -target_type="oracle_database" -older_than="3" - send_notification