C Commands

This chapter describes the Cisco NX-OS multicast routing commands that begin with C.

clear ip igmp event-history

command.

}

 
Syntax Description

Clears the CLI event history buffer.

Clears the debug event history buffer.

Clears the event history buffer.

Clears the HA event history buffer.

Clears the IGMP internal event history buffer.

msgs

Clears the messages event history buffer.

Clears the mtrace event history buffer.

Clears the policy event history buffer.

statistics

Clears the statistics event history buffer.

Clears the VRF event history buffer.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the IGMP HA event history buffer:

switch(config)# clear ip igmp event-history ha
switch(config)#
 
 

 
Related Commands

Command
Description

Configures the size of the IGMP event history buffers.

clear ip igmp groups

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear all the IGMP-related routes in the IPv4 multicast routing table:

switch(config)# clear ip igmp groups *
switch(config)#
 
 
 

 
Related Commands

Command
Description

Clears IGMP-related information in the IPv4 multicast routing table.

Displays information about the IPv4 multicast routing table.

clear ip igmp interface statistics

command.

]

 
Syntax Description

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

(Optional) Interface or subinterface number. For more information about the numbering syntax for your networking device, use the question mark (?) online help function.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(3)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear IGMP statistics for an interface:

switch# clear ip igmp interface statistics ethernet 2/1
switch#

 
Related Commands

Command
Description

Displays information about IGMP interfaces.

clear ip igmp route

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear all the IGMP-related routes in the IPv4 multicast routing table:

switch(config)# clear ip igmp route *
switch(config)#
 

 
Related Commands

Command
Description

Clears IGMP-related information in the IPv4 multicast routing table.

Displays information about the IPv4 multicast routing table.

clear ip igmp snooping event-history

command.

}

 
Syntax Description

Clears the virtual port channel (vPC) event history buffer.

Clears the IGMP snooping internal event history buffer.

Clears the multicast FIB distribution (MFDM) event history buffer.

Clears the MFDM sum event history buffer.

Clears the VLAN event history buffer.

Clears the VLAN-events event history buffer.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the IGMP snooping VLAN event history buffer:

switch(config)# clear ip igmp event-history vlan
switch(config)#

 
Related Commands

Command
Description

Configures the size of the IGMP snooping event history buffers.

clear ip igmp snooping statistics vlan

command.

}

 
Syntax Description

VLAN number. The range is from 1 to 3967 and 4048 to 4093.

Applies to all VLANs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

4.0(3)

keyword was added.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear IGMP snooping statistics for VLAN 1:

switch# clear ip igmp snooping statistics vlan 1
switch#

 
Related Commands

Command
Description

Displays IGMP snooping statistics by VLAN.

clear ip mroute

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Displays information for all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(3)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear the multicast routing table:

switch(config)# clear ip mroute *
switch(config)#

 
Related Commands

Command
Description

Clears the multicast routing table

Displays information about the multicast routing table.

clear ip msdp event-history

command.

 
Syntax Description

This command has no arguments or keywords.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the MSDP event history buffers:

switch(config)# clear ip msdp event-history
switch(config)#

 
Related Commands

Command
Description

Configures the size of the MSDP event history buffers.

Displays information in the MSDP event history buffers.

clear ip msdp peer

command.

]

 
Syntax Description

IP address of MSDP peer.

(Optional) Applies to a virtual routing and forwarding (VRF) instance name.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear a TCP connection to an MSDP peer:

switch# clear ip msdp peer 192.168.1.10
switch#

 
Related Commands

Command
Description

Displays information about MSDP peers.

clear ip msdp policy statistics sa-policy

command.

]

 
Syntax Description

IP address of the MSDP peer for the SA policy.

Specifies the input policy.

Specifies the output policy.

(Optional) Applies to a virtual routing and forwarding (VRF) instance name.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear an SA policy for an MSDP peer:

switch# clear ip msdp policy statistics sa-policy
switch#

 
Related Commands

Command
Description

Displays information about MSDP peers.

clear ip msdp route

command.

}]

 
Syntax Description

(Optional) All sources for group from the SA-cache.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Applies to all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

4.0(3)

