Cisco Cisco IOS Software Release 12.2(25)S
CNS Agents
How to Configure CNS Agents
14
Cisco IOS Release 12.2(25)S
Monitoring and Verifying the CNS Agents
Perform this optional task to display the status of the CNS event agent connection and to display a list
of subjects about the CNS event agent connection.
of subjects about the CNS event agent connection.
SUMMARY STEPS
1.
enable
2.
show cns event connections
3.
show cns event subject [name]
DETAILED STEPS
Step 1
enable
Enables privileged EXEC mode. Enter your password if prompted.
Router> enable
Step 2
show cns event connections
Use this command to display the status of the CNS event agent connection—such as whether it is
connecting to the gateway, connected, or active—and to display the gateway used by the event agent and
its IP address and port number.
connecting to the gateway, connected, or active—and to display the gateway used by the event agent and
its IP address and port number.
Router# show cns event connections
The currently configured primary event gateway:
hostname is 10.1.1.1.
port number is 11011.
Event-Id is Internal test1
Keepalive setting:
none.
Connection status:
Connection Established.
The currently configured backup event gateway:
none.
The currently connected event gateway:
hostname is 10.1.1.1.
port number is 11011.
Step 8
transport event
Example:
Router(cns-inv)# transport event
Specifies that inventory requests are sent out with each CNS
inventory agent message.
inventory agent message.
Step 9
exit
Example:
Router(cns-inv)# exit
Exits CNS inventory mode and returns to global
configuration mode.
configuration mode.
•
Repeat this command to return to privileged EXEC
mode.
mode.
Command or Action
Purpose