log (OSPFv2)
log
{
adjacency
[
dr-only
]
|
all
|
bad_packet
[
checksum
]
|
database
|
memory
|
retransmit
}
no log
{
adjacency
[
dr-only
]
|
all
|
bad_packet
[
checksum
]
|
database
|
memory
|
retransmit
}
Only OSPFv2 messages indicating possible system errors are logged. Refer to the Parameters section for specific defaults.
OSPF router configuration mode
OSPF router VRF configuration mode
Use this command to disable or re-enable the logging of specific events related to OSPFv2. If this command is not enabled only OSPFv2 messages indicating possible system errors are logged.
For interfaces where the designated router state is not applicable, such as point-to-point and virtual links, OSPF neighbor state changes are always logged irrespective of the setting of the dr-only sub-option.
A limitation with the dr-only sub-option is that when a DR/BDR election is underway, OSPF neighbor state changes pertaining to non-DR/BDR routers are not logged. Logging resumes once a DR is elected on that network.
The
no form of the command restores the default settings. Use the
no log all command to return all OSPFv2 logging options to the default settings.