377
ip netstream sampler
Use ip netstream sampler to enable NetStream sampling.
Use undo ip netstream sampler to disable NetStream sampling.
Syntax
ip netstream [ inbound | outbound ] sampler sampler-name
undo ip netstream [ inbound | outbound ] sampler
Default
NetStream sampling is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
inbound: Enables NetStream sampling in the inbound direction.
outbound: Enables NetStream sampling in the outbound direction.
sampler sampler-name: Specifies a sampler by its name, a case-insensitive string of 1 to 31
characters.
Examples
# Use sampler abc for inbound NetStream sampling on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] ip netstream inbound
[Sysname-GigabitEthernet1/0/1] ip netstream inbound sampler abc
ip netstream aggregation
Use ip netstream aggregation to specify a NetStream aggregation mode and enter its view.
Use undo ip netstream aggregation to remove the configuration for a NetStream aggregation
mode.
Syntax
ip netstream aggregation { as | destination-prefix | prefix | prefix-port | protocol-port |
source-prefix | tos-as | tos-bgp-nexthop | tos-destination-prefix | tos-prefix | tos-protocol-port
| tos-source-prefix }
undo ip netstream aggregation { as | destination-prefix | prefix | prefix-port | protocol-port |
source-prefix | tos-as | tos-bgp-nexthop | tos-destination-prefix | tos-prefix | tos-protocol-port
| tos-source-prefix }
Default
No NetStream aggregation mode is specified.
Views
System view