Enabling NetStream Flexible Flow Statistics Collection on an Interface
Context
When configuring flexible NetStream, you must enable flow statistics collection and apply a flexible flow statistics template on an interface to ensure that statistics are exported successfully.
Procedure
- Run the system-view command to enter the system view.
- Run the interface interface-type interface-number command to enter the interface view.
- Run the port ip netstream record record-name [ inbound | outbound ] command to apply the flexible flow
statistics template to the interface.
- If the vlan parameter is configured in the flexible flow statistics template, it is recommended that the template be applied to Layer 2 Ethernet interfaces.
- If the input parameter is configured in the flexible flow statistics template, the template can be applied only to the inbound direction of an interface. If the output parameter is configured in the flexible flow statistics template, the template can be applied only to the outbound direction of an interface.
Only the X series cards support the inbound and outbound parameters. If neither inbound nor outbound is configured, the flexible flow statistics template is applied to both the inbound and outbound directions of an interface.
- Enable flow statistics collection function on an interface.