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

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.

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 the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X590, X620, X690, X870 series switches.