device# show ip flowspec rules detail
VRF :default-vrf
Total number of Rules: 1
1 Origin: Local(flowmap:23) Active: Yes
Match:
DSCP <60
Actions:
Traffic-rate asn 666,rate 125000 bits/sec(operational-rate 132000 bits/sec)
Statistic packets/bytes
------------- ------------
Matched 17412786/12589441782
Transmitted 1453/1048023
dropped 17411333/12588393759
device# clear ip flowspec rules statistics
device# show ip flowspec rules detail
VRF :default-vrf
Total number of Rules: 1
1 Origin: Local(flowmap:23) Active: Yes
Match:
DSCP <60
Actions:
Traffic-rate asn 666,rate 125000 bits/sec(operational-rate 132000 bits/sec)
Statistic packets/bytes
------------- ------------
Matched 0/0
Transmitted 0/0
dropped 0/0
The following example shows how to enable BGP flowspec rules, display statistics for BGP flowspec rules, clear the statistical information and then verify that the statistics have been cleared.
device# configure terminal
device(config)# ip flowspec rules statistics
device(config)# exit
!
device# show ip flowspec rules detail
VRF :default-vrf
Total number of Rules: 1
1 Origin: Local(flowmap:23) Active: Yes
Match:
DSCP <60
Actions:
Traffic-rate asn 666,rate 125000 bits/sec(operational-rate 132000 bits/sec)
Statistic packets/bytes
------------- ------------
Matched 17412786/12589441782
Transmitted 1453/1048023
dropped 17411333/12588393759
!
device# clear ip flowspec rules statistics
!
device# show ip flowspec rules detail
VRF :default-vrf
Total number of Rules: 1
1 Origin: Local(flowmap:23) Active: Yes
Match:
DSCP <60
Actions:
Traffic-rate asn 666,rate 125000 bits/sec(operational-rate 132000 bits/sec)
Statistic packets/bytes
------------- ------------
Matched 0/0
Transmitted 0/0
dropped 0/0