6 sflow sample enable – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 851

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 851 of 855

involving a high CPU utilization.
This command can only be configured on a port which is not a link-agg group member. The port can be either
a physical port or a link-agg port.

Examples
This example shows how to set the sFlow sampling rate to 2048 on eth-0-1.

Switch# configure terminal
Switch (config)# interface eth-0-1
Switch (config)# sflow sample rate 2048
% Warning: sFlow sampling requires high CPU usage, especially with a low rate.
It is suggested not configure a rate less than default value 8192.

Related Commands

45.6 sFlow sample enable

Use this command to enable or

disable packet sampling on individual port

.

Command Syntax

(no|)

sflow sample enable (input|output|both)

sflow: Set sFlow params
sample: Set sFlow packet sample
enable: Enable service
input: Input packet sample
output: Output packet sample
both: Both input and output packet sample

Command Mode
Interface configuration mode

Usage

Use this command to enable packet sampling on individual port. Input and output parameters are used to
specify the direction of packet sampling. Use the no parameter with this command to disable packet sampling.
By default, sFlow packet sampling is disabled in all ports. You can enable packet sampling for both input and
output direction.
If a packet is filtered by VLAN ACL, it will not be sampled by sFlow. This will happen in the case that a
sFlow-enabled switchport is without port ACL but with VLAN ACL. So, when packet sampling is enabled on a
switchport, a prompt will be given to info the potential of invalidation of packet sampling.
This command can only be configured on a port which is not a link-agg group member. The port can be either
a physical port or a link-agg port.

Examples
This example shows how to enable both input and output packet sampling on route port eth-0-1 and enable

Advertising