Flexible Netflow Configuration Guide, Cisco IOS Release 15SY
Configuring CPU Friendly NetFlow Export
Downloads: This chapterpdf (PDF - 116.0KB) The complete bookPDF (PDF - 1.34MB) | Feedback

Configuring CPU Friendly NetFlow Export

Configuring CPU Friendly NetFlow Export

Last Updated: October 12, 2012

The CPU Friendly NetFlow Export feature for Cisco IOS Flexible NetFlow provides the capability for the software NetFlow modules to adjust their Central Processing Unit (CPU) utilization based on user-configured CPU utlization thresholds for the supervisor and line cards. NetFlow will lower its CPU consumption when utilization exceeds the configured threshold, and vice versa.

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

Prerequisites for CPU Friendly NetFlow Export

  • The networking device must be running a Cisco release that supports Flexible NetFlow.

IPv4 Traffic

  • The networking device must be configured for IPv4 routing.
  • One of the following must be enabled on your router and on any interfaces on which you want to enable Flexible NetFlow: Cisco Express Forwarding or distributed Cisco Express Forwarding.

IPv6 Traffic

  • The networking device must be configured for IPv6 routing.
  • One of the following must be enabled on your router and on any interfaces on which you want to enable Flexible NetFlow: Cisco Express Forwarding IPv6 or distributed Cisco Express Forwarding IPv6.

Information About CPU Friendly NetFlow Export

Overview of CPU Friendly NetFlow Export

The number and complexity of flow records to be exported is the prime cause of CPU use in NetFlow. The CPU Friendly NetFlow Export feature (also known as Yielding NetFlow Data Export, or Yielding NDE) monitors CPU use for both the supervisor and line cards according to user-configured thresholds and dynamically adjusts the rate of export as needed.

How to Configure CPU Friendly NetFlow Export

Configuring the CPU Utilization Threshold

To configure the CPU utilization threshold, the threshold above which NetFlow decreases its CPU consumption, perform the following required task.

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    flow hardware [egress | export threshold total-cpu-threshold-percentage [ linecard linecard-threshold-percentage ] | usage notify{input | output} [table-threshold-percentage seconds]]

4.    end

5.    show platform flow [aging | {export | usage | table-contention {aggregate | detailed | summary} }[instance | module] | {ip | ipv6} [ count | destination | instance | module | multicast | protocol | source] | {layer2 | mpls } [ count | instance | module ]]


DETAILED STEPS
  Command or Action Purpose
Step 1
enable


Example:

Device> enable

 

Enables privileged EXEC mode.

  • Enter your password if prompted.
 
Step 2
configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 
Step 3
flow hardware [egress | export threshold total-cpu-threshold-percentage [ linecard linecard-threshold-percentage ] | usage notify{input | output} [table-threshold-percentage seconds]]


Example:

Device(config)# flow hardware export threshold 25 linecard 25

 

Configures the CPU utilization threshold up to which NetFlow export is permitted.

 
Step 4
end


Example:

Device(config)# end

 

Ends the current configuration session and returns to privileged EXEC mode.

 
Step 5
show platform flow [aging | {export | usage | table-contention {aggregate | detailed | summary} }[instance | module] | {ip | ipv6} [ count | destination | instance | module | multicast | protocol | source] | {layer2 | mpls } [ count | instance | module ]]


Example:

Device# show platform flow export

 

Verifies the configuration of the CPU utilization threshold.

 

Configuration Examples for CPU Friendly NetFlow Export

Example: Configuring CPU Utilization Thresholds for NetFlow Export

The following example shows how to configure CPU utilization thresholds for NetFlow export.

This sample starts in global configuration mode.

!
flow hardware export threshold 25
flow hardware export threshold 25 linecard 25
end
! 

Additional References

Related Documents

Related Topic

Document Title

Cisco IOS commands

Cisco IOS Master Commands List, All Releases

Flexible NetFlow conceptual and configuration information

Flexible NetFlow Configuration Guide

Configuration commands for Flexible NetFlow

Cisco IOS Flexible NetFlow Command Reference

Standards/RFCs

Standard

Title

No new or modified standards/RFCs are supported by this feature.

--

MIBs

MIB

MIBs Link

None

To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL:

http://www.cisco.com/go/mibs

Technical Assistance

Description

Link

The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

http://www.cisco.com/cisco/web/support/index.html

Feature Information for CPU Friendly NetFlow Export

GUID-99360C0D-E056-42C8-B66C-4FA2E2463DCAF lists the release history for this feature.

Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn . An account on Cisco.com is not required.


Note


GUID-99360C0D-E056-42C8-B66C-4FA2E2463DCAF lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Table 1 Feature Information for CPU Friendly NetFlow Export

Feature Name

Releases

Feature Information

CPU Friendly NetFlow Export

12.2(50)SY

15.0(1)SY

15.0(1)SY1

The CPU Friendly NetFlow Export feature provides the capability for the software NetFlow modules to adjust their Central Processing Unit (CPU) utilization based on user configured CPU thresholds for the supervisor and line cards, so that when the total CPU utilization is above the configured threshold, NetFlow decreases its CPU consumption, and vice versa.

Information about the CPU Friendly NetFlow Export feature is included in the following sections:

The following commands were introduced or modified: flow hardware, show platform flow.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.

© 2012 Cisco Systems, Inc. All rights reserved.