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

add

Indicates that this command is adding Event Suppression Periods.

-f filename

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

-hor

-? or

--help

Provides a brief help message.

-u username or

--user username

Indicates that the parameter username used for connecting to the services.

-p password or

--password password

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.

-s or

--stdin

Specify password via stdin. This is mutually exclusive with -p.

-d

Run the command in debug mode.

-v

Run the command in verbose mode.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*