Part 12 - System Monitoring

05-NetStream Commands

Chapters Download  (88.51 KB)

05-NetStream Commands


NetStream Configuration Commands

NetStream Configuration Commands

display ip netstream cache

Syntax

display ip netstream cache [ verbose ] [ slot slot-number ]

View

Any view

Default Level

1: Monitor level

Parameters

verbose: Displays detailed information about the NetStream cache.

slot slot-number: Displays the NetStream entry information in the cache of a specified device. The slot-number is the ID of a member device of the current the IRF virtual device, which you can display with the display irf command. The slot number range depends on the numbering rules and the number of member devices of the current IRF virtual device. If no IRF virtual device exists, the slot-number argument is the current device number.

Description

Use the display ip netstream cache command to display the NetStream entry information in the cache.

Examples

# Display the NetStream entry information in the cache.

<Sysname> display ip netstream cache

IP netstream cache information:

  Stream active timeout (in minutes)  : 1

  Stream inactive timeout (in seconds): 10

  Stream max entry number             : 8192

    IP active stream entry number     : 2

    L2 active stream entry number     : 6

    IP stream entry been counted      : 6292

    L2 stream entry been counted      : 9399

  Last statistics reset time          : Never

 

IP packet size distribution (0 total packets):

 1-32   64   96  128  160  192  224  256  288  320  352  384  416  448  480

 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000

  512  544  576 1024 1536 2048 2560 3072 3584 4096 4608 >4608

 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000 .000

 

 Protocol          Total   Packets   Stream  Packets Active(sec) Idle(sec)

                 Streams      /Sec     /Sec  /stream   /stream    /stream

---------------------------------------------------------------------------

 IP-other           1757         0        0        1         0         10

 UDP-other           945         0        0        1         1         10

 TCP-other           196         0        0       17        67          7

 ICMP               1848         0        0        2         4         10

 UDP-NTP             758         0        0        1         0         10

 UDP-NetBios         179         0        0        2         1         10

 UDP-SysLog          516         0        0        2         1         10

 TCP-Telnet           93         0        0       69       176          5

 

Type DstIP(Port)            SrcIP(Port)            Pro ToS If(Direc)   Pkts

     DstMAC(VLAN)           SrcMAC(VLAN)

     TopLblType(IP/MASK)    Lbl-Exp-S-List

---------------------------------------------------------------------------

IP   192.168.0.58(23)       192.168.0.18(1708)     6   0   GE1/0/19(I) 48

L2   0180-c200-0014(1)      0000-fc00-6505(1)              GE1/0/3(I)  12

IP   192.168.0.58(0)        192.168.0.18(771)      1   0   GE1/0/19(I) 4

L2   000f-e2d2-58fb(1)      000f-e200-0144(1)              GE1/0/3(O)  1

L2   000f-e200-8048(1)      00e0-fc3d-9da8(1)              GE1/0/3(O)  1

L2   ffff-ffff-ffff(1)      00e0-fc00-000b(1)              GE1/0/3(O)  334

L2   0180-c200-0000(1)      000f-e207-f2e0(1)              GE1/0/3(O)  138

L2   ffff-ffff-ffff(1)      000f-cbb8-5679(1)              GE1/0/3(O)  302

Table 1-1 display ip netstream cache command output description

Field

Description

IP netstream cache information

Information of NetStream entries in the cache

Stream active timeout (in minutes)

Active aging timer for NetStream entries

Stream inactive timeout (in seconds)

Inactive aging time for NetStream entries

Stream max entry number

Maximum number of flow entries allowed in the cache

IP active stream entry number

Number of active IP flows

L2 active stream entry number

Number of active Layer 2 flows

IP stream entry been counted

Number of IP flows that are counted

L2 stream entry been counted

Number of Layer 2 flows that are counted

Last statistics reset time

This field is an absolute time and does not change with the system time. This field is displayed only when the reset ip netstream statistics command is executed; otherwise, the value for this field is Never.

IP packet size distribution (0 total packets):  

Number of IP flows differentiated by packet size

The value is displayed in the proportion of number of IP headers to the total IP packets, and is displayed with 3 decimal places.

1-32   64   96  128  160  192  224  256  288 

320  352  384  416  448  480 512  544  576

1024 1536 2048 2560 3072 3584 4096 4608

