Chapter 7
| Flow Sampling Commands
– 195 –
This example shows how to modify the sFlow port number for an already
configured collector.
Console(config)#sflow owner stat_server1 timeout 100 port 35100
Console(config)#
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 switch’s 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-10/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.
Command Mode
Privileged Exec
Command Usage
This command enables a polling data source and configures the interval at which
counter values are added to the sample datagram.
Example
This example sets the polling interval to 10 seconds.
Console(config)#interface ethernet 1/9
Console(config-if)#sflow polling-interval 10
Console(config-if)#