Defining identification patterns

On the Overview page of the Device Repository editor you can define one or more primary and secondary identification patterns for a device.

On the Overview page of the Device Repository editor you can define one or more primary and secondary identification patterns for a device.

MCS uses the identification patterns at runtime to identify an unknown device. The patterns are regular expressions that are matched against the device headers. They can be split into two sets; those that match user agent headers and those that match general headers.

Note:

Patterns must be unique within a repository.

Primary patterns

MCS uses user agent headers in the first identification step.

  1. Choose a device from the Devices tree.

  2. In the Primary Patterns section click Add. A new item is added to the pattern list.

  3. Enter a regular expression that will be used to match the user agent header.

Secondary patterns

The device that MCS finds using the primary patterns may indicate that there is a more specific device to use, in which case MCS uses the secondary patterns to match the general header. The patterns here are made up of three parts; an HTTP header name, an HTTP header value and a Base device name.

  1. In the Secondary Patterns section click Add.

  2. Enter values for Header name, Value and Device name.

  3. Use the Up and Down buttons to order the patterns in the list

To remove a pattern in either list, select it and click Remove.

To revert to the standard repository patterns for the device click Restore Defaults.

Related topics