Use this command to add or delete tags for an existing data collector.
To understand the syntax and examples, see:
Note
Prefix this command with the following, as appropriate:
editcollector -u <userName> -w <password> -d <hostName>
-p <portNumber> -n <CollectorName> -addtag <TagName=TagValue> -deltag <TagName=TagValue> [-v] [-s]
In the preceding syntax, angle brackets (< >) indicate a variable value that needs to be user defined.
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 | Data collector name for which you want to add tags or delete existing tags. Notes:
|
-addtag | Tags that you want to add to the specified data collector. This parameter must be specified in the format, For example, to add the tag, OS=Windows, you need to specify the following criterion:
You can specify multiple tag name=value pairs by specifying a space-separated list and by preceding the name=value pair with the parameter, For example, Notes:
|
-deltag | Tags that you want to delete to the specified data collector. This parameter must be specified in the format, For example, to delete the tag, OS=Windows, you need to specify the following criterion:
You can specify multiple tag name=value pairs by specifying a space-separated list and by preceding the name=value pair with the parameter, For example, Notes:
|
-v | (Optional) Version of the IT Data Analytics product. |
-s | (Optional) Indicates an HTTPS connection. |
The following example provides the input for adding and deleting tags for the data collector, Windows Events
:
editcollector -u admin -w admin -d localhost -p 9797 -n "Windows Events" -addtag OS=Windows -addtag OS=Linux -deltag Tier="Tier 1"