accounting per-prefix
To enable accounting for multicast routing, use the accounting per-prefix command in the appropriate configuration mode. To return to the default behavior, use the no form of this command.
accounting per-prefix
no accounting per-prefix
Syntax Description
This command has no keywords or arguments.
Command Default
This feature is disabled by default.
Command Modes
Multicast routing configuration
Multicast routing address family IPv4 configuration
Multicast VRF configuration
Command History
|
Release |
Modification |
|---|---|
|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
The accounting per-prefix command is used to enable per-prefix counters only in hardware. Cisco IOS XR Software counters are always present. When enabled, IPv4 (S,G) routes with a /32 prefix and IPv6 (S,G) routes with a /128 prefix are assigned a single forwarding counter.
There are a limited number of counters on all nodes. When a command is enabled, counters are assigned to routes only if they are available.
To display packet statistics, use the show mfib route statistics location command. These commands display N/A for hardware forwarding counts when there are no hardware statistics available or when the accounting per-prefix command is disabled.
To view MFIB accounting and per-route rates, configure both rate-per-route and accounting per-prefix under multicast-routing address-family.
To enable statistics for routes in a VRF, configure rate-per-route and accounting per-prefix under the corresponding multicast-routing VRF address family.
If there are limited number of counters available and you want to enable counters on particular prefixes for troubleshooting purposes, you can configure hw-module route-stats to enable accounting for multicast routing for a limited number of routes.
For more information, see the hw-module route-stats command to configure a filter to choose which (S.G) routes will have statistics enabled.
Task ID
|
Task ID |
Operations |
|---|---|
|
multicast |
read, write |
Examples
The following example shows how to enable accounting for multicast routing:
Router(config)# multicast-routing
Router(config-mcast)# address-family ipv4
Router(config-mcast-default-ipv4)# rate-per-route
Router(config-mcast-default-ipv4)# accounting per-prefix
Feedback