R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

184
Ste
p
Command Remarks
2. Configure an
IP address for
the sFlow
agent.
sflow agent { ip ip-address |
ipv6 ipv6-address }
Optional.
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.
NOTE:
HP recommends configuring an IP address manually
for the sFlow agent.
Only one IP address can be specified for the sFlow
agent on the device.
3. Configure the
sFlow
collector
information.
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.
Use the display sflow command to display the
parameters of the preset sFlow collectors.
4. Specify the
source IP
address of
sFlow
packets.
sflow source { ip ip-address |
ipv6 ipv6-address } *
Optional.
Not specified by default.
Configuring flow sampling
Ste
p
Command
Remarks
1. Enter system view.
system-view
N/A
2. Enter Ethernet interface view.
interface interface-type
interface-number
N/A
3. Set the flow sampling mode.
sflow sampling-mode { determine
| random }
Optional.
4. Specify the number of packets
out of which flow sampling
samples a packet on the
interface.
sflow sampling-rate rate N/A
5. Set the maximum number of
bytes of a packet (starting
from the packet header) that
flow sampling can copy.
sflow flow max-header length
Optional.
The default setting is 128 bytes. HP
recommends using the default
value.
6. Specify the sFlow collector for
flow sampling.
sflow flow collector collector-id
No collector is specified for flow
sampling by default.