Configuring counter sampling
Perform this task to configure counter sampling on an Ethernet interface. The sFlow agent performs the following tasks:
Periodically collects the counter information on that interface.
Encapsulates the counter information into sFlow packets.
Encapsulates the sFlow packets in the UDP packets and sends the UDP packets to the specified sFlow collector.
To configure counter sampling:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Layer 2 Ethernet interface view or Layer 3 Ethernet interface view. | interface interface-type interface-number | N/A |
3. Enable counter sampling and set the counter sampling interval. | sflow counter interval interval | By default, counter sampling is disabled. |
4. Specify the sFlow collector for counter sampling. | sflow counter collector collector-id | By default, no sFlow collector is specified for counter sampling. |