stopcollection CLI command
Use this command to stop collection of all data collectors together or particular data collectors as per the criterion specified. Additionally, you can preview the data collectors that will be affected by the criterion that you specify.
To understand the syntax and examples, see:
Syntax
stopCollection -u <userName> -w <password> -d <hostName> -p <portNumber> -c <criterion> -tag <TagName=TagValue> [-y] [-v] [-s]
- 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 stopping the collection of data collectors starting with the name houston:
stopCollection -u admin -w admin12345 -d localhost -p 9797 -c hostName=”houston*”
The following example provides the input for stopping the collection of all data collectors:
stopCollection -u admin -w admin12345 -d localhost -p 9797 -c hostName=_ALL_
The following example provides the input for stopping the collection of data collectors based on the following criteria:
- Data collectors associated with the tag name=value as OS=Windows.
- Data collectors starting with the name SSH.
stopCollection -u admin -w admin12345 -d localhost -p 9797 -c collectorName=”SSH*” -tag OS=Windows