85
Configuring Cisco IOS Configuration Engine
Configuring Cisco IOS Agents
Enabling Cisco IOS CNS Agent and an Initial Configuration
Command Purpose
1. configure terminal Enters global configuration mode.
2. cns event {hostname | ip-address} [port-number]
[backup] [failover-time seconds] [keepalive seconds
retry-count] [reconnect time] [source ip-address]
Enables the event agent, and enters the gateway
parameters.
{hostname | ip-address}—Enters either the hostname
or the IP address of the event gateway.
(Optional) port number—Enters the port number for
the event gateway. The default port number is 11011.
(Optional) backup—Shows that this is the backup
gateway. (If omitted, this is the primary gateway.)
(Optional) failover-time seconds—Enters how long
the switch waits for the primary gateway route after
the route to the backup gateway is established.
(Optional) keepalive seconds—Enters how often the
switch sends keepalive messages. For retry-count,
enters the number of unanswered keepalive
messages that the switch sends before the
connection is terminated. The default for each is 0.
(Optional) reconnect time—Enters the maximum time
interval that the switch waits before trying to
reconnect to the event gateway.
(Optional) source ip-address—Enters the source IP
address of this device.
Note: Though visible in the command-line help string, the
encrypt and the clock-timeout time keywords are not
supported.
3. end Returns to privileged EXEC mode.
4. show cns event connections Verifies information about the event agent.
Command Purpose
1. configure terminal Enters global configuration mode.
2. cns template connect name Enters CNS template connect configuration mode, and specifies
the name of the CNS connect template.
3. cli config-text Enters a command line for the CNS connect template. Repeat
this step for each command line in the template.
4. Repeat Steps 2 to 3 to configure another CNS connect template.
5. exit Returns to global configuration mode.