Tuesday, November 13, 2007

Cisco IOS: Configuraton Change Notification and Logging :-)


Configuraton Change Notification and Logging [Cisco IOS Software Releases 12.4 Mainline]


Configuring the Configuration Change Notification and Logging Feature: Example



The following example enables configuration logging, specifies that the configuration log may have a maximum of 200 entries, increases security by suppressing the display of password information in configuration log records, and turns on syslog notifications:



Router(config)# archive
Router(config-archive)# log config
Router(config-archive-log-config)# logging enable
Router(config-archive-log-config)# logging size 200
Router(config-archive-log-config)# hidekeys
Router(config-archive-log-config)# notify syslog




Displaying Configuration Log Entries: Examples



The following example results in the display of configuration log entry numbers 1 and 2:



Router# show archive log config 1 2




idx sess user@line Logged command
1 1 user1@console logging enable
2 1 user1@console logging size 200



The following example results in the display of all configuration log files as they would appear in a configuration file rather than in tabular format. In addition to displaying logged commands, this display includes the commands used to change configuration modes, which are required to correctly apply the logged commands.





Router# show archive log config all provisioning




archive
log config
logging enable
logging size 200


The following example results in the display of memory usage statistics for the configuration log:





Router# show archive log config statistics




Config Log Session Info:
Number of sessions being tracked: 1
Memory being held: 3910 bytes
Total memory allocated for session tracking: 3910 bytes
Total memory freed from session tracking: 0 bytes
Config Log log-queue Info:
Number of entries in the log-queue: 3
Memory being held in the log-queue: 671 bytes
Total memory allocated for log entries: 671 bytes
Total memory freed from log entries:: 0 bytes