HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
220
Syntax
sflow flow max-header length
undo sflow flow max-header
Default
Flow sampling can copy up to 128 bytes of a packet.
Views
Ethernet interface view
Predefined user roles
network-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 Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/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 fixed flow sampling mode is used.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
determine: Specifies the fixed sampling mode. For example, if the flow sampling interval is set to 4000
(by using the sflow sampling-rate command), the device randomly samples a packet, like the tenth
packet, from the first 4000 packets. The next time the device samples the 4010th packet, and so on.
random: Specifies the random sampling mode. For example, if the packet sampling interval is set to
4000, the device might sample one packet from the first 4000 packets, multiple packets from the next
4000 packets, and none from the third 4000 packets, randomly. But generally the device samples one
packet from 4000 packets on the average.