Table 5: Logical Operators For The Monitor Traffic Command - Juniper EX9200 Features Manual

Network management and monitoring feature guide
Hide thumbs Also See for EX9200:
Table of Contents

Advertisement

Network Management and Monitoring Feature Guide for EX9200 Switches

Table 5: Logical Operators for the monitor traffic Command

Logical Operator (Highest to Lowest Precedence)
!
&&
||
( )
86
Description
Logical NOT. If the first condition does not match, the next condition
is evaluated.
Logical AND. If the first condition matches, the next condition is
evaluated. If the first condition does not match, the next condition is
skipped.
Logical OR. If the first condition matches, the next condition is skipped.
If the first condition does not match, the next condition is evaluated.
Group operators to override default precedence order. Parentheses are
special characters, each of which must be preceded by a backslash
(
\
You can use relational operators to compare arithmetic expressions composed of integer
constants, binary operators, a length operator, and special packet data accessors. The
arithmetic expression matching condition uses the following syntax:
monitor traffic matching "ether[0] & 1 != 0""arithmetic_expression relational_operator
arithmetic_expression"
The packet data accessor uses the following syntax:
protocol [byte-offset <size>]
The optional size field represents the number of bytes examined in the packet header.
The available values are
1, 2,
multicast traffic:
user@host> monitor traffic matching "ether[0] & 1 != 0"
To specify match conditions that have a numeric value, use the arithmetic and relational
operators listed in
Table 6 on page
).
or
4
bytes. The following sample command captures all
87.
Copyright © 2016, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

Table of Contents