Cisco Systems C2960XSTACK Refreshing DeviceIDs, show cns config connections, configure terminal

Models: WSC2960X24TSL C2960XSTACK WSC2960X24PDL WSC2960X24TSLL WSC2960X24PSL WSC2960X48TSL WSC2960X24TDL

1 112
Download 112 pages 36.97 Kb
Page 40
Image 40
Refreshing DeviceIDs

Configuring Cisco IOS Configuration Engine

Refreshing DeviceIDs

This example shows how to configure an initial configuration on a remote switch when the switch IP address is known. The Configuration Engine IP address is 172.28.129.22.

Switch(config)# cns template connect template-dhcp

Switch(config-tmpl-conn)# cli ip address dhcp

Switch(config-tmpl-conn)# exit

Switch(config)# cns template connect ip-route

Switch(config-tmpl-conn)#cli ip route 0.0.0.0 0.0.0.0 ${next-hop}

Switch(config-tmpl-conn)# exit

Switch(config)# cns connect dhcp

Switch(config-cns-conn)#discover interface gigabitethernet

Switch(config-cns-conn)# template template-dhcp

Switch(config-cns-conn)# template ip-route

Switch(config-cns-conn)# exit

Switch(config)# hostname RemoteSwitch

RemoteSwitch(config)# ip route 172.28.129.22 255.255.255.255 11.11.11.1

RemoteSwitch(config)# cns id ethernet 0 ipaddress

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

What to Do Next

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

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

Refreshing DeviceIDs

Beginning in privileged EXEC mode, follow these steps to refresh a DeviceID when changing the hostname on the switch.

SUMMARY STEPS

1.show cns config connections

2.Make sure that the CNS event agent is properly connected to the event gateway.

3.show cns event connections

4.Record from the output of Step 3 the information for the currently connected connection listed below. You will be using the IP address and port number in subsequent steps of these instructions.

5.configure terminal

6.no cns event ip-address port-number

7.cns event ip-address port-number

8.end

9.Make sure that you have reestablished the connection between the switch and the event connection by examining the output from show cns event connections.

 

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

28

OL-29044-01

Page 40
Image 40
Cisco Systems C2960XSTACK manual Refreshing DeviceIDs, show cns config connections, show cns event connections, end