Range of IP packet length (excluding data link layer header), in bytes. If the packet size does not exceed 576 bytes, the range increments in the step of 32 bytes. For example, "1-32" means number of packets in size of 1 to 32 bytes, and "64" means number of packets in size of 33 to 64 bytes. If the packet size exceeds 1024 bytes, the range increments in the step of 512 bytes. For example, "1536" means number of packets in size of 1025 to 1536 bytes. Packets in size of 577 to 1024 are recorded in the 1024 entry.

Protocol           Total Streams  Packets /Sec   Stream /Sec   Packets /stream Active(sec) /stream   Idle(sec) /stream

Packet statistics differentiated by protocol type: protocol, total number of flows, number of packets per second, number of flows per second, active time for each stream, inactive time for each stream

Type DstIP(Port)            SrcIP(Port)            Pro ToS If(Direc)  Pkts

Statistics of the active flows in the current NetStream cache including flow type, destination address (destination port), source address (source port), protocol, ToS, interface type (direction), and number of packets

Where flows are classified into two types: IP flows, L2 flows

DstMAC(VLAN)          SrcMAC(VLAN)

Layer 2 information of the active flows in the current cache, including destination MAC address, destination VLAN ID, source MAC address, and source VLAN ID

TopLblType(IP/MASK)      Lbl-Exp-S-List

Information of the active MPLS flows in the current cache, including type of the labels at the top of the label stack (IP address and mask associated with the label), and label list.

A label consists of three fields:

l  Label field, label value of 20 bits.

l  Exp field, for QoS, three bits in length.

l  S field, where 1 indicates that the label is at the bottom of the label stack.

At most three labels can be listed in one label list.

 

display ip netstream export

Syntax

display ip netstream export

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display ip netstream export command to view statistics about NetStream data export.

Examples

# Display statistics about NetStream data export.

<Sysname> display ip netstream export

IP export information:

  Stream source interface                        :

  Stream destination VPN-instance                :

  Stream destination IP (UDP)                    : 1.1.1.1 (1000)

  Version 5 exported stream number               : 4

  Version 5 exported UDP datagram number (failed): 3 (3)

  Version 9 exported stream number               : 0

  Version 9 exported UDP datagram number (failed): 0 (0)

 

L2 export information:

  Stream source interface                        :

  Stream destination VPN-instance                :

  Stream destination IP (UDP)                    : 1.1.1.1 (1000)

  Version 9 exported stream number               : 0

  Version 9 exported UDP datagram number (failed): 0 (0)

 

source-prefix aggreagtion export information:

  Stream source interface                        :

  Stream destination VPN-instance                :

  Stream destination IP (UDP)                    : 1.1.1.1 (1000)

  Version 8 exported stream number               : 3

  Version 8 exported UDP datagram number (failed): 3 (3)

  Version 9 exported stream number               : 0

  Version 9 exported UDP datagram number (failed): 0 (0)

 

tos-destination-prefix aggreagtion export information:

  Stream source interface                        :

  Stream destination VPN-instance                :

  Stream destination IP (UDP)                    : 121.1.1.7 (9991)

  Version 8 exported stream number               : 4

  Version 8 exported UDP datagram number (failed): 3 (0)

  Version 9 exported stream number               : 0

  Version 9 exported UDP datagram number (failed): 0 (0)

Table 1-2 display ip netstream export command output description

Field

Description

IP export information

Statistics about NetStream version 5 data export

Stream source interface

Source interface from which the NetStream data are exported

Stream destination vpn-instance

VPN to which the destination address of the NetStream data belongs

Stream destination IP(UDP)

Destination address and port number of NetStream data export (UDP)

 

display ip netstream template

Syntax

display ip netstream template [ slot slot-number ]

View

Any view

Default Level

1: Monitor level

Parameters

slot slot-number: Displays NetStream template information of the specified device. The slot-number is the ID of a member device of the current the IRF virtual device, which you can display with the display irf command. The slot number range depends on the numbering rules and the number of member devices of the current IRF virtual device. If no IRF virtual device exists, the slot-number argument is the current device number.

Description

Use the display ip netstream template command to view configuration and status information about the NetStream template.

Examples

# Display information about the NetStream template.

<Sysname> display ip netstream template slot 2

 Stream template refresh-rate packet          : 20

 Stream template refresh-rate time(in minute) : 30

 Active stream templates                      : 4

 Added stream templates                       : 10

 

