Adding event suppressions with the CLI by specifying a file
When adding an event suppression, you can specify its object and time properties by specifying a file that contains the required properties.
When you specify the –f option, the add command reads the suppression properties from a CSV format file.
The CSV format file must contain the following parameters in this order:
- instPath – The object's instance path
- typePath – The object's type path
- beginTime – The time to begin the suppression, in the format yyyy-MM-dd HH:mm:ss
- endTime – The time to end the suppression, in the format yyyy-MM-dd HH:mm:ss
- repeat – The type of repeat, NONE, EVERYDAY, EVERYWEEK, EVERYMONTH, EVERYYEAR
In CSV format, any comma in a parameter can be escaped by enclosing the parameter in quotes. Quotes can be escaped by using two quotes.
The Manage Event Suppression command line syntax is:
manageEventSuppression [options] –f filename add
The following table lists the required and optional parameters for the manage event suppression command tool.
Positional parameters | Description |
---|---|
| Indicates that this command is adding Event Suppression Periods. |
| Name of a file containing the event suppression information. Required to read events from a file. If thefile nameis -, the information is read from stdin. |
Optional parameters | Description |
| Provides a brief help message. |
| Indicates that the parameter username used for connecting to the services. |
| Password used for connecting to the services. If -p or -s is not specified, the user is prompted for the password. -p is mutually exclusive with -s. |
| Specify password via stdin. This is mutually exclusive with -p. |
| Run the command in debug mode. |
| Run the command in verbose mode. |
Comments