Cisco IOS XR Multicast Command Reference, Release 3.6
Multicast PIM Commands on Cisco IOS XR Software

Table Of Contents

Multicast PIM Commands on Cisco IOS XR Software

accept-register

auto-rp candidate-rp

auto-rp listen disable

auto-rp mapping-agent

bsr-border

bsr candidate-bsr

bsr candidate-rp

clear pim autorp

clear pim bsr

clear pim counters

clear pim topology

dr-priority

embedded-rp

embedded-rp disable

hello-interval (PIM)

interface (PIM)

interface all disable

join-prune-interval

maximum autorp

maximum group-mappings

maximum register-states

maximum route-interfaces

maximum routes

neighbor-check-on-recv enable

neighbor-check-on-send enable

neighbor-filter

nsf lifetime (PIM)

old-register-checksum

router pim

rp-address

rp-static-deny

rpf-vector

show auto-rp candidate-rp

show auto-rp mapping-agent

show pim bgp-safi

show pim bsr candidate-rp

show pim bsr election

show pim bsr rp-cache

show pim context

show pim df election-state

show pim df winner

show pim group-map

show pim interface

show pim join-prune statistic

show pim mdt

show pim mstatic

show pim neighbor

show pim nsf

show pim range-list

show pim rpf

show pim rpf hash

show pim summary

show pim topology

show pim traffic

show pim tunnel info

spt-threshold infinity

ssm


Multicast PIM Commands on Cisco IOS XR Software


This chapter describes the commands used to configure and monitor Protocol Independent Multicast (PIM) on Cisco IOS XR software in Cisco IOS XR Multicast Configuration Guide.


Note For PIM-related commands, IPv4 is the default IP address family; however, many commands, including clear pim and show pim, include both an IPv4 and IPv6 prefix. To run commands related to IPv6, you must use the IPv6 prefix. You do not need to specify the IPv4 prefix to run IPv4-related commands.


For detailed information about multicast routing concepts, configuration tasks, and examples, refer to the Implementing Multicast Routing on Cisco IOS XR Software configuration module.

accept-register

To configure a rendezvous point (RP) router to filter Protocol Independent Multicast (PIM) register messages, use the accept-register command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

accept-register access-list-name

no accept-register

Syntax Description

access-list-name

Access list number or name.


Defaults

No default behavior or values

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

The accept-register command prevents unauthorized sources from registering with the rendezvous point. If an unauthorized source sends a register message to the rendezvous point, the rendezvous point immediately sends back a register-stop message.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to restrict the rendezvous point. Sources in the Source Specific Multicast (SSM) range of addresses are not allowed to register with the rendezvous point. These statements need to be configured only on the rendezvous point.

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# accept-register no-ssm-range
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# exit
RP/0/RP0/CPU0:router(config)# ipv4 access-list no-ssm-range
RP/0/RP0/CPU0:router(config-ipv4-acl)# deny ipv4 any 232.0.0.0 0.255.255.255
RP/0/RP0/CPU0:router(config-ipv4-acl)# permit any

auto-rp candidate-rp

To configure a router as a Protocol Independent Multicast (PIM) rendezvous point (RP) candidate that sends messages to the well-known CISCO-RP-ANNOUNCE multicast group (224.0.1.39), use the auto-rp candidate-rp command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

auto-rp candidate-rp type instance scope ttl-value [group-list access-list-name] [interval seconds] [bidir]

no auto-rp candidate-rp type instance scope ttl-value [group-list access-list-name] [interval seconds] [bidir]

Syntax Description

type

Interface type. For more information, use the question mark (?) online help function.

instance

Either a physical interface instance or a virtual interface instance as follows:

Physical interface instance. Naming notation is rack/slot/module/port and a slash between values is required as part of the notation.

rack: Chassis number of the rack.

slot: Physical slot number of the modular services card or line card.

module: Module number. A physical layer interface module (PLIM) is always 0.

port: Physical port number of the interface.

