Command Reference sFlow Commands
7.4 sflow counter collector
Use this command to enable the sFlow Agent to send counter samples to the sFlow Collector.
sflow counter collector collector-id
Use this command to disable the sFlow Agent to send counter samples to the sFlow Collector.
no sflow counter collector
Use this command to disable the sFlow Agent to send counter samples to the sFlow Collector.
default sflow counter collector
sFlow Collector ID. The range is from 1 to 2.
Interface configuration mode
This command can be used for physical ports, SVI ports and sub routed ports and aggregate ports.
sFlow datagrams can be output only when an IP address is configured for the corresponding sFlow
Collector.
The following example enables interface TenGigabitEthernet 0/5 to send counter samples to sFlow
Collector 2.
Ruijie(config-if-TenGigabitEthernet 0/5)# sflow counter collector 2
Use the show sflow command to display the sFlow counter sampling configuration.