Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

log-adjacency-changes

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
Cisco Employee

Re: log-adjacency-changes

No.

3 REPLIES
Cisco Employee

Re: log-adjacency-changes

No.

Hall of Fame Super Gold

Re: log-adjacency-changes

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

Cisco Employee

Re: log-adjacency-changes

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.

6179
Views
0
Helpful
3
Replies
CreatePlease to create content