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