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 netstream record record-name ip command to apply the IPv4 flexible flow
statistics template to the interface.
Each interface can be configured with only one IPv4 flexible flow statistics template. Before modifying the IPv4 flexible flow statistics template in the same interface view, run the undo netstream record ip command to delete the existing configuration.
If an IPv4 flexible flow statistics template has been applied to an interface, the template configuration cannot be modified or deleted.
- Run the netstream { inbound | outbound } ip command to enable the NetStream
function on the interface to collect statistics about IPv4 flows.
By default, the NetStream function for IPv4 flows is disabled on the interface.
- Run the commit command to commit the configuration.