CLI Reference Guide-R04

Table Of Contents
Chapter 7
| Flow Sampling Commands
– 225 –
Use the no sflow owner command to remove the collector.
When the sflow owner command is issued, it’s associated timeout value will
immediately begin to count down. Once the timeout value has reached zero
seconds, the sFlow owner and its associated sampling sources will be deleted
from the configuration.
Example
This example shows an sflow collector being created on the switch.
Console#sflow owner stat_server1 timeout 100 destination 192.168.220.225 port
22500 max-datagram-size 512 version v5
Console#
This example shows how to modify the sFlow port number for an already
configured collector.
Console#sflow owner stat_server1 timeout 100 port 35100
Console#
sflow polling instance This command enables an sFlow polling data source, for a specified interface, that
polls periodically based on a specified time interval. Use the no form to remove the
polling data source instance from the switchs sFlow configuration.
Syntax
sflow polling {interface interface} instance instance-id receiver owner-name
polling-interval seconds
no sflow polling {interface interface} instance instance-id
interface - The source from which the samples will be taken at specified
intervals and sent to a collector.
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-28)
instance-id - An instance ID used to identify the sampling source. (Range: 1)
owner-name - The associated receiver, to which the samples will be sent.
(Range: 1-30 alphanumeric characters)
polling-interval - The time interval at which the sFlow process adds
counter values to the sample datagram. (Range: 0-10000000 seconds, 0
disables this feature)
Default Setting
No sFlow polling instance is configured.