208
To do… Use the command… Remarks
3. Configure forced aging of the NetStream
entries.
reset ip netstream statistics
Optional.
This command also
clears the cache.
Displaying and maintaining NetStream
To do… Use the command… Remarks
Display the NetStream entry
information in the cache
display ip netstream cache [ verbose ] [ slot
slot-number ] [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display information about
NetStream data export
display ip netstream export [ | { begin |
exclude | include } regular-expression ]
Available in any view
Display the configuration and
status of the NetStream flow
record templates
display ip netstream template [ slot slot-
number ] [ | { begin | exclude | include }
regular-expression ]
Available in any view
Clear the cache, age out and
export all NetStream data
reset ip netstream statistics Available in user view
Configuring NetStream examples
Configuring NetStream traditional data export example
Network requirements
As shown in Figure 75, configure NetStream on Switch A to collect statistics on packets passing through it.
Configure the device to export NetStream traditional data to UDP port 5000 of the NetStream server at
12.110.2.2/16.
Figure 75 Network diagram for configuring NetStream traditional data export
Configuration procedure
# Enable NetStream in the inbound direction of GigabitEthernet 1/0/1.
<SwitchA> system-view
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] ip netstream inbound
[SwitchA-GigabitEthernet1/0/1] quit
# Create VLAN-interface 2000 and configure it as the source interface for NetStream common data
export.
[SwitchA] vlan 2000