This command was removed.

 
Usage Guidelines

command for the same function.

This command requires the Enterprise Services license.


Note Effective with Cisco NX-OS Release 4.0(3), the clear ip msdp route command is not available in Cisco NX-OS software.

Examples

This example shows how to clear the MSDP SA cache:

switch# clear ip msdp route
switch#
 
 

 
Related Commands

Command
Description

Clears the MSDP SA cache.

clear ip msdp sa-cache

command.

}]

 
Syntax Description

(Optional) All sources for group from the SA-cache.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Applies to all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

4.0(3)

This command was removed.

 
Usage Guidelines

command for the same function.

This command requires the Enterprise Services license.


Note Effective with Cisco NX-OS Release 4.0(3), the clear ip msdp route command is not available in Cisco NX-OS software.

Examples

This example shows how to clear the MSDP SA cache:

switch# clear ip msdp sa-cache
switch#

 
Related Commands

Command
Description

Clears the MSDP SA cache.

Displays route information in the MSDP Source-Active cache.

clear ip msdp statistics

command.

]

 
Syntax Description

(Optional) IP address of the MSDP peer.

(Optional) Applies to a virtual routing and forwarding (VRF) instance name.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear MSDP statistics for all MSDP peers:

switch# clear ip msdp statistics
switch#
 

 
Related Commands

Command
Description

Displays information about MSDP peers.

clear ip pim event-history

command.

 
Syntax Description

This command has no arguments or keywords.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the PIM event history buffers:

switch(config)# clear ip pim event-history
switch(config)#
 

 
Related Commands

Command
Description

Configures the size of the PIM event history buffers.

Displays information in the PIM event history buffers.

clear ip pim interface statistics

command.

]

 
Syntax Description

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

(Optional) Interface or subinterface number. For more information about the numbering syntax for your networking device, use the question mark (?) online help function.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

4.0(3)

The interface argument was made optional.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear the PIM counters for a specified interface:

switch# clear ip pim interface statistics ethernet 2/1
switch#
 

 
Related Commands

Command
Description

Displays PIM statistics.

clear ip pim policy statistics

command.

}]

 
Syntax Description

Specifies statistics for the join-prune policy.

Specifies statistics for the neighbor policy.

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

Interface or subinterface number. For more information about the numbering syntax for your networking device, use the question mark (?) online help function.

Specifies statistics for the register policy.

Specifies the bootstrap protocol RP-distribution policy.

Specifies the statistics for BSR messages.

Specifies the statistics for RP candidate messages.

Specifies the statistics for Auto-RP messages.

Specifies the statistics for mapping agent messages.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear PIM register policy counters:

switch# clear ip pim policy statistics register-policy
switch#
 

 
Related Commands

Command
Description

Displays PIM policy statistics.

clear ip pim route

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear all the routes specific to PIM:

switch(config)# clear ip pim route *
switch(config)#
 

 
Related Commands

Command
Description

Displays information about PIM specific routes.

clear ip pim statistics

command.

}]

 
Syntax Description

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear PIM statistics counters:

switch# clear ip pim statistics
switch#
 

 
Related Commands

Command
Description

Displays PIM statistics.

clear ip routing multicast event-history

command.

}

 
Syntax Description

Clears the CLI event history buffer.

Clears the multicast FIB distribution (MFDM) event history buffer.

Clears the MFDM sum event history buffer.

Clears the RIB event history buffer.

Clears the virtual routing and forwarding VRF event history buffer.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the MRIB RIB event history buffer:

switch(config)# clear ip routing multicast event-history rib
switch(config)#

 
Related Commands

Command
Description

Configures the size of the IPv4 MRIB event history buffers.

Displays information in the IPv4 MRIB event history buffers.

clear ipv6 mld groups

command.

}]

 
Syntax Description

icmp

(Optional) clears ICMP information.

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear all the MLD-related routes in the IPv6 multicast routing table:

switch(config)# clear ipv6 mld groups *
switch(config)#
 
 
 

 
Related Commands

Command
Description

Displays information about the IPv6 multicast routing table.

clear ipv6 mld route

command.

}]

 
Syntax Description

