The match command configures aggregation keywords for flexible flow statistics.
The undo match command deletes aggregation keywords configured for flexible flow statistics.
By default, no aggregation keyword for flexible flow statistics is configured in a flexible flow statistics template.
match ip { protocol | dscp | source-address | destination-address | source-port | destination-port | flow-label | ttl }
match { vlan | source-mac | destination-mac } { input | output }
undo match ip { protocol | dscp | source-address | destination-address | source-port | destination-port | flow-label | ttl }
undo match { vlan | source-mac | destination-mac } { input | output }
Parameter |
Description |
Value |
---|---|---|
ip |
Aggregates statistics based on packet information at the network layer or transport layer. |
- |
protocol |
Aggregates statistics based on the protocol type. |
- |
dscp |
Aggregates statistics based on the DSCP priority. |
- |
source-address |
Aggregates statistics based on the source IP address. |
- |
destination-address |
Aggregates statistics based on the destination IP address. |
- |
source-port |
Aggregates statistics based on the source port number. |
- |
destination-port |
Aggregates statistics based on the destination port number. |
- |
flow-label |
Aggregates statistics based on the IPv6 flow label. |
- |
ttl |
Aggregates statistics based on the TTL value. |
- |
vlan |
Aggregates statistics based on the VLAN ID. |
- |
source-mac |
Aggregates statistics based on the source MAC address. |
- |
destination-mac |
Aggregates statistics based on the destination MAC address. |
- |
input |
Aggregates statistics about incoming packets. NOTE:
If this parameter is specified, the flexible flow statistics template can be applied only to the inbound direction of an interface. |
- |
output |
Aggregates statistics about outgoing packets. NOTE:
If this parameter is specified, the flexible flow statistics template can be applied only to the outbound direction of an interface. |
- |
Usage Scenario
During exporting of flexible flow statistics, you can run the match command to configure aggregation keywords for flexible flow statistics.
Precautions
If you run this command multiple times, you can obtain a collection of multiple aggregation keywords. However, the input and output keywords cannot coexist in a flexible flow statistics template, regardless of whether the aggregation keywords before input/output are the same.
The flexible flow statistics template that has been applied to an interface cannot be modified or deleted. Run the undo port ip netstream record command to unbind a specified flexible flow statistics template from the interface, and then you can modify or delete the template.