The collect command configures the flexible flow statistics sent to the NetStream Collector (NSC) to contain the number of bytes, number of packets, and first and last forwarding time.
The undo collect command configures the flexible flow statistics sent to the NSC not to contain the number of bytes, number of packets, and first and last forwarding time.
By default, the flexible flow statistics sent to the NSC does not contain the number of bytes, number of packets, and first and last forwarding time.
Parameter | Description | Value |
---|---|---|
first |
Configures the flexible flow statistics sent to the NSC to contain the first forwarding time. |
- |
last |
Configures the flexible flow statistics sent to the NSC to contain the last forwarding time. |
- |
switched |
Indicates the flexible flow statistics sent to the NSC. |
- |
input |
Configures the flexible flow statistics sent to the NSC to contain the inbound interface information. |
- |
packets |
Configures the flexible flow statistics sent to the NSC to contain the number of packets. |
- |
bytes |
Configures the flexible flow statistics sent to the NSC to contain the number of bytes. |
- |
length |
Specifies the length of the packets and bytes contained in the flexible flow statistics sent to the NSC. |
The value can be16, 32, or 64. |
Usage Scenario
To obtain more flow statistics, you can run the collect command to configure the flexible flow statistics output to contain the number of bytes, number of packets, and first and last forwarding time.
Prerequisites
Before you run the collect command, run the ip netstream record or ipv6 netstream record command to create a flexible flow statistics template.
Precautions
The maximum length that the flexible flow statistics template supports is 50 bytes, including the collect and match fields.
Lengths of the collect fields: