mac

Commands for sFlow
552
55.8 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 egress group sampling, the valid range is
1000~16383500.
Command Mode: Port 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 e1/1 to 10000 and the egress
sample rate to 20000.
Switch(Config-If-Ethernet1/1)#sflow rate input 10000
Switch(Config-If-Ethernet1/1)#sflow rate output 20000
55.9 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.
Switch#show sflow
Sflow version 1.2
Agent address is 172.16.1.100
Collector address have not configured
Collector port is 6343
Sampler priority is 2
Sflow DataSource: type 2, index 194(Ethernet1/2)
Collector address is 192.168.1.200
Collector port is 6343
Counter interval is 0
Sample rate is input 0, output 0