Note In references to a Management Ethernet interface located on a route processor card, the physical slot number is alphanumeric (RP0 or RP1) and the module is CPU0.
Example: interface MgmtEth0/RP1/CPU0/0.

Virtual interface instance. Number range varies depending on interface type.

For more information about the syntax for the router, use the question mark (?) online help function.

scope ttl-value

Specifies a time-to-live (TTL) value (in router hops) that limits the scope of the automatic route processing (Auto-RP) announce messages that are sent out of that interface. Range is 1 to 255.

group-list access-list-name

(Optional) Specifies an access list that describes the group ranges for which this router is the rendezvous point.

interval seconds

(Optional) Specifies the time between rendezvous point announcements. Range is 1 to 600.

bidir

(Optional) Specifies a bidirectional rendezvous point for PIM.


Defaults

A router is not configured as a PIM rendezvous point candidate.

seconds: 60

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

The auto-rp candidate-rp command is used by the rendezvous point for a multicast group range. The router sends an Auto-RP announcement message to the well-known group CISCO-RP-ANNOUNCE (224.0.1.39). This message announces the router as a candidate rendezvous point for the groups in the range described by the access list.

When the interval keyword is specified, the interval between Auto-RP announcements is set to number of seconds with the total hold time of the announcements automatically set to three times the interval time. The recommended interval time range is from 1 to 180 seconds.

The hold time of the Auto-RP announcement is the time for which the announcement is valid. After the designated hold time, the announcement expires and the entry is purged from the mapping cache until there is another announcement.

If the optional group-list keyword is omitted, the group range advertised is 224.0.0.0/4. This range corresponds to all IP multicast group addresses, which indicates that the router is willing to serve as the rendezvous point for all groups.

A router may be configured to serve as a candidate rendezvous point for more than one group range by a carefully crafted access list in the router configuration.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to send rendezvous point announcements out all PIM-enabled interfaces for a maximum of 31 hops. The IP address by which the router wants to be identified as a rendezvous point is the IP address associated with Packet-over-SONET/SDH (POS) interface 0/1/0/1. Access list 5 designates the groups that this router serves as the rendezvous point.

RP/0/RP0/CPU0:router(config)# ipv4 access-list 5 
RP/0/RP0/CPU0:router(config-ipv4-acl)# permit ipv4 any 224.0.0.0 15.255.255.255
RP/0/RP0/CPU0:router(config-ipv4-acl)# exit
RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# auto-rp candidate-rp pos 0/1/0/1 scope 31 
group-list 5
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# end

The router identified in the following example advertises itself as the candidate rendezvous point and is associated with loopback interface 0 for the group ranges 239.254.0.0 to 239.255.255.255 and 224.0.0.0 to 231.255.255.255:

RP/0/RP0/CPU0:router(config)# ipv4 access-list 10 
RP/0/RP0/CPU0:router(config-ipv4-acl)# permit ipv4 any 239.254.0.0 0.0.255.255
RP/0/RP0/CPU0:router(config-ipv4-acl)# exit
RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# auto-rp candidate-rp loopback 0 scope 16 
group-list 10
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# end

Related Commands

Command
Description

auto-rp mapping-agent

Configures the router to be a rendezvous point mapping agent on a specified interface.


auto-rp listen disable

To prevent a Protocol Independent Multicast (PIM) process from learning about IP multicast traffic for the automatic route processing (Auto-RP) group 224.0.1.40 that is flooded across interfaces, use the auto-rp listen disable command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

auto-rp listen disable

no auto-rp listen disable

Syntax Description

This command has no arguments or keywords.

Defaults

PIM rendezvous point mappings are learned through Auto-RP.

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to disable rendezvous point discovery:

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# auto-rp listen disable

auto-rp mapping-agent

To configure the router to be a rendezvous point (RP) mapping agent on a specified interface, use the auto-rp mapping-agent command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

auto-rp mapping-agent type instance scope ttl-value [interval seconds]

no auto-rp mapping-agent

Syntax Description

type

Interface type. For more information, use the question mark (?) online help function.

instance

Either a physical interface instance or a virtual interface instance as follows:

Physical interface instance. Naming notation is rack/slot/module/port and a slash between values is required as part of the notation.

rack: Chassis number of the rack.

slot: Physical slot number of the modular services card or line card.

module: Module number. A physical layer interface module (PLIM) is always 0.

port: Physical port number of the interface.

Note In references to a Management Ethernet interface located on a route processor card, the physical slot number is alphanumeric (RP0 or RP1) and the module is CPU0.
Example: interface MgmtEth0/RP1/CPU0/0.

Virtual interface instance. Number range varies depending on interface type.

For more information about the syntax for the router, use the question mark (?) online help function.

scope ttl-value

Specifies time-to-live (TTL) value (in router hops) that limits the scope of the rendezvous point discovery messages that are sent from that interface. Range is 1 to 255.

interval seconds

(Optional) Specifies the time (in seconds) between discovery messages. Range is 1 to 600.


Defaults

A router is not configured as a Protocol Independent Multicast (PIM) rendezvous point mapping agent.

seconds: 60

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

After the router is configured as a rendezvous point mapping agent and determines the rendezvous point-to-group mappings through the CISCO-RP-ANNOUNCE (224.0.1.39) group, the router sends the mappings in an automatic route processing (Auto-RP) discovery message to the well-known group CISCO-RP-DISCOVERY (224.0.1.40). A PIM designated router (DR) listens to this well-known group to determine which rendezvous point to use.

More than one rendezvous point mapping agent can be configured in a network sending redundant information, for a slight increase in reliability.

The TTL value is used to limit the range, or scope, of a multicast transmission. Therefore, use this value only on border routers.

The mapping packets are always sourced out of the default interface but have the source IP address as the address of the type and instance arguments. Packets have a TTL of 1 to 255 and are sent out each configured interval (when not specified, the default is 60 seconds).

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to limit Auto-RP discovery messages to 20 hops:

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# auto-rp mapping-agent pos 0/0/0/1 scope 20

Related Commands

Command
Description

auto-rp candidate-rp

Configures a router as a PIM rendezvous point candidate that sends messages to the well-known CISCO-RP-ANNOUNCE multicast group (224.0.1.39).


bsr-border

To stop the forwarding of bootstrap router (BSR) messages on a Protocol Independent Multicast (PIM) router interface, use the bsr-border command in router PIM interface configuration mode. To return to the default behavior, use the no form of this command.

bsr-border

no bsr-border

Syntax Description

This command has no arguments or keywords.

Defaults

BSR messages are forwarded on the PIM router interface.

Command Modes

Router PIM interface configuration

Command History

Release
Modification

Release 3.2

This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

When you configure the bsr-border command, no PIM Version 2 BSR messages are sent or received through the interface. You should configure an interface bordering another PIM domain with this command to avoid BSR messages from being exchanged between the two domains. BSR messages should not be exchanged between different domains, because routers in one domain may elect rendezvous points (RPs) in the other domain, resulting in protocol malfunction or loss of isolation between the domains.


Note This command is used for the purpose of setting up a PIM domain BSR message border, and not for multicast boundaries.


Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to configure the Packet-over-SONET/SDH (POS) 0/1/0/0 interface to be the PIM domain border:

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# interface pos 0/1/0/0
RP/0/RP0/CPU0:router(config-pim-ipv4-if)# bsr-border

bsr candidate-bsr

To configure the router to announce its candidacy as a bootstrap router (BSR), use the bsr candidate-bsr command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

bsr candidate-bsr ip-address [hash-mask-len length] [priority value]

no bsr candidate-bsr

Syntax Description

ip-address

IP address of the BSR router for the domain. For IPv4, this is an IP address in four-part dotted-decimal notation. For IPv6, the IP address is specified in hexadecimal format using 16-bit values between colons.

hash-mask-len length

(Optional) Specifies the length of a mask that is to be used in the hash function.

All groups with the same seed hash (correspond) to the same rendezvous point (RP). For example, if this value is 24, only the first 24 bits of the group addresses matter. This fact allows you to get one RP for multiple groups.

