Defining tags rules
A tags rule copies the value of another field to the tags field so that it becomes searchable in the UI.
About this task
A resource's tags can be searched via the UI, and matching resources can be displayed. Resources with common tags can optionally be grouped using a tag-based template definition.
A tags rule populates the tags of resources matched by the rule. See the following sample tags rules for more information.
You can create custom tags on IBM Tivoli Network Manager, which the ITNM Observer can integrate into Agile Service Manager tags. For information on creating custom tags in Network Manager, see the Adding name-value pairs to entities using the File finder topic in the IBM Tivoli Network Manager IP Edition documentation.
On the Details section of the New tags rule (or Edit tags rule) page, you define the name, status and tokens for the rule.
- Enter a name, which must be unique within the context of the tenant. You cannot change the name of an existing rule. If you want a rule to have a different name, create a new rule, then delete the old one.
- Toggle the rule status to be either Enabled or
Disabled Observers will only apply rules which are in an enabled state.
- Define tokens for the rule, then click Add+.
The tokens defined as part of a rule contain the list of shared resource parameter names that will become tags for those resources to which the rule is applied. Tag tokens can be constructed using variable substitutions, which allow you to combine more than one property value in a token and also combine them with literal strings, as shown in this example.
- Select observers to which this rule applies from the Observer name
drop-down. Leave empty to apply the rule to all observers.
- Select providers to which this rule applies from the Provider name
drop-down. Leave empty to apply the rule to all providers.
- Select resource types to which this rule applies from the Resource
type drop-down. Leave empty to apply the rule to all resource types.
- Set the Token filter mode to either Exclude or
Include, then define a filter in the format of a regular expression. You can
set more than one filter.
- Tokens which match any one of the expressions will not be applied to resources.
- Only tokens which match one of the expressions will be applied to the applicable resources.
- Validate you filters using the Validate token filters button.
- Click Save.