Deleting event suppressions with the CLI by specifying a file

When deleting a list of event suppressions for a specific object, you can specify the object properties by specifying a file that contains those properties. When you specify the -f option and a CSV file, the delete verb deletes a list of event suppressions for a specific object.

The CSV format file must contain either the first 2 or all 5 of 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.

Manage Event Suppression command line syntax:

manageEventSuppression [options] –filename delete

The following table lists the required and optional parameters for the manage event suppression command tool.

Parameters

Description

delete

Indicates that this command is deleting Event Suppression Periods.

-f filename

Name of a file containing the event suppression information. Required to read events from a file. If the filename is -, 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.

--inherited

Any suppression for supervisory objects is included.

--descendents

Any suppression for descendent objects is included.

-d

Run the command in debug mode.

-v

Run the command in verbose mode.

Was this page helpful? Yes No Submitting... Thank you

Comments