Examples
# Specify sFlow collector 2 on GigabitEthernet 3/0/1 for flow sampling.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] sflow flow collector 2
sflow flow max-header
Use sflow flow max-header to set the maximum number of bytes (starting from the packet header) that
flow sampling can copy per packet.
Use undo sflow flow max-header to restore the default.
Syntax
sflow flow max-header length
undo sflow flow max-header
Default
Flow sampling can copy up to 128 bytes of a packet.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
length: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512. HP
recommends that you use the default.
Examples
# Set the maximum number of bytes that can be copied to 60 on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] sflow flow max-header 60
sflow sampling-mode
Use sflow sampling-mode to specify a flow sampling mode.
Use undo sflow sampling-mode to restore the default.
Syntax
sflow sampling-mode { determine | random }
undo sflow sampling-mode
Default
The device samples packets in determine mode.
201