icmp

(Optional) Clears ICMPv6 information.

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear all the MLD-related routes in the IPv6 multicast routing table:

switch(config)# clear ipv6 mld route *
switch(config)#
 
 

 
Related Commands

Command
Description

Displays information about the IPv6 multicast routing table.

clear ipv6 mroute

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(3)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear all the routes in the IPv6 multicast routing table:

switch(config)# clear ipv6 mroute *
switch(config)#

 
Related Commands

Command
Description

Displays information about the IPv6 multicast routing table.

clear ipv6 pim event-history

command.

 
Syntax Description

This command has no arguments or keywords.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the PIM6 event history buffers:

switch(config)# clear ipv6 pim event-history
switch(config)#

 
Related Commands

Command
Description

Configures the size of the PIM6 event history buffers.

Displays information in the PIM6 event history buffers.

clear ipv6 pim interface statistics

command.

]

 
Syntax Description

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

(Optional) Interface or subinterface number. For more information about the numbering syntax for your networking device, use the question mark (?) online help function.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

4.0(3)

The interface argument was made optional.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear PIM6 counters for a specified interface:

switch# clear ipv6 pim interface statistics ethernet 2/2
switch#

 
Related Commands

Command
Description

Displays PIM6 statistics.

clear ipv6 pim policy statistics

command.

 
Syntax Description

Specifies the statistics for join-prune policy.

Specifies the statistics for neighbor policy.

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

Interface or subinterface number. For more information about the numbering syntax for your networking device, use the question mark (?) online help function.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear PIM6 join-prune policy counters:

switch(config)# clear ipv6 pim policy statistics jp-policy

 
Related Commands

Command
Description

Displays PIM6 policy statistics.

clear ipv6 pim route

command.

}]

 
Syntax Description

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear all the routes specific to PIM6:

switch(config)# clear ipv6 pim route *
switch(config)#

 
Related Commands

Command
Description

Displays information about PIM6 specific routes.

clear ipv6 pim statistics

command.

}]

 
Syntax Description

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(1)

This command was introduced.

 
Usage Guidelines

This command requires the Enterprise Services license.

Examples

This example shows how to clear PIM6 statistics counters:

switch# clear ipv6 pim statistics
 

 
Related Commands

Command
Description

Displays PIM6 statistics.

clear ipv6 routing multicast event-history

command.

}

 
Syntax Description

Clears the CLI event history buffer.

Clears the multicast FIB distribution (MFDM) event history buffer.

Clears the MFDM sum event history buffer.

Clears the RIB event history buffer.

Clears the virtual routing and forwarding (VRF) event history buffer.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.1(2)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear information in the M6RIB RIB event history buffer:

switch(config)# clear ipv6 routing multicast event-history rib
switch(config)#

 
Related Commands

Command
Description

Configures the size of the IPv6 M6RIB event history buffers.

Displays information in the IPv6 M6RIB event history buffers.

clear routing ipv6 multicast

command.

}]

 
Syntax Description

Specifies routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(3)

This command was introduced.

 
Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear the IPv6 multicast routing table:

switch(config)# clear routing ipv6 multicast *
switch(config)#
 

 
Related Commands

Command
Description

Displays information about IPv6 multicast routes.

clear routing multicast

command.

}]

 
Syntax Description

(Optional) Clears IP commands.

(Optional) Clears IPv4 commands.

Specifies all routes.

Group prefix.

Group address.

(Optional) Source (S, G) route.

(Optional) Applies to a virtual routing and forwarding (VRF) instance.

(Optional) VRF name. The name can be alphanumeric, case sensitive, or a maximum of 32 characters.

Specifies all VRFs.

 
Defaults

None

 
Command Modes

Any command mode

 
Supported User Roles

vdc-operator

 
Command History

Release
Modification

4.0(3)

This command was introduced.

 
Usage Guidelines

command is an alternative form of this command.

This command does not require a license.

Examples

This example shows how to clear the IPv4 multicast routing table:

switch(config)# clear routing multicast *
switch(config)#

 
Related Commands

Command
Description

Clears the multicast routing table.

Displays information about IPv4 multicast routes.