For IPv4 addresses, a value of 30 is recommended. The range is 0 to 32.

For IPv6 addresses, a value of 126 is recommended. The range is 0 to 128.

priority value

(Optional) Specifies the priority of the candidate BSR. Range is 1 to 255. The BSR with the higher priority is recommended. If the priority values are the same, the router with the higher IP address is the BSR.


Defaults

value: 1

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 3.2

This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

The bsr candidate-bsr command causes the router to send bootstrap messages to all its Protocol Independent Multicast (PIM) neighbors, with the address of the designated interface as the BSR address. Each neighbor compares the BSR address with the address it had from previous bootstrap messages (not necessarily received on the same interface). If the current address is the same or higher address, the PIM neighbor caches the current address and forwards the bootstrap message. Otherwise, the bootstrap message is dropped.

This router continues to be the BSR until it receives a bootstrap message from another candidate BSR saying that it has a higher priority (or if the same priority, a higher IP address).


Note Use the bsr candidate-bsr command only in backbone routers with good connectivity to all parts of the PIM domain. A subrouter that relies on an on-demand dial-up link to connect to the rest of the PIM domain is not a good candidate BSR.


Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to configure the router as a candidate BSR with a hash mask length of 30:

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# bsr candidate-bsr 10.0.0.1 hash-mask-len 30

Related Commands

Command
Description

clear pim bsr

Clears BSR entries from the PIM rendezvous point group mapping cache.

show pim bsr candidate-rp

Displays PIM candidate rendezvous point information for the BSR.

show pim bsr election

Displays PIM candidate election information for the BSR.

show pim bsr rp-cache

Displays PIM rendezvous point cache information for the BSR.


bsr candidate-rp

To configure the router to advertise itself as a Protocol Independent Multicast (PIM) Version 2 candidate rendezvous point (RP) to the bootstrap router (BSR), use the bsr candidate-rp command in router PIM configuration mode. To return to the default behavior, use the no form of this command.

bsr candidate-rp ip-address [group-list access-list] [interval seconds] [priority value]

no bsr candidate-rp ip-address

Syntax Description

ip-address

IP address of the router that is advertised as a candidate rendezvous point address.

group-list access-list

(Optional) Specifies the IP access list number or name that defines the group prefixes that are advertised in association with the rendezvous point address. The access list name cannot contain a space or quotation mark, and must begin with an alphabetic character to avoid confusion with numbered access lists.

interval seconds

(Optional) Specifies the candidate rendezvous point advertisement interval in seconds. Range is 30 to 600.

priority value

(Optional) Indicates the rendezvous point priority value. Range is 1 to 255.


Defaults

priority: 1

Command Modes

Router PIM configuration

Command History

Release
Modification

Release 3.2

This command was introduced on the Cisco CRS-1 and
Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

No modification.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

The bsr candidate-rp command causes the router to send a PIM Version 2 message advertising itself as a candidate rendezvous point to the BSR. The addresses allowed by the access list, together with the router identified by the IP address, constitute the rendezvous point and its range of addresses for which it is responsible.


Note Use the bsr candidate-rp command only in backbone routers that have good connectivity to all parts of the PIM domain. That is, a stub router that relies on an on-demand dial-up link to connect to the rest of the PIM domain is not a good candidate rendezvous point.


Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows how to configure the router to advertise itself as a candidate rendezvous point to the BSR in its PIM domain. Access list number 4 specifies the group prefix associated with the candidate rendezvous point address 172.16.0.0. This rendezvous point is responsible for the groups with the prefix 239.

RP/0/RP0/CPU0:router(config)# router pim
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# bsr candidate-rp 172.16.0.0 group-list 4
RP/0/RP0/CPU0:router(config-pim-default-ipv4)# exit
RP/0/RP0/CPU0:router(config)# ipv4 access-list 4
RP/0/RP0/CPU0:router(config-ipv4-acl)# permit ipv4 any 239.0.0.0 0.255.255.255
RP/0/RP0/CPU0:router(config-ipv4-acl)# end

Related Commands

Command
Description

bsr candidate-bsr

Configures the router to announce its candidacy as a BSR.

bsr candidate-rp

Configures the router to advertise itself as a PIM Version 2 candidate rendezvous point to the BSR.


clear pim autorp

To clear automatic route processing (Auto-RP) entries from the Protocol Independent Multicast (PIM) rendezvous point (RP) group mapping cache, use the clear pim autorp command in EXEC mode.

clear pim [vrf vrf-name] [ipv4] autorp [rp-address]

Syntax Description

vrf vrf-name

(Optional) Specifies a VPN routing and forwarding (VRF) instance.

ipv4

(Optional) Specifies IPv4 address prefixes.

rp-address

(Optional) Hostname or IP address of the rendezvous point.


Defaults

No default behavior or values

Command Modes

EXEC

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

No modification.

Release 3.5.0

The vrf vrf-name keyword and argument were added.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows sample output before and after Auto-RP entries have been cleared from the PIM rendezvous point group mapping cache:

RP/0/RP0/CPU0:router# show pim group-map

IP PIM Group Mapping Table 
(* indicates group mappings being used)
(+ indicates BSR group mappings active in MRIB) 



Group Range     Proto  Client    Groups     RP address Info

224.0.1.39/32*  DM     static    1          0.0.0.0 
224.0.1.40/32*  DM     static    1          0.0.0.0 
224.0.0.0/24*   NO     static    0          0.0.0.0 
232.0.0.0/8*    SSM    config    0          0.0.0.0 
224.0.0.0/4*    SM     autorp    0          10.1.1.1   RPF: De0,10.1.1.1 (us) 
224.0.0.0/4     SM     static    0          0.0.0.0    RPF: Null,0.0.0.0

RP/0/RP0/CPU0:router# clear pim autorp 232.0.0.0/8

RP/0/RP0/CPU0:router# show pim group-map

IP PIM Group Mapping Table 
(* indicates group mappings being used)
(+ indicates BSR group mappings active in MRIB)

Group Range     Proto  Client    Groups     RP address Info

224.0.1.39/32*  DM     static    1          0.0.0.0 
224.0.1.40/32*  DM     static    1          0.0.0.0 
224.0.0.0/24*   NO     static    0          0.0.0.0 
224.0.0.0/4*    SM     static    0          0.0.0.0    RPF: Null,0.0.0.0

clear pim bsr

To clear bootstrap router (BSR) entries from the Protocol Independent Multicast (PIM) rendezvous point (RP) group mapping cache, use the clear pim bsr command in EXEC mode.

clear pim [vrf vrf-name] [ipv4 | ipv6] bsr

Syntax Description

vrf vrf-name

(Optional) Specifies a VPN routing and forwarding (VRF) instance.

ipv4

(Optional) Specifies IPv4 address prefixes.

ipv6

(Optional) Specifies IPv6 address prefixes.


Defaults

No default behavior or values

Command Modes

EXEC

Command History

Release
Modification

Release 3.2

This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

The ipv4 and ipv6 keywords were added.

Release 3.5.0

The vrf vrf-name keyword and argument were added.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows sample output before and after the BSR group mappings have been cleared from the rendezvous point group mapping cache:

RP/0/RP0/CPU0:router# show pim group-map

IP PIM Group Mapping Table
(* indicates group mappings being used)
(+ indicates BSR group mappings active in MRIB)

Group Range         Proto Client Groups RP address      Info

224.0.1.39/32*      DM    static 0      0.0.0.0
224.0.1.40/32*      DM    static 1      0.0.0.0
224.0.0.0/24*       NO    static 0      0.0.0.0
232.0.0.0/8*        SSM   config 0      0.0.0.0
224.0.0.0/4*        SM    bsr+   1      91.1.1.1        RPF: De0,91.1.1.1 (us)
224.0.0.0/4         SM    static 0      0.0.0.0         RPF: Null,0.0.0.

