activatenotification CLI command
Use this command to activate notifications for the specified notifications or all notifications. You can only activate notifications that already exist.
Additionally, you can preview the notifications that will be affected by the criterion that you specify.
To understand the syntax and examples, see:
Syntax
activatenotification -u <userName> -w <password> -d <hostName> -p <port> -n <Notification-List> [-l <locale>] [-s] [-y]
- Angle brackets (< >) indicate a variable value that needs to be user defined.
- Square brackets ([ ]) indicate optional parameters.
The following table describes the parameters used in the syntax:
Example inputs
The following example provides the input for activating notifications with the names, Errors in last one hour and Login failures:
activatenotification -u admin -w admin12345 -d localhost -p 9797 -n "Errors in last one hour", "Login failures"
The following example provides the input for activating all the existing notifications:
activatenotification -u admin -w admin12345 -d localhost -p 9797 -n all
The following example provides the input for activating notifications starting with the name HoustonNoti*:
activatenotification -u admin -w admin12345 -d localhost -p 9797 -n HoustonNoti*
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*