Configuring telemetry streaming for MPLS traffic data

Complete the following steps to configure the device to perform telemetry streaming for the MPLS traffic statistics data.

  1. Configure the device.
    device# configure
  2. Configure the telemetry profile.
    device(config)# telemetry profile <profile-type> <telemetry-profile-name>
    Where <profile-type> can be mpls-traffic-lsp or mpls-traffic-bypass or mpls-traffic-fec. These profiles contain all the streaming attributes supported. You can customize these profiles by removing the attributes that are not required, setting intervals, or by selecting different interface ranges. The <telemetry-profile-name> can be default_mpls_traffic_lsp_statistics, default_mpls_traffic_bypass_statistics, or default_mpls_traffic_fec_statistics.
  3. For mpls-traffic-lsp type profiles, you must indicate which MPLS LSP is to be used for the profile by using the lsp command in the config-telemetry-profile mode.
    device(config-mpls-traffic-lsp-default_mpls_traffic_lsp_statistics)# lsp <lsp-name>
  4. For mpls-bypass-lsp type profiles, you must indicate which MPLS Bypass-LSP is to be used for the profile by using the bypass-lsp command in the config-telemetry-profile mode.
    device(config-mpls-traffic-bypass-default_mpls_traffic_bypass_statistics)# bypass-lsp <bypass-lsp-name>
  5. For mpls-traffic-fec type profiles, you must indicate which MPLS FEC address is to be used for the profile by using the fec command in the config-telemetry-profile mode.
    device(config-mpls-traffic-fec-default_mpls_traffic_fec_statistics)# fec <fec-address>
  6. Optionally, you can customize the profile when in the config-telemetry-profile mode. For example, you can add the out-packets or out-bytes field ID for the profile type.
    device(config-mpls-traffic-fec-default_mpls_traffic_fec_statistics)# add out-packets
  7. Optionally, you can customize the streaming interval for the profile when in the config-telemetry-profile mode. For example, you can set the interval from 240 seconds to 3600 seconds, with the multiples of 5, for the profile. The default value for interval value is 240 seconds.

    For example, you can set the interval to 325.

    device(config-mpls-traffic-fec-default_mpls_traffic_fec_statistics)# interval 325

The following example shows how to display the MPLS Traffic LSP Profile.

device# show running-config telemetry profile mpls-traffic-lsp default_mpls_traffic_lsp_statistics

telemetry profile mpls-traffic-lsp  default_mpls_traffic_lsp_statistics
interval 240
lsp lsp1
lsp lsp2
add out-packets
add out-bytes

The following example shows how to display the MPLS Traffic Bypass LSP Profile.

device# show running-config telemetry profile mpls-traffic-bypass default_mpls_traffic_bypass_statistics

telemetry profile mpls-traffic-bypass  default_mpls_traffic_bypass_statistics
interval 240
bypass-lsp byp1
bypass-lsp byp2
add out-packets
add out-bytes

The following example shows how to display the MPLS Traffic FEC Profile.

device# show running-config telemetry profile mpls-traffic-fec default_mpls_traffic_fec_statistics

telemetry profile mpls-traffic-fec  default_mpls_traffic_fec_statistics
interval 240
fec 10.20.30.1
fec 10.19.30.3
add out-packets
add out-bytes