Creating Rules
This section contains the following topics:
Creating Rules From Scratch
To create a rule A rule is a user defined classification set used by the system to classify unknown (generic) devices or reclassify devices. Rule classification overrides system classification. from scratch:
- Go to the
For information, see Creating Rules.
If you accessed this dialog directly from the rule A rule is a user defined classification set used by the system to classify unknown (generic) devices or reclassify devices. Rule classification overrides system classification. conditions on this dialog.
no attributes are displayed as
dialog from the - Select an attribute you want to include as a condition in the rule by performing the following:
- Click icon at the bottom of the dialog.
A pop up box opens displaying all of the available device attributes that can be included as conditions in the rule.
- Select the device attribute you wish to configure for the rule. Device attributes are:
After you select a device attribute it is added to the
dialog.The operator field for each attribute defaults to the single value operator
or depending on the type of attribute.For more information, see Creating Rules.
To delete an attribute, hover over an attribute row and click the
icon at the end of the attribute row. - Enter the value or values for the attribute you selected by performing the following:
- Click icon next to the attribute.
- Enter a value for the attribute on the blank line.
You have the option to enter a regular expression (regex Regular Expression. Regex refers to a sequence of symbols and characters defining a search pattern.) as a value for an attribute. To enter a regex, enter and the regex on the blank line. For example, re:5[0-9][a-z]. When you enter a (right arrow) icon is displayed next to the attribute value field.
For more information about regex syntax, see Regular Expression Syntax.
These regular expressions do not support case sensitivity.
Optionally, click the
icon if you want to test the regex you entered. When you click the icon, the row expands and the section is displayed. A green check mark in a circle is displayed next to the regex if it is valid and a red exclamation point in a circle is displayed if it not valid. If the regex is not valid, you can modify the regex in the section until the regex is correct. Plus, you can also enter a test string in the field to verify those results. A green check mark in a circle is displayed next to the test string if it meets the regex and a red exclamation point in a circle if it does not meet the regex. Click to collapse the row and accept the changes you made to the regex.After you enter the first value, the condition is automatically selected to be included in the rule.
- (Optional) Click
After you enter a second value, the operator field automatically changes to the multiple value operator
or depending on the type of attribute.For more information, see Creating Rules.
icon and enter a new value for an attribute on the new blank line. Click the icon to delete the new blank line or value.
- Specify the operator for the rule condition by clicking the down arrow next to the operator field and selecting the operator for the attribute.
For more information, see Creating Rules.
- Repeat steps 2 through 4 until you have defined all of the conditions for the rule.
- Click
If the rule you are creating overlaps with other rules, an
section is displayed containing a grid that lists the rules that overlap with this rule. The columns that display in the grid are the overlapping and Otherwise, the section is not displayed.If you have overlapping rules, the system only processes the first rule and the other rules are not processed. We recommend that you don't have overlapping rules.
. - (Optional) Click the icon to view all of the rule conditions that were previously selected. Click the icon again to hide the conditions.
- Click in the
Rule names can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash) and _ (underscore).
field and enter a name for the rule. - Enter a device category for the rule by performing one of the following:
- Click the down arrow next to and select a device category.
- Click in the field and enter a device category.
Device categories can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device category, the
button becomes available at the bottom of the dialog. - Enter a device family for the rule by performing one of the following:
- Click the down arrow next to and select a device family.
- Click in the field and enter a device family.
Device families can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device family, the
button becomes available at the bottom of the dialog. - Enter a device type for the rule by performing the following:
- Click the down arrow next to and select a device type.
- Click in the
Device types can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device type, the
button becomes available at the bottom of the dialog. field and enter a device type.
- (Optional) Upload an image of the device if you have entered a new device category, device family, and device type by performing the following:
- Click
- Select the image file.
The image file must be of a .jpeg, jpg, or .png file type and cannot be larger than 1 MB in size.
- Save your work by performing one of the following:
- Click to save the rule. No existing devices are reclassified at this time. You can return later and click the action button on the or to have the system reclassify devices using this rule.
- Click to save the rule and have the system immediately reclassify the existing devices using this rule.
If you have uploaded an image of the device, an email with all of the rule details and attachment is sent to Aruba. Aruba evaluates the image and may or may not apply it to ClearPass Device Insight because Aruba may already possess a better image. You and other customers of ClearPass Device Insight may see the new image in ClearPass Device Insight after the next deployment cycle after the email is received.
Creating Rules From Devices
To create a rule A rule is a user defined classification set used by the system to classify unknown (generic) devices or reclassify devices. Rule classification overrides system classification. from a device:
- Go to the
- dialog
- dialog
- dialog
For information, see Creating Rules.
If you accessed this dialog from the
dialog, dialog, or dialog, the device attributes and associated values are displayed as rule conditions on this dialog.Optionally, to delete an attribute, hover over an attribute row and click the
icon at the end of the attribute row.
dialog from one of the following: - Edit the rule condition for each attribute by performing the following:
- Click the down arrow next to the operator field and select the operator for the attribute.
or is displayed as the default value in the operator field for a single value attribute.
or is displayed as the default value in the operator field for a multiple value attribute.
For more information, see Creating Rules.
- Optional (Modify) the values for the attributes by performing one or more of the following:
- Click icon and add additional values for the attribute.
- Click icon to delete a value for an attribute.
- Click icon to delete a value for an attribute and then click to enter an new value for the attribute.
- Click the down arrow next to the operator field and select the operator for the attribute.
- (Optional) Select additional attributes you want to include in the rule and configure those conditions. Click the
For more information, see Creating Rules From Scratch.
A regular expression (regex) can be entered as a value for an attribute. To enter a regex, enter
and then the regex. For example, re:5[0-9][a-z].
For more information, see Creating Rules and Creating Rules From Scratch.
icon and select those additional attributes. Then enter the value or values for the attributes and select the operators for those attributes. - Select the conditions you wish to include in the rule by clicking the check box at the beginning of each condition. You can also click to select all of the conditions for the rule.
- Click
If the rule you are creating overlaps with other rules, an
section is displayed containing a grid that lists the rules that overlap with this rule. The columns that display in the grid are the overlapping and Otherwise, the section is not displayed.If you have overlapping rules, the system only processes the first rule and the other rules are not processed. We recommend that you don't have overlapping rules.
. - (Optional) Click the icon to view all of the rule conditions that were previously selected. Click the icon again to hide the conditions.
- Click in the
Rule names can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash) and _ (underscore).
field and enter a name for the rule. - Enter a device category for the rule by performing one of the following:
- Click the down arrow next to and select a device category.
- Click in the
Device categories can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device category, the
button becomes available at the bottom of the dialog. field and enter a device category.
- Enter a device family for the rule by performing one of the following:
- Click the down arrow next to and select a device family.
- Click in the
Device families can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device family, the
button becomes available at the bottom of the dialog. field and enter a device family.
- Enter a device type for the rule by performing the following:
- Click the down arrow next to and select a device type.
- Click in the
Device types can contain a combination of upper and lower case alpha-numeric characters and these special characters: - (dash), _ (underscore), / (forward slash), & (ampersand), and () (right and left parenthesis).
If you enter a new device type, the
button becomes available at the bottom of the dialog. field and enter a device type.
- (Optional) Upload an image of the device if you have entered a new device category, device family, and device type by performing the following:
- Click
- Select the image file.
The image file must be of a .jpeg, jpg, or .png file type and cannot be larger than 1 MB in size.
- Save your work by performing one of the following:
- Click to save the rule. No existing devices are reclassified at this time. You can return later and click the action button on the or to have the system reclassify devices using this rule.
- Click to save the rule and have the system immediately reclassify the existing devices using this rule.
If you have uploaded an image of the device, an email with all of the rule details and attachment is sent to Aruba. Aruba evaluates the image and may or may not apply it to ClearPass Device Insight because Aruba may already possess a better image. You and other customers of ClearPass Device Insight may see the new image in ClearPass Device Insight after the next deployment cycle after the email is received.
Related Topics