NetFlow and sFlow Configuration Guide on Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

NetFlow and sFlow Configuration Guide on Cisco 8000 Series Routers, Cisco IOS XR Releases

Configure YANG data models for NetFlow and sFlow

Get quick access to YANG data models that you can use to configure NetFlow and sFlow protocols for traffic monitoring.


Use YANG data models to configure and retrieve the operational status of NetFlow and sFlow on Cisco 8000 and Cisco ASR 9000 Series Routers.

  • Enable programmatic management of NetFlow and sFlow features.

  • Support both CLI and YANG-based configuration methods.

YANG data models provide a programmatic interface for configuring and monitoring NetFlow and sFlow features on Cisco 8000 and Cisco ASR 9000 Series Routers.

Cisco IOS XR supports both traditional CLI and YANG-based configuration for NetFlow and sFlow. Refer to the official documentation for guidance on accessing and using these models.

  • Consult Cisco IOS XR documentation for supported YANG models and operational guidance.

Before you begin

Ensure you have access to Cisco 8000 or Cisco ASR 9000 Series Routers running IOS XR with NetFlow and sFlow features enabled.

  • Verify that you have administrative privileges to configure YANG data models.

Follow these steps to configure YANG data models for NetFlow and sFlow.

Procedure

Access the router using a supported management interface (CLI or NETCONF).

Example:

Refer to the Cisco IOS XR documentation for NETCONF/YANG access commands and configuration examples.

YANG data models allow you to configure NetFlow and sFlow programmatically, providing flexibility and automation for network management.

  • Use YANG models to retrieve operational status and statistics for NetFlow and sFlow.

If...

Then...

You use CLI for configuration

Configure NetFlow and sFlow using traditional CLI commands.

You use YANG data models

Configure NetFlow and sFlow programmatically using NETCONF/YANG.

You need operational status

Retrieve status and statistics using YANG operational data.

NetFlow and sFlow are configured and operational status can be retrieved using the selected method.

NetFlow and sFlow are successfully managed using YANG data models or CLI, enabling programmatic configuration and monitoring on Cisco 8000 and Cisco ASR 9000 Series Routers.

What to do next

Verify the configuration and monitor NetFlow and sFlow operational status using YANG or CLI as needed.

  • Review logs and statistics to ensure proper operation.