ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
27
| Flow Sampling Commands
– 1027
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 sampling
instance
This command enables an sFlow data source instance for a specific
interface that takes samples periodically based on the number of packets
processed. Use the no form to remove the sampling data source instance
from the switch’s sFlow configuration.
SYNTAX
sflow sampling {interface interface} instance instance-id
receiver owner-name sampling-rate sample-rate
[max-header-size max-header-size]
no sflow sample {interface interface} instance instance-id
interface - The source from which the samples will be taken and
sent to a collector.
ethernet unit/port
unit - Stack unit. (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)
sample-rate - The packet sampling rate, or the number of packets
out of which one sample will be taken. (Range: 256-16777215
packets)
max-header-size - The maximum size of the sFlow datagram
header. (Range: 64 to 256 bytes)
DEFAULT SETTING
No sFlow sampling instance id configured.
Maximu Header Size: 128 bytes
COMMAND MODE
Privileged Exec