No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring NetStream Statistics Collection

Configuring NetStream Statistics Collection

Context

When configuring flexible NetStream, you must enable flow statistics collection and apply a flexible flow statistics template on an interface to ensure that statistics are exported successfully.

If you configure interface-based flow statistics collection and traffic policy-based flow statistics collection simultaneously on one direction of the same interface, one packet is collected only once.

Procedure

  • Configuring interface-based flow statistics collection
    1. Run system-view

      The system view is displayed.

    2. (Optional) Run ip netstream pre-classify enable

      The pre-classify function is enabled globally.

      By default, the pre-classify function is disabled globally.

    3. Run interface interface-type interface-number [.subinterface-number ]

      The interface view is displayed.

    4. Run port ip netstream record record-name

      The flexible flow statistics template is applied to the interface.

      NOTE:
      • Each interface can be configured with only one flexible flow statistics template. Before modifying the flexible flow statistics template in the same interface view, run the undo port ip netstream record command to delete the existing configuration.

      • If the flexible flow statistics template has been applied to the interface, the template configuration cannot be modified or deleted.

    5. Run ip netstream { inbound | outbound }

      The NetStream function is enabled on the interface to collect flow statistics.

      By default, flow statistics collection function is disabled on an interface.

  • Configuring traffic policy-based flow statistics collection
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number [.subinterface-number ]

      The interface view is displayed.

    3. Run port ip netstream record record-name

      The flexible flow statistics template is applied to the interface.

      NOTE:
      • Each interface can be configured with only one flexible flow statistics template. Before modifying the flexible flow statistics template in the same interface view, run the undo port ip netstream record command to delete the existing configuration.

      • If the flexible flow statistics template has been applied to the interface, the template configuration cannot be modified or deleted.

    4. Apply the traffic policy to an interface. You can apply one or more types of traffic policy to one direction of an interface.
      • Run traffic-policy policy-name { inbound | outbound }

        A common traffic policy is applied to the outbound or inbound direction on the interface.

        By default, no common traffic policy is applied to an interface.

      • Run traffic-policy policy-name { inbound | outbound } preprocess

        A preprocessing traffic policy is applied to the outbound or inbound direction of the interface.

        By default, no preprocessing traffic policy is applied to an interface.

      • Run traffic-policy policy-name { inbound | outbound } firstprocess

        A preferential processing traffic policy is applied to the outbound or inbound direction of the interface.

        By default, no preferential processing traffic policy is applied to an interface.

    Before applying a traffic policy to an interface, configure one according to Configuring NetStream Sampling.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 30326

Downloads: 177

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next