[Contents] [Prev] [Next] [Index] [Report an Error]

clear (ospf | ospf3) database

Syntax

clear (ospf | ospf3) database
<advertising-router router-id>
<area area-id>
<asbrsummary>
<external>
<instance instance-name>
<inter-area-prefix>
<inter-area-router>
<intra-area-prefix>
<link-local>
<logical-system (all | logical-system-name)>
<lsa-id lsa-id>
<netsummary >
<network>
<nssa>
<opaque-area>
<purge>
<realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)>
<router>

Release Information

Command introduced before JUNOS Release 7.4.

advertising-router router-id, area area-id, asbrsummary, external, inter-area-prefix, inter-area-router, intra-area-prefix, link-local, lsa-id lsa-id, netsummary, network, nssa, opaque-area, and router options added in JUNOS Release 8.3. You must use the purge command with these options.

realm option added in JUNOS Release 9.2.

Description

With the master Routing Engine , delete entries in the Open Shortest Path First (OSPF) link-state advertisement (LSA) database. With the backup Routing Engine, delete the OSPF LSA database and sync the new database with the master Routing Engine. You can also use purge with any of the options to discard rather than delete the specified LSA entries.

Caution: This command is useful only for testing. Use it with care because it causes significant network disruption.

Note: You must use the purge command with any of the options added in JUNOS Release 8.3. You can use advertising-router router-id, area area-id, instance instance-name, logical-system logical-system-name, and lsa-id lsa-id with the options to further define the LSAs you want to discard.

Options

none — Delete all LSAs other than the system's own LSAs, which are regenerated. To resynchronize the database, the system destroys all adjacent neighbors that are in the state EXSTART or higher. The neighbors are then reacquired and the databases are synchronized.

advertising-router router-id(Optional) Discard entries for the LSA entries advertised by the specified router.

area area-id(Optional) Discard entries for the LSAs in the specified area.

asbrsummary — (Optional) Discard summary AS boundary router LSA entries.

external — (Optional) Discard external LSAs.

instance instance-name(Optional) Delete or discard entries for the specified routing instance only.

inter-area-prefix — (ospf3 only) (Optional) Discard interarea-prefix LSAs.

inter-area-router — (ospf3 only) (Optional) Discard interarea-router LSAs.

intra-area-prefix — (ospf3 only) (Optional) Discard intra-area-prefix LSAs.

logical-system (all | logical-system-name) — (Optional) Perform this operation on all logical systems or on a particular logical system.

link-local — (Optional) Delete link-local LSAs.

lsa-id lsa-id(Optional) Discard the LSA entries with the specified LSA identifier.

netsummary — (Optional) Discard summary network LSAs.

network — (Optional) Discard network LSAs.

nssa — (Optional) Discard not-so-stubby area (NSSA) LSAs.

opaque-area — (Optional) Discard opaque area-scope LSAs.

realm (ipv4-multicast | ipv4-unicast | ipv6-multicast) — (ospf3 only) (Optional) Delete the entries for the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default.

router — (Optional) Discard router LSAs.

purge — (Optional) Discard all entries in the link-state advertisement database. All link-state advertisements are set to MAXAGE and are flooded. The database is repopulated when the originators of the link-state advertisements receive the MAXAGE link-state advertisements and reissue them.

Required Privilege Level

clear

Related Topics

show ospf database

show ospf3 database

List of Sample Output

clear ospf database

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

clear ospf database

user@host> clear ospf database

[Contents] [Prev] [Next] [Index] [Report an Error]