Configuring flow sampling – H3C Technologies H3C MSR 50 User Manual

Page 164

Advertising
background image

Step Command

Remarks

Not specified by default. 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 interface IP address for the

sFlow agent but does not save the IP address.

389.

Configure an
IP address for

the sFlow
agent.

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

NOTE:

H3C recommends that you configure an IP address

manually for the sFlow agent.

Only one IP address can be specified for the sFlow

agent on the device.

sflow collector collector-id
{ { ip ip-address | ipv6

ipv6-address } |

datagram-size size |
description text | port

port-number | time-out

seconds } *

By default, the device presets a certain number of sFlow
collectors.

390.

Configure the
sFlow

collector
information.

Use the display sflow command to display the
parameters of the preset sFlow collectors.

Optional.

391.

Specify the
sFlow version. sflow version { 4 | 5 }

The default sFlow version is 5.

392.

Specify the
source IP

address of

sFlow

packets.

Optional.

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

Not specified by default.

Configuring flow sampling

Step Command

Remarks

393.

Enter system view.

system-view

N/A

interface interface-type
interface-number

394.

Enter Ethernet interface view.

N/A

sflow sampling-mode determine |
random

395.

Set the flow sampling mode.

Optional.

396.

Specify the number of packets

out of which flow sampling
samples a packet on the

interface.

sflow sampling-rate rate

Required.

Optional.

397.

Set the maximum number of
bytes of a packet (starting

from the packet header) that

flow sampling can copy.

The default setting is 128 bytes.
H3C recommends that you use the

default value.

sflow flow max-header length

398.

Specify the sFlow collector for

flow sampling.

No collector is specified for flow
sampling by default.

sflow flow collector collector-id

151

Advertising