Chapter 4 Configuring Cisco IOS CNS Agents

Configuring Cisco IOS Agents

Enabling the Cisco IOS CNS Agent

After enabling the CNS event agent, start the Cisco IOS CNS agent on the switch. You can enable the Cisco IOS agent with these commands:

The cns config initial global configuration command enables the Cisco IOS agent and initiates an initial configuration on the switch.

The cns config partial global configuration command enables the Cisco IOS agent and initiates a partial configuration on the switch. You can then use the Configuration Engine to remotely send incremental configurations to the switch.

Enabling an Initial Configuration

Beginning in privileged EXEC mode, follow these steps to enable the CNS configuration agent and initiate an initial configuration on the switch:

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

cns config connect-intf interface-prefix

Enter the connect-interface-config submode, and specify

 

[ping-interval seconds] [retries num]

the interface for connecting to the Configuration Engine.

 

 

Enter the interface-prefixfor the connecting interface.

 

 

You must specify the interface type but need not

 

 

specify the interface number.

 

 

(Optional) For ping-intervalseconds, enter the

 

 

interval between successive ping attempts. The range

 

 

is 1 to 30 seconds. The default is 10 seconds.

 

 

(Optional) For retries num, enter the number of ping

 

 

retries. The range is 1 to 30. The default is 5.

Step 3

 

 

config-cli

Enter config-clito connect to the Configuration Engine

 

or

through the interface defined in cns config connect-intf.

 

line-cli

Enter line-clito connect to the Configuration Engine

 

 

through modem dialup lines.

 

 

Note The config-cliinterface configuration command

 

 

accepts the special character & that acts as a

 

 

placeholder for the interface name. When the

 

 

configuration is applied, the & is replaced with the

 

 

interface name. For example, to connect through

 

 

FastEthernet0/1, the command config-cli ip

 

 

route 0.0.0.0 0.0.0.0 & generates the command

 

 

ip route 0.0.0.0 0.0.0.0 FastEthernet0/1.

Step 4

 

 

exit

Return to global configuration mode.

Step 5

 

 

hostname name

Enter the hostname for the switch.

Step 6

 

 

ip route network-number

Establish a static route to the Configuration Engine whose

 

 

IP address is network-number.

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

OL-9775-02

4-9

 

 

 

Page 117
Image 117
Cisco Systems 3750E manual Enabling the Cisco IOS CNS Agent, Enabling an Initial Configuration