H3C S9500 Command Manual-Release1648[v1.24]-08 System Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release1648[v1.24]-08 System Volume
06-NetStream Commands
Title Size Download
06-NetStream Commands 51.06 KB

Chapter 1  NetStream Configuration Commands

1.1  NetStream Configuration Commands

1.1.1  display ip netstream cache

Syntax

display ip netstream cache slot slot-no

View

Any view

Parameters

slot-no: Number of the slot where the NAM service processor board is seated.

Description

Use the display netstream cache command to query the configuration and status information about the NetStream cache on the NAM service processor board.

Examples

# Display the information about the NetStream cache (assuming that the NAM service processor board is seated in slot 4).

<H3C> display ip netstream cache slot 4

IP netstream cache information in slot 4

  Stream active timeout(minute)      : 5

  Stream inactive timeout(second)    : 60

  Active IP stream entry             : 0

  Active MPLS stream entry           : 0

  IP Stream entry been statistics    : 382858

  MPLS Stream entry been statistics  : 0

  Last statistics reset time         : 09:52:40 2005/12/01

 

 Protocol           Total  Packets   Stream   Packets

                  Streams     /Sec     /Sec   /stream

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

 TCP-other         382858       22       21         1

 Total             382858       22       21         1 

Table 1-1 display netstream cache command output description

Field

Description

Stream active timeout(minute)       : 5

The currently active timeout time is 5 minutes.

Stream inactive timeout(second)   : 60

The currently inactive timeout time is 60 seconds.

Active IP stream entry                    : 0

No active IP stream entry is in the NetStream cache.

Active MPLS stream entry              : 0

No active MPLS stream entry is in the NetStream cache.

IP Stream entry been statistics       : 0

No IP stream entry has been aged by NetStream.

MPLS Stream entry been statistics: 0

No MPLS stream entry has been aged by NetStream.

Last statistics reset time : 09:52:40 2005/12/01

The time when statistics was latest cleared.

 

1.1.2  display ip netstream export

Syntax

display ip netstream export slot slot-no

View

Any view

Parameters

slot-no: Number of the slot where the NAM service processor board is seated.

Description

Use the display ip netstream export command to query the information about the NetStream statistics export packets on the NAM service processor board seated in a slot.

Examples

# Display the NetStream statistics export information (assuming that the NAM service processor board is seated in slot 2).

<H3C> display ip netstream export slot 2

Version 5 export information

  Stream source address                       : 192.168.1.5

  Stream destination IP(UDP)                  : 192.168.1.2(9991)

   Exported stream number                     : 16

   Exported UDP datagram number(failed number): 16(0)

 

 Version 9 MPLS export information

  Stream source address                       : 0

  Stream destination IP(UDP)                  : 192.168.1.2(9991)

   Exported stream number                     : 0

   Exported UDP datagram number(failed number): 0(0)

 

 Version 8 tos-source-prefix export information

  Stream source address                       : 0

  Stream destination IP(UDP)                  : 192.168.1.2(9991)

   Exported stream number                     : 2

   Exported UDP datagram number(failed number): 2(0)

Table 1-2 display ip netstream export command output description

Field

Description

Version 5 export information

Version 5 statistics export information

Stream source address

Source address of the export packet

Stream destination IP(UDP)

Destination address and destination port number of the export packet

Exported stream number

Number of exported streams

Exported UDP datagram number(failed number)

Number of exported UDP packets (times of sending failures)

Version 9 MPLS export information

Version 9 MPLS stream statistics export information

Version 8 tos-source-prefix export information

Version 8 statistics export information which has enabled the ToS-source-prefix aggregation (the disabled aggregation function is not displayed)

 

1.1.3  enable

Syntax

enable

undo enable

View

NetStream aggregation view

Parameters

None

Description

Use the enable command to enable the aggregation mode corresponding to the current aggregation view.

Use the undo enable command to disable this aggregation mode.

No aggregation mode is enabled by default.

Related commands: ip netstream aggregation.

Examples

# Enable the autonomous system (AS) aggregation mode of NetStream.

<H3C> system-view

[H3C] ip netstream aggregation as

[H3C-aggregation-as] enable

