The GroupPatterns plugin is a connector that can assign clients group membership pased on patterns in client hostnames. Two basic methods are supported:

  • regular expressions (NamePatterns)
  • ranges (NameRange)

Hosts that match the specification are placed in the group or groups specified by the pattern.


  1. Enable the GroupPatterns plugin
  2. Create the GroupPatterns/config.xml file (similar to the example below).
  3. Client groups will be augmented based on the specification

Pattern Types

NamePatterns use regular expressions to match client hostnames. All matching clients are placed in the resulting groups. NamePatterns also have the ability to use regular expression matched groups to dynamically create group names. The first two examples below are NamePatterns. The first adds client hostname to both groups gp-test1 and gp-test2. The second matches the hostname as a group and places the client in a group called group-<hostname>.

NameRange patterns allow the use of the application of numeric ranges to host names. The final pattern below matches any of node1-node32 and places them all into the rack1 group. Dynamically generated group names are not supported with NameRange.



Cluster Example

Functional aspects are extracted from hostname strings, and dynamic groups are created.

Expected hostname to group mapping:     -> nfs-server     -> nfs-server   -> login-server   -> login-server    -> pvfs-server    -> pvfs-server      -> www-server

GroupPatterns configuration:


Regex explanation:

  1. x Match any hostname that begins with “x”
  2. (\w[!^\d|\.]+) followed by one or more word characters that are not a decimal digit or ”.” and save the string to $1
  3. \d* followed by 0 or more decimal digit(s)
  4. \. followed by a literal ”.”

Table Of Contents

Previous topic


Next topic


This Page