Clear commands

ospf

Syntax

ospf

Context

clear>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears and resets OSPF protocol entities.

Parameters

ospf-instance

Clears the specified OSPF instance.

Values

0 to 31

database

Syntax

database [purge]

Context

clear>router>ospf

clear>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all LSAs received from other nodes, sets all adjacencies better than two-way to one-way, and refreshes all self originated LSAs.

Parameters

purge

Keyword that clears all self-originated LSAs and reoriginates all self-originated LSAs

export

Syntax

export

Context

clear>router>ospf

clear>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command reevaluates all effective export policies.

neighbor

Syntax

neighbor [ip-int-name | ip-address]

Context

clear>router>ospf

clear>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command marks the neighbor as dead and reinitiates the affected adjacencies.

Parameters

ip-int-name

Clears all neighbors for the interface specified by this interface name.

ip-address

Clears all neighbors for the interface specified by this IP address.

statistics

Syntax

statistics

Context

clear>router>ospf

clear>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all neighbor, router, interface, SPF, and global statistics for this OSPF instance.