Configuring Flow Sampling

Flow sampling is based on data packets. An sFlow agent samples packets in a given direction on a specified interface based on a sampling rate. It then encapsulates the analysis result into sFlow packets and sends them to an sFlow collector.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run slot slot-id

    The slot view is displayed.

  3. Run sflow enable

    sFlow is enabled on the board in the slot.

  4. Run commit

    The configuration is committed.

  5. Run quit

    Return to the system view.

  6. Run interface interface-type interface-number

    The interface view is displayed.

  7. Run sflow flow-sampling collector collector-id [ secondary secondary-collector-id ] { inbound | outbound }

    Flow sampling is enabled on the interface, and an sFlow agent is configured to send flow sampling data to a specified collector.

  8. Run sflow flow-sampling rate rate { inbound | outbound }

    A sampling rate is configured for the interface.

  9. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >