ip flowspec rules statistics

Enables statistics for Border Gateway Protocol flow specification (BGP flowspec) rules.

Syntax

ip flowspec rules statistics [ vrf vrf-name ]
no ip flowspec rules statistics [ vrf vrf-name ]

Command Default

Flowspec statistics are disabled.

Parameters

vrf vrf-name
Name of a VRF instance.

Modes

Global configuration mode

Usage Guidelines

When statistics are enabled, they appear in the output of the show ip flowspec rules command.

Statistic Description
Matched Number of packets or bytes that match the flowspec rule
Transmitted Number of packets matching the flowspec rule that are transmitted
Dropped Number of packets matching the flowspec rule that are dropped

The no form of the command disables statistics for BGP flowspec rules.

Examples

The following example shows how to enable statistics for BGP flowspec rules.

device# configure terminal
device(config)# ip flowspec rules statistics

The following example shows how to disable statistics for BGP flowspec rules in a VRF named red.

device# configure terminal
device(config)# no ip flowspec rules statistics vrf red