Configure Adoption Based on FQDN or DNS Suffix

Adoption rules are simplified using a Pattern-Based site. The Pattern-Based adoption rule enables you to adopt devices based on their domain. Using a Pattern-Based site, the number of Allow rules can be reduced significantly.

Note

Note

Before you can create adoption rules, you must create the sites and device groups to which your adoption rules will apply. You must use consistent naming conventions that match your variable definitions for Pattern-Based matching to be successful.
  1. Create a site and device group that will hold your access points or switches.
    Consider the full name of the site and device group when configuring the Pattern-Based matching variables.
  2. Go to Configure > Adoption > Add.
    The New Rule dialog displays.
  3. Select the device type:
    • To create a rule for access point adoption, select AP.
    • To create a rule for switch adoption, select Switch.
  4. From the Action field, select a rule action. Valid values are:
    • Allow
    • Deny
    • Redirect
  5. In the Site field, select Pattern-Based.
    An additional field displays.
  6. Configure a site name using FQDN or DNS-Suffix variables (for example, Site_$FQDN[x:y] or Site_$DNS-SUFFIX[x:y]).
  7. For AP adoption rules only — specify a device group.

    When using a Pattern-Based site, manually enter the device group name. Configure a device group name using Pattern-Based variables: FQDN or DNS-Suffix. For example, AP510_$FQDN[x:y] or AP510_$DNS-SUFFIX[x:y], or provide an explicit device group name. You can use an explicit device group name with a Pattern-Based site.

    Note

    Note

    It is important that you configure the Pattern-Based matching variables using a consistent naming convention that matches the names of your existing sites and device groups. For more information and examples, see Pattern-Based Matching.
  8. Select a filter parameter, and then select .
First the devices must match the filter definition, then they are placed in a site and device group that matches the defined pattern.

Pattern-based adoption rule

Where variable definition is:

SITE-$FQDN[1:7]

When the destination site is defined using the FQDN, the site name is composed of the prefix SITE and positions 1-7 of the FQDN.

SITE-$DNS-SUFFIX[4:7]

When destination site is defined using the DNS suffix, the site name is composed of the prefix SITE and positions 4-7 of the DNS Suffix.