RP/0/RP0/CPU0:router# clear pim bsr 

RP/0/RP0/CPU0:router# show pim group-map

IP PIM Group Mapping Table
(* indicates group mappings being used)
(+ indicates BSR group mappings active in MRIB)

Group Range         Proto Client Groups RP address      Info

224.0.1.39/32*      DM    static 0      0.0.0.0
224.0.1.40/32*      DM    static 1      0.0.0.0
224.0.0.0/24*       NO    static 0      0.0.0.0
232.0.0.0/8*        SSM   config 0      0.0.0.0
224.0.0.0/4*        SM    static 1      0.0.0.0         RPF: Null,0.0.0.0

Related Commands

Command
Description

show pim group-map

Displays group-to-PIM mode mapping.


clear pim counters

To clear Protocol Independent Multicast (PIM) counters and statistics, use the clear pim counters command in EXEC mode.

clear pim [vrf vrf-name] [ipv4 | ipv6] counters

Syntax Description

vrf vrf-name

(Optional) Specifies a VPN routing and forwarding (VRF) instance.

ipv4

(Optional) Specifies IPv4 address prefixes.

ipv6

(Optional) Specifies IPv6 address prefixes.


Defaults

No default behavior or values

Command Modes

EXEC

Command History

Release
Modification

Release 2.0

This command was introduced on the Cisco CRS-1.

Release 3.0

No modification.

Release 3.2

This command was supported on the Cisco XR 12000 Series Router.

Release 3.3.0

No modification.

Release 3.4.0

The ipv4 and ipv6 keywords were added.

Release 3.5.0

The vrf vrf-name keyword and argument were added.

Release 3.6.0

No modification.


Usage Guidelines

To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.

Task ID
Task ID
Operations

multicast

read, write


Examples

The following example shows sample output before and after clearing PIM counters and statistics:

RP/0/RP0/CPU0:router# show pim traffic

PIM Traffic Counters 
Elapsed time since counters cleared: 00:53:34

                                          Received   Sent 
Valid PIM Packets                                0   97 
Hello                                            0   420 
Join-Prune                                       0   0 
Data Register                                    0   0 
Null Register                                    0   0
Register Stop                                    0   0 
Assert                                           0   0 
Batched Assert                                   0   0
Bidir DF Election                                0   0
BSR Message                                      0   0
Candidate-RP Adv.                                0   0

Join groups sent                                     0
Prune groups sent                                    0
Output JP bytes                                      0
Output hello bytes                            10326804

Errors: 
Malformed Packets                                    0
Bad Checksums                                        0
Socket Errors                                        0
Subnet Errors                                        0
Packets dropped since send queue was full            0
Packets dropped due to invalid socket                0
Packets which couldn't be accessed                   0
Packets sent on Loopback Errors                  15098
Packets received on PIM-disabled Interface           0
Packets received with Unknown PIM Version            0

RP/0/RP0/CPU0:router# clear pim counters

RP/0/RP0/CPU0:router# show pim traffic

PIM Traffic Counters 
Elapsed time since counters cleared: 00:00:04

                                          Received   Sent 
Valid PIM Packets                                0   0 
Hello                                            0   0 
Join-Prune                                       0   0 
Data Register                                    0   0 
Null Register                                    0   0
Register Stop                                    0   0 
Assert                                           0   0 
Batched Assert                                   0   0
Bidir DF Election                                0   0
BSR Message                                      0   0
Candidate-RP Adv.                                0   0

Join groups sent                                     0
Prune groups sent                                    0
Output JP bytes                                      0
Output hello bytes                                   0

Errors: 
Malformed Packets                                    0
Bad Checksums                                        0
Socket Errors                                        0
Subnet Errors                                        0
Packets dropped since send queue was full            0
Packets dropped due to invalid socket                0
Packets which couldn't be accessed                   0
Packets sent on Loopback Errors                      0
Packets received on PIM-disabled Interface           0
Packets received with Unknown PIM Version            0

Related Commands

Command
Description

show pim traffic

Displays PIM traffic counter information.