debugging ospf route-calc

Function

The debugging ospf route-calc command enables debugging of route calculation of all OSPF processes.

The undo debugging ospf route-calc command disables debugging of route calculation of all OSPF processes.

By default, the debugging of route calculation of all OSPF processes is disabled.

Format

debugging ospf process-id route-calc { all | intra-area | asbr | ase | inter-area | nssa | ti-lfa }

debugging ospf process-id route-calc { intra-area | ase | inter-area | nssa } filter { address-ipv4 mask-length | acl { acl-number | acl-name } }

debugging ospf process-id route-calc asbr filter { address-ipv4 | acl { acl-number | acl-name } }

debugging ospf process-id route-calc ti-lfa filter address-ipv4

undo debugging ospf [ process-id ] route-calc { all | intra-area | asbr | ase | inter-area | nssa | ti-lfa }

undo debugging ospf process-id route-calc { intra-area | ase | inter-area | nssa } filter { address-ipv4 mask-length | acl { acl-number | acl-name } }

undo debugging ospf process-id route-calc asbr filter { address-ipv4 | acl { acl-number | acl-name } }

undo debugging ospf process-id route-calc ti-lfa filter address-ipv4

Parameters

Parameter Description Value
process-id

Specifies the ID of an OSPF process.

The value is an integer ranging from 1 to 4294967295.

all

Displays the debugging information about all types of OSPF route calculation.

-

intra-area

Displays debugging information about route calculation of LSAs in the area.

-

asbr

Displays debugging information about route calculation of ASBR LSA.

-

ase

Displays debugging information about route calculation of ASE LSA.

-

inter-area

Displays debugging information about route calculation of LSAs between areas.

-

nssa

Displays debugging information about NSSA route.

-

ti-lfa

Displays debugging information about route calculation of TI-LFA.

-

filter

Indicates the filtering policy.

-

address-ipv4

Indicates Destination of IP address.

The value is in dotted decimal notation.

mask-length

Indicates length of IP address mask.

The value is an integer ranging from 0 to 32.

acl acl-number

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

acl acl-name

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ospf debug

Usage Guidelines

Usage Scenario

The debugging ospf route-calc command helps locate faults.

Example

# Enable debugging of route calculation of class-5 LSAs in OSPF processes.
<HUAWEI> debugging ospf route-calc ase
2011-07-27 04:15:28 HUAWEI %%01OSPFV2COMM/6/OSPF_DEBUG(d):CID=0x80842783;
FileID: 0x4c Line: 531 Level: 0x5 OSPF 1
  Route 10.1.1.1/32 is Updated (All Attributes Changed)  Type: EXTERNAL, Prio: 3, UpdateNum : 3109490, LockInfo: 0x04, LSAInfo: 0x00, Flags: 0x61008063 Cost: 1, Cost Type: 2, Area: 0.0.0.0, Transit Area: 0.0.0.0, Tag: 1, Nexthops: 1, IID: 2332033081, Base Count: 1, Direct Count: 0
2011-07-27 04:15:28 HUAWEI %%01OSPFV2COMM/6/OSPF_DEBUG(d):CID=0x80842783;
FileID: 0x19 Line: 729 Level: 0x5 OSPF 1
  External Route 10.1.1.1/32 IID 2332033081 added/Updated to RM
2011-07-27 04:15:28 HUAWEI %%01OSPFV2COMM/6/OSPF_DEBUG(d):CID=0x80842783;
FileID: 0x4b Line: 2586 Level: 0x5 OSPF 1
  Best path calculation end for Route 10.1.1.1/32
# Enable the debugging of all route computation functions in the OSPF processes after SR is enabled.
<HUAWEI> debugging ospf route-calc all
Sep 13 2017 14:36:10.272 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80840441;
FileID: 0x52 Line: 7549 Level: 0x5 OSPF 65534
Topology node changed for Segment-routing, id 10.2.2.2 type SPT.
Sep 13 2017 11:21:15.123 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80840441;
FileID: 0x4f Line: 680 Level: 0x5 OSPF 1
Segment-routing nexthop updated for route 10.2.2.2/32.
Sep 13 2017 11:21:15.123 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80840441;
FileID: 0x3e Line: 1107 Level: 0x5 OSPF 1
Updated inter LSA to LSDB for segment-routing, prefix 10.2.2.2/32.
Sep 13 2017 11:23:25.596 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80840441;
FileID: 0x59 Line: 1810 Level: 0x5 OSPF 1
Received extend prefix opaque lsa and updated prefix attributes for segment-routing, prefix 10.2.2.5.
Sep 13 2017 11:23:25.596 HUAWEI %%01OSPF/6/OSPF_DEBUG(d):CID=0x80840441;
FileID: 0x4f Line: 2082 Level: 0x5 OSPF 1
Route source 10.1.1.1 changed and call the calculation for Segment-routing.
Table 1 Description of the debugging ospf route-calc command output
Item Description
OSPF

Process ID.

Route

Route.

UpdateNum

Number of update times.

Cost

Cost.

Cost Type

Cost Type:

  • 1: class-1 cost of LSAs outside the autonomous system.
  • 2: class-2 cost of LSAs outside the autonomous system.
Transit Area

Transmission area.

Base Count

Number of routes in the base table.

Direct Count

Number of routes in the direct-connect table.

IID

ECMP-group ID.

CID

Component ID.

FileID

File ID.

Line

Line number.

Level

Level.

Type

Route type.

Prio

Priority.

LockInfo

Lock information.

LSAInfo

LSA information.

Flags

Flag bit.

Area

Area number.

Tag

Label.

Nexthops

Next hop.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >