09-Network Management Configuration Guide

HomeSupportReference GuidesCommand ReferencesH3C Access Controllers Command References(E3703P61 R2509P61 R3709P61 R2609P61 R3509P61)-6W10209-Network Management Configuration Guide
09-sFlow Commands
Title Size Download
09-sFlow Commands 63.51 KB

sFlow configuration commands

display sflow

Use display sflow to display the sFlow configuration and operation information.

Syntax

display sflow [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display sFlow configuration and operation information.

<Sysname> display sflow

sFlow Version: 5

sFlow Global Information:

Agent        IP:192.168.0.109(CLI)

Source  Address:

Collector Information:

ID   IP                       Port  Aging      Size   Description

1    192.168.0.100          9996  N/A        1400   CLI Collector

2                              6343  0          1400

3                              6343  0          1400

4                              6343  0          1400

5                              6343  0          1400

6                              6343  0          1400

7                              6343  0          1400

8                              6343  0          1400

9                              6343  0          1400

10                             6343  0          1400

sFlow Port Information:

Interface       CID Interval(s) FID MaxHLen Rate     Mode      Status

WLAN-ESS1        1   20            1   128     1000      Determine Active

WLAN-DBSS1:6    1   20            1   128     1000       Determine Active

Table 1 Command output

Field

Description

sFlow Version

sFlow version:

·     4—sFlow version 4.

·     5—sFlow version 5.

sFlow Global Information

Global sFlow information.

Agent IP

IP address of the sFlow agent:

·     CLI—Manually configured IP address.

·     Auto—Automatically configured IP address.

Source Address

Source IP address of sFlow packets.

Collector Information

sFlow collector information.

ID

sFlow collector ID.

IP

sFlow collector IP address.

Port

sFlow collector port.

Aging

Remaining lifetime of the sFlow collector. If the sFlow collector never ages out, this field displays N/A.

Size

Maximum length of the sFlow data portion in an sFlow packet.

Description

Description of the sFlow collector.

sFlow Port Information

Information about the sFlow enabled ports.

Interface

sFlow enabled interface.

CID

ID of the target collector, for receiving the counter sampling data.

Interval(s)

Counter sampling interval, in seconds.

FID

ID of the target collector for receiving the flow sampling data.

MaxHLen

Maximum copied length of a sampled packet.

Rate

Packet sampling interval.

Mode

Packet sampling mode:

·     Determine—Samples a fixed number of packets.

·     Random—Samples a random number of packets.

Status

Status of the sFlow enabled port:

·     Suspend—Port is down.

·     Active—Port is up.

 

dot11a sflow enable

Use dot11a sflow enable to enable sFlow on the 5 GHz radio of an AP group.

Use undo dot11a sflow enable to disable sFlow on the 5 GHz radio of an AP group.

Syntax

dot11a sflow enable

undo dot11a sflow enable

Default

sFlow is enabled in an AP group.

Views

AP group view

Default command level

2: System level

Usage guidelines

The flow sampling configuration can take effect only when sFlow is enabled.

Examples

# Disable sFlow on the 5 GHz radio of the AP group office.

<Sysname> system-view

[Sysname] wlan ap-group office

[Sysname-ap-group-office] undo dot11a sflow enable

dot11bg sflow enable

Use dot11bg sflow enable to enable sFlow on the 2.4 GHz radio of an AP group.

Use undo dot11bg sflow enable to disable sFlow on the 2.4 GHz radio of an AP group.

Syntax

dot11bg sflow enable

undo dot11bg sflow enable

Default

sFlow is enabled in an AP group.

Views

AP group view

Default command level

2: System level

Usage guidelines

The flow sampling configuration can take effect only when sFlow is enabled.

Examples

# Disable sFlow on the 2.4 GHz radio of the AP group office.

<Sysname> system-view

[Sysname] wlan ap-group office

[Sysname-ap-group-office] undo dot11bg sflow enable

sflow agent

Use sflow agent to configure an IP address for the sFlow agent.

Use undo sflow agent to remove the configured IP address.

Syntax

sflow agent { ip ip-address | ipv6 ipv6-address }

undo sflow agent { ip | ipv6 }

Default

No IP address is configured for the sFlow agent. The device periodically checks whether the sFlow agent has an IP address. If the sFlow agent has no IP address configured, the device automatically selects an IP address for it. However, the device does not save the automatically selected IP address in the configuration file.

Views

System view

Default command level

2: System level

Parameters

ip ip-address: Specifies an IPv4 address for the sFlow agent.

ipv6 ipv6-address: Specifies an IPv6 address for the sFlow agent.

Usage guidelines

HP recommends that you manually configure an IP address for the sFlow agent.

Only one IP address can be specified for the sFlow agent on the device.

Examples

# Specify IP address 10.10.10.1 for the sFlow agent.

<Sysname> system-view

[Sysname] sflow agent ip 10.10.10.1

sflow collector

Use sflow collector to configure parameters for an sFlow collector.

Use undo sflow collector to remove an sFlow collector.

Syntax

sflow collector collector-id { { ip ip-address | ipv6 ipv6-address } | datagram-size size | description text | port port-number | time-out seconds } *

undo sflow collector collector-id

Default

The device provides a number of sFlow collectors. Use the display sflow command to display these sFlow collectors.

Views

System view

Default command level

2: System level

Parameters

collector-id: Specifies an ID for the sFlow collector. You can configure up to 10 sFlow collectors.

ip ip-address: Specifies an IPv4 address for the sFlow collector.

ipv6 ipv6-address: Specifies an IPv6 address for the sFlow collector.

description text: Configures a description for the sFlow collector. The default description is "CLI Collector."

datagram-size size: Specifies the maximum length of the sFlow data portion in an sFlow packet. The value ranges from 200 to 3000 bytes and defaults to 1400 bytes.

port port-number: Specifies the port number of the sFlow collector, in the range of 1 to 65535. The default port number is 6343.

time-out seconds: Specifies the aging time of the sFlow collector, in the range of 1 to 2147483647, in seconds. When the aging time expires, all the settings of the sFlow collector are restored to the default. For an sFlow collector with the aging timer configured, the system does not save its configuration in the configuration file. By default, the sFlow collector never ages out.

Examples

# Specify the following parameters for sFlow collector 2:

·     Destination IP address: 3.3.3.1.

·     Port number: The default.

·     Description: netserver.

·     Aging time: 1200 seconds.

·     Maximum length of the sFlow data portion: 1000 bytes.

<Sysname> system-view

[Sysname] sflow collector 2 ip 3.3.3.1 description netserver time-out 1200 datagram-size 1000

sflow counter interval

Use sflow counter interval to set the counter sampling interval.

Use undo sflow counter interval to disable counter sampling.

Syntax

sflow counter interval interval-time

undo sflow counter interval

Default

Counter sampling is disabled.

Views

Interface view

Default command level

2: System level

Parameters

interval-time: Specifies the counter sampling interval in the range of 2 to 86400 seconds.

Examples

# Set the counter sampling interval to 120 seconds on WLAN-ESS 1.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow counter interval 120

sflow counter collector

Use sflow counter collector to specify an sFlow collector for counter sampling.

Use undo sflow counter collector to remove the sFlow collector for counter sampling.

Syntax

sflow counter collector collector-id

undo sflow counter collector

Default

No sFlow collector is specified for counter sampling.

Views

Interface view

Default command level

2: System level

Parameters

collector-id: Specifies an sFlow collector.

Examples

# Specify sFlow collector 2 on WLAN-ESS 1 for counter sampling.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow counter collector 2

sflow enable

Use sflow enable to enable sFlow on an AP.

Use undo sflow enable to disable sFlow on an AP.

Syntax

sflow enable

undo sflow enable

Default

sFlow is enabled on an AP.

Views

Radio view

Default command level

2: System level

Usage guidelines

The flow sampling configuration can take effect only when sFlow is enabled.

Examples

# Disable sFlow.

<Sysname> system-view

[sysname] wlan ap ap3 model WA2610E-AGN

[sysname-wlan-ap-ap3] radio 1 type dot11gn

[sysname-wlan-ap-ap3-radio-1] undo sflow enable

sflow flow collector

Use sflow flow collector to specify an sFlow collector for flow sampling.

Use undo sflow flow collector to remove the sFlow collector for flow sampling.

Syntax

sflow flow collector collector-id

undo sflow flow collector

Default

No sFlow collector is specified for flow sampling.

Views

Interface view

Default command level

2: System level

Parameters

collector-id: Specifies an sFlow collector.

Examples

# Specify collector ID 2 on WLAN-ESS 1 for flow sampling.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow flow collector 2

sflow flow max-header

Use sflow flow max-header to set the maximum number of bytes of a packet (starting from the packet header) that flow sampling can copy.

Use undo sflow flow max-header to restore the default.

Syntax

sflow flow max-header length

undo sflow flow max-header

Default

Flow sampling can copy up to 128 bytes of a packet. HP recommends that you use the default value.

Views

Interface view

Default command level

2: System level

Parameters

Length: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512.

Examples

# Set the maximum number of bytes that can be copied to 60 on WLAN-ESS 1.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow flow collector 2

sflow sampling-mode

Use sflow sampling-mode to specify the packet sampling mode.

Use undo sflow sampling-mode to restore the default.

Syntax

sflow sampling-mode { determine | random }

undo sflow sampling-mode

Default

The random sampling mode is used.

Views

Interface view

Default command level

2: System level

Parameters

determine: Specifies the fixed sampling mode. For example, if the flow sampling interval is set to 4000 (by using the sflow sampling-rate command), the device samples packets as follows:

·     Randomly samples a packet, like the 10th packet, from the first 4000 packets.

·     Samples the 4010th packet the next time, and so on.

random: Specifies the random sampling mode. For example, if the packet sampling interval is set to 4000, the device might randomly sample packets as follows:

·     One packet from the first 4000 packets.

·     Two from the next 4000 packets.

·     None from the third 4000 packets.

However, the device generally samples one packet from 4000 packets on the average.

Usage guidelines

This command is supported only on Ethernet and WLAN-ESS interfaces, instead of logical interfaces (Ethernet subinterfaces and VLAN interfaces) and network management interfaces.

Examples

# Specify the fixed sample mode on WLAN-ESS 1.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow sampling-mode determine

Related commands

sflow sampling-rate

sflow sampling-rate

Use sflow sampling-rate to specify the number of packets out of which flow sampling will sample one packet on an interface.

Use undo sflow sampling-rate to disable sampling.

Syntax

sflow sampling-rate interval

undo sflow sampling-rate

Default

Flow sampling samples one packet out of 2000 packets.

Views

Interface view

Default command level

2: System level

Parameters

interval: Specifies the number of packets out of which flow sampling will sample one packet on the interface. The value range for this argument is 1000 to 5000.

Usage guidelines

This command is supported only on Ethernet interfaces, instead of logical interfaces (such as Ethernet subinterfaces and VLAN interfaces) and network management interfaces.

The bigger the value of the interval argument, the lower the sampling rate.

Examples

# Configure WLAN-ESS 1 to sample one packet out of 4000 packets.

<Sysname> system-view

[Sysname] interface WLAN-ESS 1

[Sysname-WLAN-ESS1] sflow sampling-rate 4000

Related commands

sflow sampling-mode

sflow source

Use sflow source to specify the source IP address of sFlow packets.

Use undo sflow source to remove the specified source IP address.

Syntax

sflow source { ip ip-address | ipv6 ipv6-address } *

undo sflow source { ip | ipv6 } *

Default

No source IP address is specified for sFlow packets.

Views

System view

Default command level

2: System level

Parameters

ip ip-address: Specifies the source IPv4 address of sFlow packets.

ipv6 ipv6-address: Specifies the source IPv6 address of sFlow packets.

Examples

# Specify the source IPv4 address of sFlow packets as 10.0.0.1.

<Sysname> system-view

[Sysname] sflow source ip 10.0.0.1

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网