223
Configuring flow sampling
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enter Layer 2 or Layer 3
Ethernet interface view.
interface interface-type interface-
number
—
3. Set the Flow sampling mode.
sflow sampling-mode { determine
| random }
Optional.
random by default.
The determine mode is not
supported on the switch.
4. Specify the number of packets
out of which the interface will
sample a packet.
sflow sampling-rate rate
Required.
By default, no sampling rate is
specified.
5. Set the maximum copied
length of a sampled packet.
sflow flow max-header length
Optional.
By default, up to 128 bytes of a
sampled packet can be copied.
HP recommends using the default
value.
6. Specify the sFlow collector for
flow sampling.
sflow flow collector collector-id
Required.
No collector is specified for flow
sampling by default.
Configuring counter sampling
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enter layer 2 or layer 3
Ethernet interface view.
interface interface-type interface-
number
—
3. Set the interval for counter
sampling.
sflow counter interval seconds
Required.
Counter sampling is disabled by
default.
4. Specify the sFlow collector for
counter sampling.
sflow counter collector collector-id
Required.
No collector is specified for
counter sampling by default.
Displaying and maintaining sFlow
To do… Use the command… Remarks
Display sFlow configuration information
display sflow [ slot slot-number ] [ |
{ begin | exclude | include } regular-
expression ]
Available in any view