OSPF debug commands

ospf

Syntax

ospf

Context

debug>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command indicates the OSPF instance for debugging purposes.

Parameters

ospf-instance

Specifies the OSPF instance.

Values

0 to 31

area

Syntax

area [area-id]

no area

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF area.

Parameters

area-id

Specifies the OSPF area ID, expressed in dotted decimal notation or as a 32-bit decimal integer.

Values

0 to 4294967295

area-range

Syntax

area-range [ip-address]

no area-range

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF area range.

Parameters

ip-address

Specifies the IP address for the range used by the ABR to advertise the area into another area.

cspf

Syntax

cspf [ip-address]

no cspf

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF constraint-based shortest path first (CSPF).

Parameters

ip-address

Specifies the IP address for the range used for CSPF.

graceful-restart

Syntax

[no] graceful-restart

Context

debug>router>ospf

ebug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for OSPF and OSPF3 graceful restart.

interface

Syntax

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

no interface

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF and OSPF3 interface.

Parameters

ip-int-name

Specifies the IP interface name. An interface name cannot be in the form of an IP address. Interface names can be any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

ip-address

Specifies the interface IP address.

leak

Syntax

leak [ip-address]

no leak

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for OSPF leaks.

Parameters

ip-address

Specifies the IP address to debug OSPF leaks.

lsdb

Syntax

lsdb [type] [ls-id] [adv-rtr-id] [area area-id]

no lsdb

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF link-state database (LSDB).

Parameters

type

Specifies the OSPF link-state database (LSDB) type.

Values

router, network, summary, asbr, extern, nssa, area-opaque, as-opaque, link-opaque

ls-id

Specifies an LSA type specific field containing either a router ID or an IP address. It identifies the piece of the routing domain being described by the advertisement.

adv-rtr-id

Specifies the router identifier of the router advertising the LSA.

area-id

Specifies a 32-bit integer uniquely identifying an area.

Values

0 to 4294967295

misc

Syntax

[no] misc

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for miscellaneous OSPF events.

neighbor

Syntax

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

no neighbor

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF or OSPF3 neighbor.

Parameters

ip-int-name

Specifies the neighbor interface name.

ip-address

Specifies neighbor information for the neighbor identified by the specified router ID.

nssa-range

Syntax

nssa-range [ip-address]

no nssa-range

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an NSSA range.

Parameters

ip-address

Specifies the IP address range to debug.

packet

Syntax

packet [packet-type] [interface-name] [ingress | egress] [detail]

no packet

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for OSPF packets.

Parameters

detail

Displays detailed packet information.

egress

Keyword that specifies an egress packet.

ingress

Keyword that specifies an ingress packet.

interface-name

Specifies the interface name to debug.

Values

ipv6-address:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x: [0 to FFFF]H

d: [0 to 255]D

packet-type

Specifies the OSPF packet type to debug.

Values

hello, dbdescr, lsrequest, lsupdate, lsack

rtm

Syntax

rtm [ip-address]

no rtm

Context

debug>router>ospf

debug>router>ospf3

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for OSPF RTM.

Parameters

ip-address

Specifies the IP address to debug.

Values

ipv4-address: a.b.c.d

spf

Syntax

spf [type] [dest-addr]

no spf

Context

debug>router>ospf

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for OSPF SPF. Information about overall SPF start and stop times is displayed. To display detailed information about the SPF calculation of a specific route, the route must be specified as an optional argument.

Parameters

type

Specifies the area to debug.

Values

intra-area, inter-area, external

dest-addr

Specifies the destination IP address to debug.

virtual-neighbor

Syntax

virtual-neighbor [ip-address]

no virtual-neighbor

Context

debug>router>ospf

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for an OSPF virtual neighbor.

Parameters

ip-address

Specifies the IP address of the virtual neighbor.