Check When the Last Configuration Change Occurred
Purpose
When a problem occurs on a router, it is a good idea to check when the last configuration change was made because it may have had some influence on the problem.
To check when the last configuration change occurred, follow these steps:
Configure Configuration Change Tracking
Action
To configure this type of logging, follow these steps:
In configuration mode, go to the following hierarchy level:
[edit]user@host# edit system syslogConfigure the log file:
[edit system syslog]user@host# edit file filenameFor example:
[edit system syslog]user@host# edit file mw-configuration-changesConfigure the change-log facility and severity level:
[edit system syslog filename]user@host# set change-log infoVerify the configuration:
[edit system syslog]user@host# showfile mw-configuration-changes {change-log info;}Commit the configuration:
user@host# commit
Display the Configured Log File
Purpose
To display the log file in configuration mode.
Action
To display the log file in configuration mode, enter the following command:
For example:
Sample Output
[edit system syslog] user@host# run show log mw-configuration-changes Sep 17 07:03:22 nut mgd[7793]: UI_CFG_AUDIT_OTHER: User 'root' override: /config/juniper.conf Sep 17 07:07:21 nut mgd[2751]: UI_CFG_AUDIT_OTHER: User 'root' set: [interfaces lo0 unit 0 family inet address 127.0.0.1/32] Sep 17 07:07:21 nut mgd[2751]: UI_CFG_AUDIT_SET: User 'root' set: [system domain-name] "englab.company.net" -> "englab.company.net" Sep 17 07:07:21 nut mgd[2751]: UI_CFG_AUDIT_OTHER: User 'root' set: [system name-server 172.17.28.101] Sep 17 07:07:22 nut mgd[2751]: UI_CFG_AUDIT_OTHER: User 'root' set: [system domain-search] "englab.company.net" Sep 17 07:07:22 nut mgd[2751]: UI_CFG_AUDIT_OTHER: User 'root' set: [system domain-search] "company.net" Sep 17 07:07:22 nut mgd[2751]: UI_CFG_AUDIT_OTHER: User 'root' set: [system domain-search] "jnpr.net"
Meaning
The sample output shows the contents of the log file and that the last configuration change was on September 17 at 07:07:22.