Disabling and re-enabling OSPFv2 event logging

OSPFv2 event logging can be configured, disabled, and re-enabled.

Before you begin

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command to enter OSPF router configuration mode and enable OSPFv2 globally.
    device(config)# router ospf
  3. Enter the no log all command to disable the logging of all OSPFv2 events.
    device(config-router-ospf-vrf-default-vrf)# no log all

Example

The following example re-enables the logging of all OSPFv2 events.

device# configure terminal
device(config)# router ospf 
device(config-router-ospf-vrf-default-vrf)# log all