source-prefix outbound template:

 Template ID                : 276

 Packets                    : 0

 Last template export time  : Never

 Field count                : 13

 Field type                   Field length (byte)

---------------------------------------------------------------------------

 Flows                        4

 Out packets                  8

 Out bytes                    8

 First switched               4

 Last switched                4

 IPv4 source prefix           4

 Source mask                  1

 Direction                    1

 Source AS                    2

 Input SNMP                   2

 Sampling algorithm           1

 PAD                          1

 Sampling interval            4

 

source-prefix inbound template:

 Template ID                : 275

 Packets                    : 0

 Last template export time  : Never

 Field count                : 13

 Field type                   Field length (byte)

---------------------------------------------------------------------------

 Flows                        4

 In packets                   8

 In bytes                     8

 First switched               4

 Last switched                4

 IPv4 source prefix           4

 Source mask                  1

 Direction                    1

 Source AS                    2

 Input SNMP                   2

 Sampling algorithm           1

 PAD                          1

 Sampling interval            4

Table 1-3 display ip netstream template command output description

Field

Description

Stream template refresh-rate packet

Refresh frequency with which the template is resent

Stream template refresh-rate time(in minute)

Refresh interval at which the template is resent

Added stream templates

Number of templates created since the system starts

 

enable

Syntax

enable

undo enable

View

NetStream aggregation view

Default Level

3: Manage level

Parameters

None

Description

Use the enable command to enable current NetStream aggregation.

Use the undo enable command to disable current NetStream aggregation.

By default, no NetStream aggregation is enabled.

Related commands: ip netstream aggregation.

Examples

# Enable NetStream prefix aggregation

<Sysname> system-view

[Sysname] ip netstream aggregation prefix

[Sysname-ns-aggregation-prefix] enable

ip netstream

Syntax

ip netstream { inbound | outbound }

undo ip netstream { inbound | outbound }

View

Layer 2 Ethernet port view

Default Level

3: Manage level

Parameters

inbound: Enables NetStream in the inbound direction of an interface.

outbound: Enables NetStream in the outbound direction of an interface.

Description

Use the ip netstream command to enable NetStream on the current interface.

Use the undo ip netstream command to disable Netstream on the current interface.

By default, NetStream is disabled on the current interface.

 

NetStream can be enabled only on a Layer 2 Ethernet interface of the S5820X&S5800.

 

Examples

# Enable NetStream in the inbound direction of interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet1/0/1

[Sysname-GigabitEthernet1/0/1] ip netstream inbound

ip netstream aggregation

Syntax

ip netstream aggregation { destination-prefix | prefix | prefix-port | protocol-port | source-prefix | tos-destination-prefix | tos-prefix | tos-protocol-port | tos-source-prefix }

View

System view

Default Level

3: Manage level

Parameters

destination-prefix: Destination-prefix aggregation by destination AS number, destination address mask length, destination prefix, and outbound interface index.

prefix: Source and destination prefix aggregation by combination of source AS number, destination AS number, source address mask length, destination address mask length, source prefix, destination prefix, inbound interface index, and outbound interface index.

prefix-port: Prefix-port aggregation by combination of source prefix, destination prefix, source address mask length, destination address mask length, ToS, protocol number, source port, destination port, inbound interface index, and outbound interface index.

protocol-port: Protocol-port aggregation by combination of protocol number, source port, and destination port.

source-prefix: Source-prefix aggregation by combination of source AS number, source address mask length, source prefix, and inbound interface index.

tos-destination-prefix: ToS-destination-prefix aggregation by ToS, destination AS number, destination address mask length, destination prefix, and outbound interface index.

tos-prefix: ToS-prefix aggregation by combination of ToS, source AS number, source prefix, source address mask length, destination AS number, destination address mask length, destination prefix, inbound interface index, and outbound interface index.

tos-protocol-port: ToS-protocol-port aggregation by combination of ToS, protocol number, source port, destination port, inbound interface index, and outbound interface index.

tos-source-prefix: ToS-source-prefix aggregation by ToS, source AS number, source prefix, source address mask length, and inbound interface index.

Description

Use the ip netstream aggregation command to set a NetStream aggregation mode and enter the NetStream aggregation view.

