116
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:
Interface 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 e3/1 to 20 seconds.
Switch#(Config-If-Ethernet3/2)#sflow counter-interval 20
2.8.3.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.
Parameter:< input-rate >
is the rate of ingress group sampling,the valid range is
1000~16383500
< output-rate >
is the rate of engress group sampling, the valid range is
1000~16383500
Command Mode:
Interface Mode
Default:
No default value
Usage Guide:
The traffic sampling will not be performed if the sampling rate is not
configured on the port. And if the ingress group sampling rate is set to 10000, this
indicates there will be one group be sampled every 10000 ingress groups.
Example:
Configure the ingress sample rate on port e3/1 to 10000 and the egress
sample rate to 20000
Switch#(Config-If-Ethernet3/2)#sflow rate input 10000
Switch #Config-If-Ethernet3/2)#sflow rate output 20000
2.8.3.8 show sflow
Command: show sflow
Function:
Display the sFlow configuration state
Parameter:
None
Command Mode:
All Modes
Usage Guide:
This command is used to acknowledge the operation state of sFlow