sflow

Syntax

sflow no sflow

描述

Enables the sFlow agent.

  • In theconfigcontext, this command enables the sFlow agent globally on all interfaces.
  • In anconfig-ifcontext, this command enables the sFlow agent on a specific interface. sFlow cannot be enabled on a member of a LAG, only on the LAG.

The sFlow agent is disabled by default.

The没有form of this command disables the sFlow agent and deletes all sFlow configuration settings, either globally, or for a specific interface.

Command context

config

config-if

Parameters

None.

权威

Administrators or local user group members with execution rights for this command.

Examples

On the 6400 Switch Series, interface identification differs.

Enabling sFlow globally on all interfaces:

switch(config)#sflow

禁用sFlowglobally on all interfaces:

switch(config)#没有sflow

Enabling sFlow on interface1/1/1:

switch(config)#interface 1/1/1switch(config-if)#sflow

禁用sFlowon interface1/1/1:

switch(config)#interface 1/1/1switch(config-if)#没有sflow

Enabling sFlow on interfacelag100:

switch(config)#interface lag100switch(config-if)#sflow

禁用sFlowon interfacelag100:

switch(config)#interface lag100switch(config-if)#没有sflow