246[Sysname] interface gigabitethernet 4/0/1[Sysname-GigabitEthernet4/0/1] sflow flow collector 2sflow flow max-headerUse sflow flow max-header to set the maximum number of bytes of a packet (starting from the packetheader) that flow sampling can copy.Use undo sflow flow max-header to restore the default.Syntaxsflow flow max-header lengthundo sflow flow max-headerDefaultFlow sampling can copy up to 128 bytes of a packet. H3C recommends that you use the default value.ViewsInterface viewDefault command level2: System levelParametersLength: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512.Examples# Set the maximum number of bytes that can be copied to 60 on GigabitEthernet 4/0/1. system-view[Sysname] interface gigabitethernet 4/0/1[Sysname-GigabitEthernet4/0/1] sflow flow max-header 60sflow sampling-modeUse sflow sampling-mode to specify the packet sampling mode.Use undo sflow sampling-mode to restore the default.Syntaxsflow sampling-mode { determine | random }undo sflow sampling-modeViewsInterface viewDefault command level2: System levelParametersdetermine: Specifies the fixed sampling mode. For example, if the flow sampling rate is set to 4000 (byusing 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.