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, (S,G) routes are assigned a single forwarding counter. (*,G) routes will not be assigned a 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
command. These commands display N/A
for counters when there are no hardware statistics available or when the
accounting per-prefix
command is disabled.
Multicast route statistics is not supported.
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)# accounting per-prefix