Service Creation Using Groups and Rules
TUT Systems, Inc Page 67 of 104 P/N 220-06288-20
“not mac=00:11:22:33:44:55” applies the rule so long as the MAC address of the unit is
not the given address. In other words, it applies to every computer in the world but one.
The AND Operator
The “AND” operator is used to group two or more expressions of any type so that the
rule applies if both the expression on the left of the “AND” and the expression on the
right of the “AND” are true.
expression
AND expression
For example:
“tut=123.123.123.123-001-001 AND mac=00:11:22:33:44:55” applies if a device with a
MAC address of 00:11:22:33:44:55 connects on slot 1 and line 1 of the Expresso
GS/MDU Chassis or MDU Lite at IP 123.123.123.123. If that device is in a different
place (with the same MAC), then the rule does not apply. If a device with a different
MAC connects on the given port, the rule also does not apply.
“tut=123.123.123.123-001-001 AND mac=00:11:22:33:44:55 AND
ip=123.123.123.5” applies only if a device connects to slot 1, line 1 of an Expresso
GS/MDU Chassis or MDU Lite at 123.123.123.123, and that device has a MAC of
00:11:22:33:44:55, and that device has an IP of 123.123.123.5. If any one of these is not
true, then the rule does not apply.
The OR Operator
The “OR” operator is used to group two or more expressions so that a rule will apply if
any of those expressions is true.
expression
OR expression
For example:
“mac=00:11:22:33:44:55 OR ip=123.123.123.5” applies either if a device has the given
MAC address or its IP address is 123.123.123.5.
Parenthesis
Managers can use parenthesis to logically group expressions to ensure the precedence of
operators.
(expression)
(
expression OR expression)
(
expression AND expression)
For example:
“(tut=123.123.123.123-001-001 AND mac=00:11:22:33:44:55) OR ip=123.123.123.5”
means that this rule applies if the computer is connected at the given tut location using
the given MAC, or if the user is connecting (with any mac and from any location) using
the given IP address.