enable sflow ports

enable sflow ports [ all |port_list ] {ingress | egress | both }

Description

Enables sFlow statistical packet sampling on a particular list of ports.

Syntax Description

port_list Specifies a list of ports.
all All ports in the system.
ingress Enables ingress sFlow on a per-port basis.
egress Enables egress sFlow on a per-port basis.
both Enables both ingress and egress sFlow on a per-port basis.

Default

Ingress.

Usage Guidelines

This command enables sFlow on a particular list of ports. Ingress, egress, or a combination of both types of sampling can be enabled on a port. You also need to enable sFlow globally in order to gather statistics and send the data to the collector. Once sFlow is enabled globally, and on the ports of interest, sampling and polling begins.

Use the following command to enable sFlow globally: enable sflow

Note

Note

On BlackDiamond 8000 c-, e-, xl-, and xm-series modules, and Summit family switches (whether or not included in a SummitStack), sFlow and mirroring are not mutually exclusive. You can enable sFlow and mirroring at the same time.

For more information about mirroring, see Configuring Slots and Ports on a Switch in the ExtremeXOS User Guide.

Example

The following command enables egress sFlow sampling on the port 3:1:

enable sflow ports 3:1 egress

History

This command was first available in ExtremeXOS 11.0.

The ingress, egress, and both keywords we added in ExtremeXOS 15.4.

Platform Availability

This command is available on all platforms.