In a NetStream aggregation view, you can enable or disable the specified NetStream aggregation, and configure source interface and destination host for NetStream data export.

Related commands: enable, ip netstream export host, ip netstream export source.

Examples

# Set the NetStream aggregation mode as destination-prefix, and enter the NetStream destination-prefix aggregation view.

<Sysname> system-view

[Sysname] ip netstream aggregation destination-prefix

[Sysname-ns-aggregation-dstpre]

ip netstream aggregation advanced

Syntax

ip netstream aggregation advanced

undo ip netstream aggregation advanced

View

System view

Default Level

3: Manage level

Parameters

None

Description

Use the ip netstream aggregation advanced command to enable NetStream hardware aggregation.

Use the undo ip netstream aggregation advanced command to disable NetStream hardware aggregation.

By default, NetStream hardware aggregation is disabled.

Note that:

l   The configuration in NetStream aggregation view applies to NetStream hardware aggregation, if enabled.

l   The NetStream hardware aggregation data export and NetStream common data export are mutually exclusive. The hardware aggregation will not take effect if the destination address for NetStream common data export (ip netstream export host in system view) is configured.

l   The NetStream hardware aggregation entries are stored in the cache where NetStream common data entries are recorded, and then exported.

Related commands: ip netstream export host, ip netstream aggregation

Examples

# Enable NetStream hardware aggregation.

<Sysname> system-view

[Sysname] ip netstream aggregation advanced

ip netstream export host

Syntax

ip netstream export host ip-address udp-port [ vpn-instance vpn-instance-name ]

undo ip netstream export host [ ip-address [ vpn-instance vpn-instance-name ] ]

View

System view, NetStream aggregation view

Default Level

3: Manage level

Parameters

ip-address: Destination IP address for NetStream data export.

udp-port: Destination UDP port number for NetStream data export, in the range 0 to 65535.

vpn-instance vpn-instance-name: Name of the VPN in which routes are to be queried for NetStream data export.

Description

Use the ip netstream export host command to set the destination address for NetStream data export, and specify the VPN in which routes are to be queried.

Use the undo ip netstream export host command to delete a specified export address or all export addresses that are configured in this view.

By default, no destination host is configured in system view or in NetStream aggregation view.

Note that:

l   If a NetStream aggregation is not enabled, the destination IP address and UDP port number for its data export cannot be displayed.

l   Different destination addresses can be configured in different aggregation views.

l   If no destination addresses is configured in aggregation view, the configuration in system view, if any, applies.

l   Up to four different destination addresses, including addresses in different VPNs, can be configured in one aggregation view. If you have configured the destination addresses with the same IP addresses but different UDP port numbers, the latest configuration takes effect. If you configure different VPN names, you can configure destination hosts with the same IP address and UDP port number.

l   NetStream common data is exported to all destination hosts configured in system view, while. NetStream aggregation data is exported to all destination addresses configured in the related aggregation view. If you expect NetStream aggregation data only, configure the destination address in the aggregation view and do not configure the destination host in system view; otherwise, the NetStream common data is also be exported, which will increase the bandwidth occupation.

Related commands: ip netstream aggregation, ip netstream export source.

Examples

# Configure the destination host for NetStream data export as 172.16.105.48, port 5000, and vpn1.

<Sysname> system-view

[Sysname] ip netstream export host 172.16.105.48 5000 vpn-instance vpn1

ip netstream export rate

Syntax

ip netstream export rate rate

undo ip netstream export rate

View

System view

Default Level

3: Manage level

Parameters

rate: Maximum rate for exporting NetStream data, in the unit of the maximum number of packets per second, in the range 1 to 1000.

Description

Use the ip netstream export rate command to configure the limit on the NetStream data export rate.

Use the undo ip netstream export rate command to remove the NetStream data export limit.

By default, the export rate of NetStream data is not limited.

Examples

# Allow 10 packets at most to be exported per second.

<Sysname> system-view

[Sysname] ip netstream export rate 10

ip netstream export source

Syntax

ip netstream export source interface interface-type interface-number

undo ip netstream export source

View

System view, NetStream aggregation view

Default Level

3: Manage level

Parameters

interface-type interface-number: Specifies a source interface for NetStream data export by its type and number.

Description

Use the ip netstream export source command to configure the source interface for NetStream data export.

