Technical data
OSPF 123
By default, the OSPF TRAP function is disabled so the switch does not send TRAP
packets when any OSPF process is abnormal. The configuration is valid for all OSPF
processes if you do not specify a process ID.
For detailed configuration of SNMP TRAP, “System Management” on page 323.
Resetting the OSPF Process
If the undo ospf command is executed on a router and then the ospf command
is used to restart the OSPF process, the previous OSPF configuration is lost. With
the reset ospf command, you can restart the OSPF process without losing the
previous OSPF configuration.
Perform the following configuration in user view.
Resetting the OSPF process can immediately clear the invalid LSAs, make the
modified router ID effective or re-elect the DR and BDR.
Displaying and Debugging OSPF
After configuring OSPF, execute the display command in all views to display the
operation of the OSPF configuration, and to verify the effect of the configuration.
Execute the debugging command in user view to debug the OSPF module.
Disable OSPF TRAP function undo snmp-agent trap enable ospf [
process-id ] [ ifstatechange |
virifstatechange | nbrstatechange |
virnbrstatechange | ifcfgerror |
virifcfgerror | ifauthfail | virifauthfail |
ifrxbadpkt | virifrxbadpkt | txretransmit |
viriftxretransmit | originatelsa | maxagelsa
| lsdboverflow | lsdbapproachoverflow ]
Table 52 Resetting the OSPF Process
Operation Command
Reset the OSPF process reset ospf [ statistics ] { all | process-id }
Table 53 Displaying and Debugging OSPF
Operation Command
Display the brief information of the OSPF
routing process
display ospf [ process-id ] brief
Display OSPF statistics display ospf [ process-id ] cumulative
Display LSDB information of OSPF display ospf [ process-id ] [ area-id ] lsdb [
brief ] [ asbr | ase | network | nssa | router |
summary ] [ ip-address ] [ originate-router
ip-address ] [ self-originate ]
Display OSPF peer information display ospf [ process-id ] peer [ brief ]
Display OSPF next hop information display ospf [ process-id ] nexthop
Display OSPF routing table display ospf [ process-id ] routing
Display OSPF virtual links display ospf [ process-id ] vlink
Display OSPF request list display ospf [ process-id ] request-queue
Display OSPF retransmission list display ospf [ process-id ] retrans-queue
Table 51 Enabling/Disabling OSPF TRAP Function
Operation Command