Chapter 4 Configuring Cisco IOS CNS Agents

Configuring Cisco IOS Agents

 

Command

Purpose

Step 10

 

 

show cns config connections

Verify information about the configuration agent.

Step 11

 

 

show running-config

Verify your entries.

 

 

 

To disable the CNS Cisco IOS agent, use the no cns config initial {ip-address hostname} global configuration command.

This example shows how to configure an initial configuration on a remote switch. The switch hostname is the unique ID. The Cisco Configuration Engine IP address is 172.28.129.22.

Switch(config)# cns config connect-intf serial ping-interval 1 retries 1

Switch(config-cns-conn-if)#config-cli ip address negotiated

Switch(config-cns-conn-if)# config-cli encapsulation ppp

Switch(config-cns-conn-if)#config-cli ip directed-broadcast

Switch(config-cns-conn-if)# config-cli no keepalive

Switch(config-cns-conn-if)# config-cli no shutdown

Switch(config-cns-conn-if)# exit

Switch(config)# hostname RemoteSwitch

RemoteSwitch(config)# ip route 10.1.1.1 255.255.255.255 11.11.11.1

RemoteSwitch(config)# cns id Ethernet 0 ipaddress

RemoteSwitch(config)# cns config initial 10.1.1.1 no-persist

Enabling a Partial Configuration

Beginning in privileged EXEC mode, follow these steps to enable the Cisco IOS agent and to initiate a partial configuration on the switch:

 

Command

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

cns config partial {ip-addresshostname}

Enable the configuration agent, and initiate a partial

 

[port-number] [source ip-address]

configuration.

 

 

For {ip-address hostname}, enter the IP address or

 

 

the hostname of the configuration server.

 

 

(Optional) For port-number, enter the port number of

 

 

the configuration server. The default port number is 80.

 

 

(Optional) Enter source ip-addressto use for the

 

 

source IP address.

 

 

Note Though visible in the command-line help string,

 

 

the encrypt keyword is not supported.

Step 3

 

 

end

Return to privileged EXEC mode.

Step 4

 

 

show cns config stats

Verify information about the configuration agent.

 

or

 

 

show cns config outstanding

 

Step 5

 

 

show running-config

Verify your entries.

Step 6

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

To disable the Cisco IOS agent, use the no cns config partial {ip-address hostname} global configuration command. To cancel a partial configuration, use the cns config cancel privileged EXEC command.

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

 

OL-9775-02

4-11

 

 

 

Page 119
Image 119
Cisco Systems 3750E manual Enabling a Partial Configuration, Show running-config Verify your entries, Show cns config stats