DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode. Enter your password if
prompted.
enable
Example:
Switch> enable
Step 1
Displays whether the CNS event agent is connecting to the
gateway, connected, or active, and the gateway used by the
event agent, its IP address and port number.
show cns config connections
Example:
Switch# show cns config connections
Step 2
Examine the output of show cns config connections for the
following:
Make sure that the CNS event agent is properly
connected to the event gateway.
Step 3
•
Connection is active.
•
Connection is using the currently configured switch
hostname. The DeviceID will be refreshed to
correspond to the new hostname configuration using
these instructions.
Displays the event connection information for your switch.show cns event connections
Example:
Switch# show cns event connections
Step 4
Record from the output of Step 4 the information for
the currently connected connection listed below. You
Step 5
will be using the IP address and port number in
subsequent steps of these instructions.
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 6
Specifies the IP address and port number that you recorded
in Step 5 in this command.
no cns event ip-address port-number
Example:
Switch(config)# no cns event 172.28.129.22 2012
Step 7
This command breaks the connection between the switch
and the event gateway. It is necessary to first break, then
reestablish, this connection to refresh the DeviceID.
Specifies the IP address and port number that you recorded
in Step 5 in this command.
cns event ip-address port-number
Example:
Switch(config)# cns event 172.28.129.22 2012
Step 8
This command reestablishes the connection between the
switch and the event gateway.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
424
How to Configure the Configuration Engine