Views
Interface view
Default command level
3: Manage level
Parameters
sampler sampler-name: Specifies a sampler name, a string of up to 32 characters.
inbound: Enables NetStream sampling in the inbound direction.
outbound: Enables NetStream sampling in the outbound direction.
Examples
# Enable NetStream sampling in the inbound direction of GigabitEthernet 2/0/0 by referencing
sampler abc.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0/0
[Sysname-GigabitEthernet2/0/0] ip netstream inbound
[Sysname-GigabitEthernet2/0/0] ip netstream sampler abc inbound
ip netstream timeout active
Use ip netstream timeout active to set the aging timer for active flows. This timer applies to NetStream
traditional data flows.
Use undo ip netstream timeout active to restore the default.
Syntax
ip netstream timeout active minutes
undo ip netstream timeout active
Default
The aging timer is 30 minutes for active flows.
Views
System view
Default command level
3: Manage level
Parameters
minutes: Sets the aging timer in minutes for active flows, in the range of 1 to 60.
Usage guidelines
You can configure both the aging timer for active flows and the aging timer for inactive flows. When
either timer for a flow expires, the flow is aged out. The time precision is 10 seconds.
Examples
# Set the aging timer to 60 minutes for active flows.
<Sysname> system-view
[Sysname] ip netstream timeout active 60
181