Configuring sflow, Displaying sflow, 2 displaying sflow – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 360

Advertising
background image

32-2

2) The sFlow agent periodically collects interface statistics on all sFlow enabled ports.

3) When the sFlow packet buffer overflows or the one-second timer expires, the sFlow agent sends

the sFlow packets to the specified sFlow collector.

Configuring sFlow

Follow these steps to configure sFlow:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure an IP address for the
sFlow agent

sflow agent ip ip-address

Required
Not configured by default.

Specify the IP address and port
number of the sFlow collector

sflow collector ip

ip-address

[ port port-num ]

Required
Not specified by default.

Set the sFlow interval

sflow interval interval-time

Optional
20 seconds by default.

Enter interface view

interface interface-type
interface-number

Enable sFlow in the inbound or
outbound direction

sflow

enable { both | inbound |

outbound

}

Required
Not enabled by default.

Specify the sFlow sampling mode

sflow sampling-mode

{ determine | random }

Optional

random

by default.

Currently, the determine mode is
not supported on the WX6103
access controller switch interface
board.

Specify the sFlow sampling rate

sflow sampling-rate rate

Optional
200000 by default.

z

The sFlow agent and sFlow collector must not have the same IP address.

z

Currently, you can specify at most two sFlow collectors on the WX6103 access controller switch
interface board.

Displaying sFlow

To do…

Use the command…

Remarks

Display sFlow configuration
information

display sflow

Available in any view

Advertising