cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13080
Views
0
Helpful
3
Replies

log-adjacency-changes

getwithrob
Level 3
Level 3

If this command has not been executed on a router, will messages like %OSPF-5-ADJCHG: get logged to the device?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee
3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

No.

Rob and Joe

I think that we need to be careful to understand what this question means. According to the command reference the log-adjacency-changes is enabled by default. So it is not necessary for this command to be specifically entered or to appear in the running config for the messages to be logged.

Here is the relevant section of the command reference:

log-adjacency-changes

To configure the router to send a syslog message when an Open Shortest Path First (OSPF) neighbor goes up or down, use the log-adjacency-changes command in router configuration mode. To turn off this function, use the no form of this command.

log-adjacency-changes [detail]

no log-adjacency-changes [detail]

Syntax Description

detail

(Optional) Sends a syslog message for each state change, not just when a neighbor goes up or down.

Defaults

Enabled

Command Modes

Router configuration

HTH

Rick

HTH

Rick

While you are correct, this is one of those commands that shows up in the config even though it's the default. Therefore, if you don't see it, or haven't explicitly executed it, chances are you will not see those syslog messages.

This could change in a newer IOS (or vary across trains), so it's a good idea to make sure you explicitly add this command if you care to see those messages.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: