Cisco Cisco IOS Software Release 12.2(25)S

Page de 60
      CNS Agents
cns config notify
29
Cisco IOS Release 12.2(25)S
cns config notify
To notify CNS agents of configuration changes on Cisco IOS devices, use the cns config notify 
command in global configuration mode. To disable notifications, use the no form of this command.
cns config notify {all | diff} [interval minutes] [no_cns_events] [old-format]
no cns config notify {all | diff} [interval minutes] [no_cns_events] [old-format]
Syntax Description
Defaults
The interval defaults to 5 minutes.
Command Modes
Global configuration
Command History
Usage Guidelines
When the cns config notify command is enabled, commands entered in configuration mode are detected. 
If the all keyword is specified, the command is stored for future notification. If the diff keyword is 
specified, the command is stored for future notification if the software determines that the command will 
cause a configuration change. The diff keyword also allows the software to store information about the 
command including previous configuration states, source of the change (for example, a telnet user), and 
the time of configuration. 
The stored information is formatted in XML and sent as part of a CNS config agent change notification 
event. A CNS config agent change notification event is sent to the CNS event bus when configuration 
mode is exited or no activity from that source has occurred for the configured interval time.
all
Captures all configuration commands for the config-changed event output.
diff
Captures commands that change configuration for the config-changed event 
output.
interval minutes
(Optional) Specifies the amount of time after the last configuration change 
that the config-changed event is sent. The default is 5 minutes. The timer 
starts when you make a configuration change and you remain in 
configuration mode after the configuration change. If you enter the end 
command, the config-changed event is sent immediately.
no_cns_events
(Optional) Disables event notification for configurations changed through an 
XML file. If the configuration is changed using the command-line interface 
(CLI), the config-changed event will be sent.
old-format
(Optional) Provides the event notification in the old XML format for 
backwards compatibility.
Release
Modification
12.2(8)T
This command was introduced.
12.2(11)T
The diff keyword was removed.
12.3(1)
The diff and old-format keywords were added.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.