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
Note
Before you run the command, note the following points:
- Set up the CLI. For more information, see Managing the product from the command line interface.
- Prefix this command with the following, as appropriate:
- For Windows: itda.bat
- For Linux: ./itda.sh
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:
Parameter | Description |
---|---|
-u | User name to use to connect with the Console Server. |
-w | Password corresponding to the user name to use to connect with the Console Server. |
-d | Host name of the Console Server. |
-p | Port number of the Console Server. |
-n | Name of the notification that you want to activate. You can specify the name in the following ways:
Notes:
|
-l | (Optional) Indicates the locale in which you want to display messages when the command is run. You can set one of the following locales:
By default, the messages are displayed in the locale of the system on which the CLI is run. The value can be set to one of the following depending on the locale you choose:
Example: If you want to set the locale as Simplified Chinese, you need to specify, |
-s | (Optional) Indicates an HTTPS connection. |
-y | (Optional) Preview the notifications that will be affected by this command. Note: This parameter only provides a preview and does not actually run the command. To run the command, you must exclude this parameter. |
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*
Comments