353
38.5 sflow data-len
Command: sflow data-len <length-value>
no sflow data-len
Function: Configure the max length of the sFlow packet data; the ―no sflow data-len‖
command restores to the default value.
Parameter: <length-value> is the value of the length with a value range of 500-1470.
Command Mode: Port Mode.
Default: The value is 1400 by default.
Usage Guide: When combining several samples to a sFlow group to be sent, the length
of the group excluding the MAC head and IP head parts should not exceed the configured
value.
Example: Configure the max length of the sFlow packet data to 1000.
switch (Config-If-Ethernet1/2)#sflow data-len 1000
38.6 sflow counter-interval
Command: sflow counter-interval <interval-value>
no sflow counter-interval
Function: Configure the max interval of the sFlow statistic sampling; the ―no‖ form of this
command deletes the statistic sampling interval value.
Parameter:<interval-value> is the value of the interval with a valid range of 20~120 and
shown in second.
Command Mode: Port Mode
Default: No default value
Usage Guide: If no statistic sampling interval is configured, there will not be any statistic
sampling on the interface.
Example: Set the statistic sampling interval on the interface e1/1 to 20 seconds.
Switch(Config-If-Ethernet1/1)#sflow counter-interval 20
38.7 sflow rate
Command: sflow rate { input <input-rate> | output <output-rate >}
no sflow rate [input | output]
Function: Configure the sample rate of the sFlow hardware sampling. The ―no‖ form of
this command deletes the sampling rate value.