
207
ip netstream sampler
Syntax
ip netstream sampler
sampler-name
{
inbound
|
outbound
}
undo ip netstream sampler
sampler-name
{
inbound
|
outbound
}
View
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Default 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.
Description
Use the
ip netstream sampler
command to enable NetStream sampling.
Use the
undo ip netstream sampler
command to disable NetStream sampling.
By default, NetStream sampling is disabled.
Examples
# Enable NetStream sampling in the inbound direction of GigabitEthernet 1/0/1 by referencing
sampler
abc
.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip netstream inbound
[Sysname-GigabitEthernet1/0/1] ip netstream sampler abc inbound
ip netstream timeout active
Syntax
ip netstream timeout active
minutes
undo ip netstream timeout active
View
System view
Default level
3: Manage level
Parameters
minutes
: Sets the aging timer for active flows in minutes, in the range of 1 to 5.
Description
Use the
ip netstream timeout active
command to set the aging timer for active flows.
Use the
undo ip netstream timeout active
command to restore the default.