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.
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
| 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). | 
<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
<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.
| Item | Description | 
|---|---|
| OSPF | Process ID. | 
| Route | Route. | 
| UpdateNum | Number of update times. | 
| Cost | Cost. | 
| Cost Type | Cost Type: 
 | 
| 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. |