beautypg.com

Configuring counter sampling, Displaying and maintaining sflow – H3C Technologies H3C MSR 5600 User Manual

Page 210

background image

197

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Ethernet interface view. interface interface-type

interface-number

N/A

3.

(Optional.) Set the flow

sampling mode.

sflow sampling-mode { determine
| random }

The default mode is determine.

4.

Enable flow sampling and
specify the number of packets

out of which flow sampling

samples a packet on the

interface.

sflow sampling-rate rate

By default, this function is disabled.

5.

(Optional.) Set the maximum
number of bytes of a packet

(starting from the packet
header) that flow sampling

can copy.

sflow flow max-header length

The default setting is 128 bytes.

6.

Specify the sFlow collector for

flow sampling.

sflow flow collector collector-id

By default, no sFlow collector is
specified for flow sampling.

Configuring counter sampling

Perform this task to configure counter sampling on an Ethernet interface. The sFlow agent periodically

collects the counter information on that interface, encapsulates the information into sFlow packets, and

sends them in UDP packets to the specified sFlow collector.
To configure counter sampling:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Ethernet interface view. interface interface-type

interface-number

N/A

3.

Enable counter sampling and
set the counter sampling

interval.

sflow counter interval interval-time

By default, counter sampling is
disabled.

4.

Specify the sFlow collector for

counter sampling.

sflow counter collector collector-id

By default, no sFlow collector is
specified for counter sampling.

Displaying and maintaining sFlow

Execute display commands in any view.

Task Command

Display sFlow configuration.

display sflow

This manual is related to the following products: