Setting the number of OSPF logs

OSPF logs include LSA aging logs, route calculation logs, and neighbor logs.

To set the number of OSPF logs:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPF view.

ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] *

N/A

3. Set the number of OSPF logs.

event-log { lsa-flush | peer | spf } size count

By default, the number of OSPF logs is 10 for each type, including LSA aging logs, route calculation logs, and neighbor logs.