1.1.4  ip netstream enable

Syntax

ip netstream enable slot slot-no

undo ip netstream enable slot slot-no

View

System view

Parameters

slot-no: Number of the slot where the NAM service processor board is located.

Description

Use the ip netstream enable command to enable the NetStream statistics function.

Use the undo ip netstream enable command to disable the NetStream statistics function.

The NetStream statistics function is disabled by default

Examples

# Duplicate the inbound packets of GigabitEthernet 6/1/2 to the NAM board on slot 2, and enable the NetStream statistics function.

<H3C> system-view

[H3C] mirroring-group 1 inbound GigabitEthernet6/1/2 mirror-to slot 2

[H3C] ip netstream enable slot 2

1.1.5  ip netstream aggregation

Syntax

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

View

System view

Parameters

as: AS aggregation which classifies the stream according to the NetStream’s source AS number, destination AS number and the outbound interface index.

destination-prefix: Destination prefix aggregation which classifies the stream according to the NetStream’s destination AS number, destination mask length, the destination prefix and the outbound interface index.

prefix: Source and destination prefix aggregation which classifies the stream according to the NetStream’s source AS number, destination AS number, source mask length, destination mask length, source prefix, destination prefix and the outbound interface index.

prefix-port: Prefix port aggregation which classifies the stream according to the NetStream’s source prefix, destination prefix, source port, outbound interface index and ToS value.

protocol-port: Protocol port aggregation which classifies the stream according to the NetStream’s protocol number, source port and destination port.

source-prefix: Source prefix aggregation which classifies the stream according to the NetStream’s source AS number, source mask length and the source prefix.

tos: ToS-AS aggregation which classifies the stream according to the NetStream’s ToS, source AS number, destination AS number, source interface and the outbound interface index.

tos-destination-prefix: ToS-destination-prefix aggregation which classifies the stream according to the NetStream’s destination AS number, destination mask length, destination prefix and outbound interface index.

tos-prefix: ToS-prefix aggregation which classifies the stream according to the NetStream’s ToS, source AS number, source prefix, source mask length, destination AS number, destination mask length and destination prefix.

tos-protocol-port: Tos-protocol-port aggregation which classifies the stream according to the NetStream’s ToS, protocol type, source port and destination port.

tos-source-prefix: ToS-source-prefix aggregation which classifies the stream according to the NetStream’s ToS, source prefix, source mask length and source interface index.

Description

Use the ip netstream aggregation command to enter NetStream aggregation view. .

In aggregation view, you can enable/disable the aggregation function, and set the source interface, destination IP address and destination port number of the version 8 UDP packet.

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

Examples

# Enter NetStream AS aggregation view.

<H3C> system-view

[H3C] ip netstream aggregation as

[H3C-aggregation-as]

1.1.6  ip netstream export host

Syntax

ip netstream export host ipaddress udpport

undo ip netstream export host ipaddress

View

System view, aggregation view

Parameters

ip-address: IP address of the destination host of NetStream statistics export packets, in dotted decimal notation.

udpport: UDP port number of the destination host of NetStream statistics export packets.

Description

Use the ip netstream export host command to configure the destination host IP address and UDP port number of the NetStream statistics export packet.

Use the undo ip netstream export host command to disable the configured destination host IP address of the NetStream statistics export packet. If the destination host IP address is not configured currently, the default setting is adopted.

By default, the destination address and destination port number are 0 in system view, and in aggregation view the destination address and destination port number are what they are set in system view.

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

You can configure different destination host IP addresses and port numbers in different aggregation modes.

 

&  Note:

A packet can be sent to two different destination hosts at the same time.

 

Examples

# Set the destination IP address and UDP port number of the NetStream statistics export packet to 192.168.1.2 and 9991 respectively.

<H3C> system-view

[H3C] ip netstream export host 192.168.1.2 9991

1.1.7  ip netstream export source

Syntax

ip netstream export source ipaddress

undo ip netstream export source

View

System view, aggregation view

Parameters

ip-address: Source IP address to be set for the NetStream statistics export packets, in dotted decimal notation.

Description

Use the ip netstream export source command to configure the source IP address for the NetStream statistics export packets. This IP address will serve as the source address of the UDP packets.

Use the undo ip netstream export source command to restore the default setting.

The source IP address is 0 by default.

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

You can configure different source IP addresses in different aggregation modes.

Examples

# Set the source IP address of the NetStream statistics export packets to 192.168.1.5.

<H3C> system-view

[H3C] ip netstream export source 192.168.1.5

1.1.8  ip netstream export version

Syntax

ip netstream export version versionNo [ origin-as | peer-as ]

undo ip netstream export version

View

System view

Parameters

versionNo: Version number of the NetStream statistics export packets. Version 5 and version 9 are supported currently.

origin-as: Uses the original AS number as the AS number of the specified IP address.

peer-as: Uses the peer AS number as the AS number of the specified IP address.

Description

Use the ip netstream export version command to configure the version number and AS options for the NetStream statistics export packets.

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

By default, the AS option is peer-as, the version number of MPLS packets is 9, the version number of aggregation statistics packets is 8, and the version number of other packets is 5.

Examples

# Set the version number of NetStream statistics export packets to 5 and use the original AS number as the AS number of the specified IP address.

<H3C> system-view

[H3C] ip netstream export version 5 origin-as

1.1.9  ip netstream timeout active

Syntax

ip netstream timeout active minutes

undo ip netstream timeout active

View

System view

Parameters

minutes: Active timeout time of NetStream (in minutes), in the range 1 to 60.

Description

Use the ip netstream timeout active command to configure the active timeout time of the streams on all the NAM boards in the system.

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

By default, the active timeout time of the stream is 30 minutes.

When the active time of a stream (from the set-up time to now) reaches the set limit, the stream will be aged.

Related commands: ip netstream timeout inactive.

Examples

# Set the active timeout time of NetStream to 60 minutes.

<H3C> system-view

[H3C] ip netstream timeout active 60

1.1.10  ip netstream timeout inactive

Syntax

ip netstream timeout inactive seconds

undo ip netstream timeout inactive

View

System view

Parameters

seconds: Inactive timeout time of NetStream (in seconds), in the range 60 to 600.

Description

Use the ip netstream timeout inactive command to configure the inactive timeout time of NetStream.

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

By default, the inactive timeout time of NetStream is 60 seconds.

When the inactive time of a stream (from the time when the last packet of this stream flows by to now) reaches the set limit, the stream will be aged.

Related commands: ip netstream timeout active.

Examples

# Set the inactive timeout time of NetStream to 150 seconds.

<H3C> system-view

[H3C] ip netstream timeout inactive 150

1.1.11  reset ip netstream statistics

Syntax

reset ip netstream statistics slot slot-no

View

User view

Parameters

slot-no: Number of the slot where the NAM service processor board is seated.

Description

Use the reset ip netstream statistics command to clear the NetStream statistics information and export statistics information of the specified NAM board and age all the streams in the stream cache.

Examples

# Clear the NetStream statistics information of the NAM board seated in slot 2 and age all the streams in the stream cache.

<H3C> reset ip netstream statistics slot 2

1.1.12  ip netstream template refresh

Syntax

ip netstream template refresh packets

undo ip netstream template refresh

View

System view

Parameters

packets: Packet refresh rate of the template, in the range 1 to 600.

Description

Use the ip stream template refresh command to set the packet refresh rate of the template.

Use the undo ip stream template refresh command to restore the packet refresh rate of the template to the default value.

The packet refresh rate of the template is 20 by default.

Examples

# Set the packet refresh rate of the template to 100.

<H3C> system-view

[H3C] ip netstream template refresh 100

1.1.13  ip netstream template timeout

Syntax

ip netstream template timeout minutes

undo ip netstream template timeout

View

System view

Parameters

minutes: Timeout time of the template in minutes, in the range 1 to 3,600.

Description

Use the ip stream template timeout command to set the timeout time of a template.

Use the undo ip stream template timeout command to restore the timeout time of the template to the default.

By default, the timeout time of a template is 30 minutes.

Examples

# Set the timeout time of the template to 60 minutes.

<H3C> system-view

[H3C] ip netstream template timeout 60

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网