Use the undo ip netstream export source command to remove the configuration.

By default, the interface that connects to the NetStream server is used as the source interface.

l   Different source interfaces can be configured in different aggregation views.

l   If no source interface is configured in aggregation view, the source interface configured in system view, if any, is used.

l   It is recommended to connect the network management interface to the NetStream server and configure it as the source interface

Related commands: ip netstream aggregation.

Examples

# Configure the source interface for NetStream data export as VLAN-interface 1.

<Sysname> system-view

[Sysname] ip netstream export source interface Vlan-interface 1

ip netstream export v9-template refresh-rate packet

Syntax

ip netstream export v9-template refresh-rate packet packets

undo ip netstream export v9-template refresh-rate packet

View

System view

Default Level

3: Manage level

Parameters

packets: Specifies the refresh frequency with which the version 9 templates are resent to the NetStream server for an update. That is, the template is resent every packets packets. It is in the range 1 to 600 and defaults to 20.

Description

Use the ip netstream export v9-template refresh-rate packet command to configure the refresh frequency with which a NetStream version 9 template is resent.

Use the undo ip netstream export v9-template refresh-rate packet command to restore the default.

By default, a version 9 template is resent every 20 packets.

Note that:

l   Because version 9 is template-based and supports user-defined formats, the NetStream device needs to resend a new template to the NetStream server for an update. If the version 9 format is changed on the NetStream device and not updated on the NetStream server, the server is unable to associate the received statistics with its proper fields. To avoid such situation, you can configure the refresh frequency and rate for version 9 templates so that the NetStream server can refresh the templates on time.

l   The refresh frequency and interval can be both configured, and the template is resent when either of the condition is reached.

Related commands: ip netstream export v9-template refresh-rate time.

Examples

# Set the packet refresh frequency to 100 so that a NetStream version 9 template is resent every 100 packets.

<Sysname> system-view

[Sysname] ip netstream export v9-template refresh-rate packet 100

ip netstream export v9-template refresh-rate time

Syntax

ip netstream export v9-template refresh-rate time minutes

undo ip netstream export v9-template refresh-rate time

View

System view

Default Level

3: Manage level

Parameters

minutes: Specifies the refresh interval at which the NetStream version 9 template is resent. In other words, the template is resent every minutes minutes. It is in the range 1 to 3600, and defaults to 30.

Description

Use the ip netstream export v9-template refresh-rate time command to configure the refresh interval at which a NetStream version 9 template is resent.

Use the undo ip netstream export v9-template refresh-rate time command to restore the default.

By default, a version 9 template is sent every 30 minutes.

Note that:

l   Because version 9 is template-based and supports user-defined formats, the NetStream device needs to resend a new template to the NetStream server for an update. If the version 9 format is changed on the NetStream device and not updated on the NetStream server, the server is unable to associate the received statistics with its proper fields. To avoid such a situation, configure the refresh frequency and rate for version 9 templates so that the NetStream server can refresh the templates on time.

l   The refresh frequency and interval can be both configured, and the template is resent when either of the condition is reached.

Related commands: ip netstream export v9-template refresh-rate packet.

Examples

# Set the refresh interval to 60 so that a NetStream version 9 template is resent every 60 minutes.

<Sysname> system-view

[Sysname] ip netstream export v9-template refresh-rate time 60

ip netstream export version

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

View

System view

Default Level

3: Manage level

Parameters

origin-as: Specifies to record the number of AS originating the BGP route.

peer-as: Specifies to record the AS number of the BGP peers.

bgp-nexthop: Specifies to record the BGP next hops.

Description

Use the ip netstream export version 5 command to configure to record which AS numbers for NetStream version 5 export format.

Use the ip netstream export version 9 command to configure to record which AS numbers and/or the BPG next hops for NetStream version 9 export format.

Use the undo ip netstream export version command to restore the default.

By default, NetStream common data export uses version 5; NetStream aggregation data export uses version 8; the AS number of the BGP peers is recorded, if any; the BGP next hop is not recorded.

Note that:

l   The AS numbers for the source and destination IP addresses of a NetStream flow are recorded. Each IP address corresponds with two AS numbers (origin and peer), and the system records the AS numbers according to the configured AS option..

l   Statistics about BGP next hop are supported in NetStream version 9 only.

Examples

