Creating a component signature
The Discover tab lets you can create a single component signature, which contains the conditions that must be satisfied for a component to be associated with a server.
For example, the conditions in a signature can check for membership in a list, determine whether creation dates fall within a certain range, check for inequalities, or compare text that you provide with text contained in configuration files, registry values, or metabase values.
The component signature can contain the following types of conditions:
- Basic conditions, which perform the following tasks:
- Check for the existence or number of occurrences (cardinality) of a configuration object, such as a service or a certain type of installed software.
- Compare configuration object properties or component properties with defined values or with other such properties.
- Conditional constructs, which organize multiple conditions in an if-then-else logical sequence.
For more information, see Defining-a-basic-condition and Defining-a-conditional-construct.
To create or edit a signature that associates a component with a server
On the content editor for the component template, click the Discover tab.
The lower half of the panel, Rule Definition, displays the rule definition for the signature. In this area, you can connect to the Rule Editor to edit the signature. The upper half, Parts to Include in Discovery Operation, lists the parts specified for analysis within the signature.- In the Rule Definition area, do one of the following:
- To create a new signature, click the Add
icon on the right.
To edit an existing signature, click the Edit
icon.
A new tab in the content editor displays the Rule Editor for defining a signature.
- To create a new signature, click the Add
- In the Rule Editor, do one of the following:
- To add the first condition to an empty signature, click the New Condition
icon for a basic condition, or click the drop-down arrow beside this icon and select from the full range of available condition types.
- Basic Condition for a basic condition
- If... Then... End, Elseif, or Else for a conditional construct or block within it
- To add a new condition to a signature that already contains other conditions, select the line above where you want the condition to appear before using the New Condition icon.
- To edit an existing condition within the signature, double-click the line that you want to edit. The text within the selected line is displayed in editable fields.
- To copy conditions from another location, select the relevant lines in the current signature or in a different signature, and click either Copy selected conditions
or Cut selected conditions
. Then place your cursor in the line above where you want to paste the conditions and click Paste conditions
.
- To add the first condition to an empty signature, click the New Condition
- In the displayed fields, provide the necessary input (such as operands and operators), as discussed separately for each type of condition in the following topics:
- Repeat steps 3 and 4 for all the conditions that you want to include in the signature.
- To modify the logical organization of multiple conditions, you can use any of the following additional options:
- To set logical operators between conditions (either AND or OR), use the last drop-down box at the end of each line. Within one block of conditions, all conditions on the same level must be connected using the same logical operator.
- To rearrange the order of conditions in the signature, select the relevant lines and click either Move up selected conditions
or Move down selected conditions
.
- Use the Not icon to add the NOT logical operator to a selected line. This logically reverses the TRUE/FALSE outcome of the full expression.
- Add parentheses to a selected line.
To delete a condition, select the relevant line and click Delete Selected Condition
.
- Click Save
.
- To test the signature, see Testing-a-component-signature.