R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

325
Statistics of BGP next hop can be exported only in the version 9 format.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Configure the device to export NetStream data in the version 5 format and to specify the NetStream
data to include the source AS and destination AS.
<Sysname> system-view
[Sysname] ip netstream export version 5 origin-as
ip netstream filter
Use ip netstream filter to enable NetStream filtering on an interface.
Use undo ip netstream filter to disable the function.
Syntax
ip netstream filter acl acl-number { inbound | outbound }
undo ip netstream filter acl acl-number { inbound | outbound }
Default
NetStream filtering is disabled. NetStream collects the statistics of all IPv4 packets passing through the
interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
acl acl-number: Specifies an ACL number. For a basic ACL, the value range is 2000 to 2999. For an
advanced ACL, the value range is 3000 to 3999.
inbound: Filters incoming traffic.
outbound: Filters outgoing traffic.
Examples
# Use ACL 2003 to enable NetStream filtering in the outbound direction of GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip netstream outbound
[Sysname-GigabitEthernet2/1/1] ip netstream filter acl 2003 outbound
ip netstream max-entry
Use ip netstream max-entry to set the maximum number of NetStream entries that the cache can
accommodate.
Use undo ip netstream max-entry to restore the default.
Syntax
ip netstream max-entry max-entries