FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
omontanez
Staff
Staff
Article Id 191953
Description
This article describes the steps to enable OSPF logs and change level for showing information in router logs in the GUI.

Scope
OSPF logs.

Solution
By default, logs for OSPF are disabled and only critical events can be showed.

Via CLI
#diag ip router ospf show
OSPF debugging status:
  OSPF debugging level is CRITICAL

Via GUI

omontanez_FD40093_tn_FD40093-1.jpg

To enable all logs for OSPF:
# diag ip router ospf all enable

After all logs have been enabled, the status will be changed and can be shown with the command:
 # diag ip router ospf show
OSPF debugging status:
  OSPF all IFSM debugging is on
  OSPF all NFSM debugging is on
  OSPF packet Hello detail debugging is on
  OSPF packet Database Description detail debugging is on
  OSPF packet Link State Request detail debugging is on
  OSPF packet Link State Update detail debugging is on
  OSPF packet Link State Acknowledgment detail debugging is on
  OSPF all LSA debugging is on
  OSPF all NSM debugging is on
  OSPF all events debugging is on
  OSPF all route calculation debugging is on
  OSPF debugging level is CRITICAL

To change the level of debugging, this is from critical to info level for show all events (or whatever is required).

For show level options
# diagnose ip router ospf level
critical    Critical level.
error       Error level.
info        Information level.
none        None level.
warn        Warning level.

For change level option
# diagnose ip router ospf level show

The following command can be used to validate the current level after the change:
# diag ip router ospf show

OSPF debugging status:

  OSPF all IFSM debugging is on
  OSPF all NFSM debugging is on
  OSPF packet Hello detail debugging is on
  OSPF packet Database Description detail debugging is on
  OSPF packet Link State Request detail debugging is on
  OSPF packet Link State Update detail debugging is on
  OSPF packet Link State Acknowledgment detail debugging is on
  OSPF all LSA debugging is on
  OSPF all NSM debugging is on
  OSPF all events debugging is on
  OSPF all route calculation debugging is on
  OSPF debugging level is INFO

This can be tested by making some change in the OSPF configuration.  The logs now shown in the GUI will be based on level that was set earlier.

omontanez_FD40093_tn_FD40093-2a.jpg


Related Articles

Technical Tip: OSPF static routes redistribution example

Contributors