sflow
Syntax
sflow
no sflow
Description
Enables the sFlow agent.
- In the
config
context, this command enables the sFlow agent globally on all interfaces. - In an
config-if
context, 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
no
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.Authority
Administrators or local user group members with execution rights for this command.
Examples
Enabling sFlow globally on all interfaces:
switch(config)# sflow
Disabling sFlow globally on all interfaces:
switch(config)# no sflow
Enabling sFlow on interface 1/1/1:
switch(config)# interface 1/1/1 switch(config-if)# sflow
Disabling sFlow on interface 1/1/1:
switch(config)# interface 1/1/1 switch(config-if)# no sflow
Enabling sFlow on interface lag100:
switch(config)# interface lag100 switch(config-if)# sflow
Disabling sFlow on interface lag100:
switch(config)# interface lag100 switch(config-if)# no sflow