[an error occurred while processing this directive][an error occurred while processing this directive]

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:

  1. Configure Configuration Change Tracking
  2. Display the Configured Log File

Configure Configuration Change Tracking

Action

To configure this type of logging, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
    [edit]user@host# edit system syslog
  2. Configure the log file:
    [edit system syslog]user@host# edit file filename

    For example:

    [edit system syslog]user@host# edit file mw-configuration-changes
  3. Configure the change-log facility and severity level:
    [edit system syslog filename]user@host# set change-log info
  4. Verify the configuration:
    [edit system syslog]user@host# show file mw-configuration-changes { change-log info;}
  5. 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:

[edit system syslog]user@host# run show log filename

For example:

[edit system syslog]user@host# run show log mw-configuration-changes

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.


Published: 2010-01-25

[an error occurred while processing this directive]