Cisco Systems C2960XSTACK What to Do Next, configure terminal, reconnect-time time backup, Step

Models: WSC2960X24TSL C2960XSTACK WSC2960X24PDL WSC2960X24TSLL WSC2960X24PSL WSC2960X48TSL WSC2960X24TDL

1 112
Download 112 pages 36.97 Kb
Page 33
Image 33
configure terminal

Configuring Cisco IOS Configuration Engine

Enabling the CNS Event Agent

DETAILED STEPS

 

Command or Action

Purpose

Step 1

configure terminal

Enters the global configuration mode.

 

Example:

 

 

Switch# configure terminal

 

Step 2 cns event {hostname ip-address}[port-number] [ [keepalive seconds retry-count][failover-timeseconds ]

[reconnect-time time] backup]

Example:

Switch(config)# cns event 10.180.1.27 keepalive 120 10

Step 3

end

Example:

Switch(config)# end

Enables the event agent, and enters the gateway parameters.

For {hostname ip-address}, enter either the hostname or the IP address of the event gateway.

(Optional) For port number, enter the port number for the event gateway. The default port number is 11011.

(Optional) For keepalive seconds, enter how often the switch sends keepalive messages. For retry-count, enter the number of unanswered keepalive messages that the switch sends before the connection is terminated. The default for each is 0.

(Optional) For failover-timeseconds, enter how long the switch waits for the primary gateway route after the route to the backup gateway is established.

(Optional) For reconnect-timetime, enter the maximum time interval that the switch waits before trying to reconnect to the event gateway.

(Optional) Enter backup to show that this is the backup gateway. (If omitted, this is the primary gateway.)

Note Though visible in the command-line help string, the encrypt and the clock-timeouttime keywords are not supported.

Returns to privileged EXEC mode.

This example shows how to enable the CNS event agent, set the IP address gateway to 10.180.1.27, set 120 seconds as the keepalive interval, and set 10 as the retry count.

Switch(config)# cns event 10.180.1.27 keepalive 120 10

What to Do Next

To verify information about the event agent, use the show cns event connections command in privileged EXEC mode.

To disable the CNS event agent, use the no cns event { ip-address hostname } global configuration command.

Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29044-01

21

Page 33
Image 33
Cisco Systems C2960XSTACK manual What to Do Next, configure terminal, Enters the global configuration mode, Detailed Steps