iprange

Prototype: iprange(range)

Return type: class

Description: Returns whether the current host lies in the range of IP addresses specified.

Pattern matching based on IP addresses.

Arguments:

  • range : IP address range syntax, in the range .*

Example:

bundle agent example
{
classes:

  "adhoc_group_1" expression => iprange("128.39.89.10-15");
  "adhoc_group_2" expression => iprange("128.39.74.1/23");

reports:

  adhoc_group_1::

    "Some numerology";

  adhoc_group_2::

    "The masked warriors";
}