10-08-2007 10:51 AM
If this command has not been executed on a router, will messages like %OSPF-5-ADJCHG: get logged to the device?
Solved! Go to Solution.
10-08-2007 03:52 PM
10-08-2007 03:52 PM
No.
10-09-2007 12:53 PM
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
10-09-2007 01:15 PM
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.
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: