R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

178
Use ip netstream export version 9 to export NetStream data in version 9 format, and choose whether to
record data about AS and BGP next hop information. Statistics about BGP next hop can be exported in
version 9 format only.
Use undo ip netstream export version to restore the default.
Syntax
ip netstream export version 5 [ origin-as | peer-as ]
ip netstream export version 9 [ origin-as | peer-as ] [ bgp-nexthop ]
undo ip netstream export version
Default
NetStream traditional data export uses version 5 format. NetStream aggregation data export uses
version 8 format. MPLS flow data are not exported. The peer AS numbers are exported. The BGP next
hop is not exported.
Views
System view
Default command level
3: Manage level
Parameters
origin-as: Exports statistics of the source AS originating the route for the source address, and the
destination AS for the destination address.
peer-as: Exports statistics of the peer ASs for the source and destination address.
bgp-nexthop: Exports statistics about BGP next hops.
Usage guidelines
A NetStream entry for a flow records the source IP address and destination IP address, and two AS
numbers for each IP address. You can choose to configure which AS numbers to be exported as the
source AS and destination AS.
Examples
# Configure the device to export NetStream data in 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 ACL-based 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 }