# Configure to export NetStream data in version 5 format and record the number of AS that originates the BGP route.

<Sysname> system-view

[Sysname] ip netstream export version 5 origin-as

ip netstream filter

Syntax

ip netstream filter acl acl-number { inbound | outbound }

undo ip netstream filter acl acl-number { inbound | outbound }

View

Interface view

Default Level

3: Manage level

Parameters

acl-number: ACL number, which must be in the following ranges :

l   2000 to 2999 for basic IPv4 ACLs

l   3000 to 3999 for advanced IPv4 ACLs

l   4000 to 4999 for Ethernet frame header ACLs

inbound: Enables NetStream filtering in the inbound direction.

outbound: Enables NetStream filtering in the outbound direction.

Description

Use the ip netstream filter command to enable ACL-based NetStream filtering in the inbound or outbound direction of an interface.

Use the undo ip netstream filter command to disable the function.

By default, NetStream filtering is disabled.

 

l   An ACL that is referenced by NetStream filtering cannot be deleted or modified. If NetStream filtering and sampling are both configured, packets are filtered first and then the permitted packets are sampled.

l   An ACL must be created before being referenced by NetStream filtering. For description of ACLs, refer to IPv4 ACL Configuration in the Configuration Guide - Part 7 - ACL – QoS.

 

Examples

# Enable ACL-based NetStream filtering in the outbound direction of GigabitEthernet 1/0/1 by referencing ACL 2003.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/1

[Sysname-GigabitEthernet1/0/1] ip netstream filter acl 2003 outbound

ip netstream sampler

Syntax

ip netstream sampler sampler-name { inbound | outbound }

undo ip netstream sampler sampler-name { inbound | outbound }

View

Interface view

Default Level

3: Manage level

Parameters

sampler sampler-name: 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.

 

NetStream sampling is not supported on VLAN-interfaces of the S5820X&S5800.

 

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 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 the active flows, in minutes. It is in the range 1 to 5, and defaults to 5.

Description

Use the ip netstream timeout active command to set the aging timer for active flows for NetStream entries.

Use the undo ip netstream timeout active command to restore the default.

By default, the aging timer for active flows is 5 minutes.

Related commands: ip netstream timeout inactive.

Examples

# Set the aging timer for active flows to 3 minutes.

<Sysname> system-view

[Sysname] ip netstream timeout active 3

ip netstream timeout inactive

Syntax

ip netstream timeout inactive seconds

undo ip netstream timeout inactive

View

System view

Default Level

3: Manage level

Parameters

seconds: Sets the aging timer for inactive flows, in seconds. It is in the range 10 to 300, and defaults to 30.

Description

Use the ip netstream timeout inactive command to set the aging timer for inactive flows for NetStream entries.

Use the undo ip netstream timeout inactive command to restore the default.

By default, the aging timer for inactive flows is 30 seconds.

Related commands: ip netstream timeout active.

 

You can configure both the active flows aging timer and inactive flows aging timer. When either timer for an entry expires, the entry is aged out. The time precision is 10 seconds.

 

Examples

# Set the aging timer for inactive flows to 60 seconds.

<Sysname> system-view

[Sysname] ip netstream timeout inactive 60

netstream filter

Syntax

netstream filter { deny | permit }

undo netstream filter

View

Traffic behavior view

Default Level

2: System level

Parameters

deny: Specifies to forward packets without NetStream processing.

permit: Specifies to perform NetStream processing for packets.

Description

Use the netstream filter command to configure the NetStream filtering action for a traffic behavior.

Use the undo netstream filter command to remove the action configuration.

Example

# Configure the NetStream filtering action as permit for traffic behavior database.

<Sysname> system-view

[Sysname] traffic behavior database

[Sysname-behavior-database] netstream filter permit

reset ip netstream statistics

Syntax

reset ip netstream statistics

View

User view

Default Level

2: System level

Parameters

None

Description

Use the reset ip netstream statistics command to age out and export NetStream data, and clear the cache.

After you execute the command, messages appear telling you that the process of clearing the cache will take several minutes and the system does not perform NetStream during this process. You can execute the command at the command line interface (CLI).

Examples

# Age out and export all NetStream data and clear the cache.

<Sysname> reset ip netstream statistics

This process may take a few minutes.

Netstream statistic function is disabled during this process.

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.