Zffpcounter – Znyx Networks bh5700 User Manual

Page 288

Advertising
background image

zffpcounter

NAME

zffpcounter—Query or clear one or more Fast Filter Processor (FFP) counters.

SYNOPSIS

zffpcounter -P <zre_port> [-p <ppa>] [-i <index>] [-h

<hostname>] [-c] [-d <level>]

DESCRIPTION

The switch enforces filtering rules through the FFP. Each filtering rule may specify an FFP
counter, to be incremented for every packet that matches that rule.

The zffpcounter command is used: (a) for querying the current value(s) of one or more
counters; or (b) for resetting one or more counters to zero. If a rule includes metering if the rule is
matched,
only packets which are in-profile increment the counter. Out of profile packets are counted in the
FFP out of profile counters, which are displayed using zffppacketcounter, which has
exactly the same format and syntax as zffpcounter.

The iptables or zirule utilities may be queried to see which rules, if any, are using FFP
counters.

OPTIONS

-h <hostname>

Specifies the hostname to query/clear. By

default, zffpcounter uses the local OpenArchitect switch.

-p <ppa>

Specifies the Physical Point of Attachment (PPA) on

which to query/clear. By default, zffpcounter uses the value

0.

-c

Specifies that zffpcounter should clear the specified

counter(s), rather than querying.

-d

Sets the level of debugging output for zffpcounter. The

default level is one (1), which reports all errors. Setting
the debug level higher produces more output. Three (3) is

currently the maximum output level.

-i <index> An index whose counters should be queried/cleared.
Individual values (such as 5) are acceptable. If no index is

given, zffpcounter uses all counters.

-P <zre_port>

(required) Print table entry that contains

<zre_port> (zre<n>).

Ethernet Switch Blade User's Guide

release 3.2.2j

page 288

Advertising