Cisco 2960 X Owners Manual
Have a look at the manual Cisco 2960 X Owners Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 53 Cisco manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
DETAILED STEPS PurposeCommand or Action Enterstheglobalconfigurationmode.configureterminal Example: Switch#configureterminal Step 1 Enablestheeventagent,andentersthegatewayparameters.cnsevent{hostname|ip-address} [port-number][[keepaliveseconds Step 2 •For{hostname|ip-address},entereitherthehostnameortheIPaddress oftheeventgateway.retry-count][failover-timeseconds] [reconnect-timetime]|backup] Example: Switch(config)#cnsevent10.180.1.27keepalive12010 •(Optional)Forportnumber,entertheportnumberfortheeventgateway. Thedefaultportnumberis11011. •(Optional)Forkeepaliveseconds,enterhowoftentheswitchsends keepalivemessages.Forretry-count,enterthenumberofunanswered keepalivemessagesthattheswitchsendsbeforetheconnectionis terminated.Thedefaultforeachis0. •(Optional)Forfailover-timeseconds,enterhowlongtheswitchwaitsfor theprimarygatewayrouteaftertheroutetothebackupgatewayis established. •(Optional)Forreconnect-timetime,enterthemaximumtimeintervalthat theswitchwaitsbeforetryingtoreconnecttotheeventgateway. •(Optional)Enterbackuptoshowthatthisisthebackupgateway.(If omitted,thisistheprimarygateway.) Thoughvisibleinthecommand-linehelpstring,theencryptandthe clock-timeouttimekeywordsarenotsupported. Note ReturnstoprivilegedEXECmode.end Example: Switch(config)#end Step 3 ThisexampleshowshowtoenabletheCNSeventagent,settheIPaddressgatewayto10.180.1.27,set120 secondsasthekeepaliveinterval,andset10astheretrycount. Switch(config)#cnsevent10.180.1.27keepalive12010 What to Do Next Toverifyinformationabouttheeventagent,usetheshowcnseventconnectionscommandinprivileged EXECmode. TodisabletheCNSeventagent,usethenocnsevent{ip-address|hostname}globalconfigurationcommand. Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29044-0121 Configuring Cisco IOS Configuration Engine Enabling the CNS Event Agent
Related Topics EventService,onpage16 Enabling the Cisco IOS CNS Agent BeginninginprivilegedEXECmode,followthesestepstoenabletheCiscoIOSCNSagentontheswitch. Before You Begin YoumustenabletheCNSeventagentontheswitchbeforeyouenablethisagent. SUMMARY STEPS 1.configureterminal 2.cnsconfiginitial{hostname|ip-address}[port-number] 3.cnsconfigpartial{hostname|ip-address}[port-number] 4.end 5.StarttheCiscoIOSCNSagentontheswitch. DETAILED STEPS PurposeCommand or Action Enterstheglobalconfigurationmode.configureterminal Example: Switch#configureterminal Step 1 EnablestheCiscoIOSCNSagent,andenterstheconfigurationserver parameters. cnsconfiginitial{hostname|ip-address} [port-number] Step 2 Example: Switch(config)#cnsconfiginitial •For{hostname|ip-address},entereitherthehostnameorthe IPaddressoftheconfigurationserver. •(Optional)Forportnumber,entertheportnumberforthe configurationserver.10.180.1.2710 ThiscommandenablestheCiscoIOSCNSagentandinitiatesaninitial configurationontheswitch. EnablestheCiscoIOSCNSagent,andenterstheconfigurationserver parameters. cnsconfigpartial{hostname|ip-address} [port-number] Step 3 Example: Switch(config)#cnsconfigpartial •For{hostname|ip-address},entereitherthehostnameorthe IPaddressoftheconfigurationserver. •(Optional)Forportnumber,entertheportnumberforthe configurationserver.10.180.1.2710 Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX 22OL-29044-01 Configuring Cisco IOS Configuration Engine Enabling the Cisco IOS CNS Agent
PurposeCommand or Action EnablestheCiscoIOSCNSagentandinitiatesapartialconfiguration ontheswitch. ReturnstoprivilegedEXECmode.end Example: Switch(config)#end Step 4 StarttheCiscoIOSCNSagentontheswitch.Step 5 What to Do Next YoucannowusetheCiscoConfigurationEnginetoremotelysendincrementalconfigurationstotheswitch. Related Topics RefreshingDeviceIDs,onpage28 Enabling an Initial Configuration for Cisco IOS CNS Agent BeginninginprivilegedEXECmode,followthesestepstoenabletheCNSconfigurationagentandinitiate aninitialconfigurationontheswitch. Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29044-0123 Configuring Cisco IOS Configuration Engine Enabling an Initial Configuration for Cisco IOS CNS Agent
SUMMARY STEPS 1.configureterminal 2.cnstemplateconnectname 3.cliconfig-text 4.RepeatSteps2to3toconfigureanotherCNSconnecttemplate. 5.exit 6.cnsconnectname[retriesnumber][retry-intervalseconds][sleepseconds][timeoutseconds] 7.discover{controllercontroller-type|dlci[subinterfacesubinterface-number]|interface[interface-type] |lineline-type} 8.templatename[...name] 9.RepeatSteps7to8tospecifymoreinterfaceparametersandCNSconnecttemplatesintheCNSconnect profile. 10.exit 11.hostnamename 12.iproutenetwork-number 13.cnsidinterfacenum{dns-reverse|ipaddress|mac-address}[event][image] 14.cnsid{hardware-serial|hostname|stringstring|udi}[event][image] 15.cnsconfiginitial{hostname|ip-address}[port-number][event][no-persist][pagepage][source ip-address][syntax-check] 16.end DETAILED STEPS PurposeCommand or Action Enterstheglobalconfigurationmode.configureterminal Example: Switch#configureterminal Step 1 EntersCNStemplateconnectconfigurationmode,andspecifiesthename oftheCNSconnecttemplate. cnstemplateconnectname Example: Switch(config)#cnstemplateconnecttemplate-dhcp Step 2 EntersacommandlinefortheCNSconnecttemplate.Repeatthisstepfor eachcommandlineinthetemplate. cliconfig-text Example: Switch(config-tmpl-conn)#cliipaddressdhcp Step 3 RepeatSteps2to3toconfigureanother CNSconnecttemplate. Step 4 Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX 24OL-29044-01 Configuring Cisco IOS Configuration Engine Enabling an Initial Configuration for Cisco IOS CNS Agent
PurposeCommand or Action Returnstoglobalconfigurationmode.exit Example: Switch(config)#exit Step 5 EntersCNSconnectconfigurationmode,specifiesthenameoftheCNS connectprofile,anddefinestheprofileparameters.TheswitchusestheCNS connectprofiletoconnecttotheConfigurationEngine. cnsconnectname[retriesnumber] [retry-intervalseconds][sleepseconds] [timeoutseconds] Step 6 Example: Switch(config)#cnsconnectdhcp •EnterthenameoftheCNSconnectprofile. •(Optional)Forretriesnumber,enterthenumberofconnectionretries. Therangeis1to30.Thedefaultis3. •(Optional)Forretry-intervalseconds,entertheintervalbetween successiveconnectionattemptstotheConfigurationEngine.Therange is1to40seconds.Thedefaultis10seconds. •(Optional)Forsleepseconds,entertheamountoftimebeforewhich thefirstconnectionattemptoccurs.Therangeis0to250seconds.The defaultis0. •(Optional)Fortimeoutseconds,entertheamountoftimeafterwhich theconnectionattemptsend.Therangeis10to2000seconds.The defaultis120. SpecifiestheinterfaceparametersintheCNSconnectprofile.discover{controllercontroller-type|dlci [subinterfacesubinterface-number]| interface[interface-type]|lineline-type} Step 7 •Forcontrollercontroller-type,enterthecontrollertype. Example: Switch(config-cns-conn)#discoverinterfacegigabitethernet •Fordlci,entertheactivedata-linkconnectionidentifiers(DLCIs). (Optional)Forsubinterfacesubinterface-number,specifythe point-to-pointsubinterfacenumberthatisusedtosearchforactive DLCIs. •Forinterface[interface-type],enterthetypeofinterface. •Forlineline-type,enterthelinetype. SpecifiesthelistofCNSconnecttemplatesintheCNSconnectprofiletobe appliedtotheswitchconfiguration.Youcanspecifymorethanonetemplate. templatename[...name] Example: Switch(config-cns-conn)#templatetemplate-dhcp Step 8 RepeatSteps7to8tospecifymore interfaceparametersandCNSconnect templatesintheCNSconnectprofile. Step 9 Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29044-0125 Configuring Cisco IOS Configuration Engine Enabling an Initial Configuration for Cisco IOS CNS Agent
PurposeCommand or Action Returnstoglobalconfigurationmode.exit Example: Switch(config-cns-conn)#exit Step 10 Entersthehostnamefortheswitch.hostnamename Example: Switch(config)#hostnamedevice1 Step 11 (Optional)EstablishesastaticroutetotheConfigurationEnginewhoseIP addressisnetwork-number. iproutenetwork-number Example: RemoteSwitch(config)#iproute Step 12 172.28.129.22255.255.255.25511.11.11.1 (Optional)SetstheuniqueEventIDorConfigIDusedbytheConfiguration Engine.Ifyouenterthiscommand,donotenterthecnsid{hardware-serial |hostname|stringstring|udi}[event][image]command. cnsidinterfacenum{dns-reverse| ipaddress|mac-address}[event][image] Example: RemoteSwitch(config)#cnsidGigabitEthernet1/0/1ipaddress Step 13 •Forinterfacenum,enterthetypeofinterface.Forexample,ethernet, group-async,loopback,orvirtual-template.Thissettingspecifiesfrom whichinterfacetheIPorMACaddressshouldberetrievedtodefine theuniqueID. •For{dns-reverse|ipaddress|mac-address},enterdns-reverseto retrievethehostnameandassignitastheuniqueID,enteripaddress tousetheIPaddress,orentermac-addresstousetheMACaddress astheuniqueID. •(Optional)EntereventtosettheIDtobetheevent-idvalueusedto identifytheswitch. •(Optional)EnterimagetosettheIDtobetheimage-idvalueusedto identifytheswitch. Ifboththeeventandimagekeywordsareomitted,theimage-id valueisusedtoidentifytheswitch. Note (Optional)SetstheuniqueEventIDorConfigIDusedbytheConfiguration Engine.Ifyouenterthiscommand,donotenterthecnsidinterfacenum {dns-reverse|ipaddress|mac-address}[event][image]command. cnsid{hardware-serial|hostname| stringstring|udi}[event][image] Example: RemoteSwitch(config)#cnsidhostname Step 14 •For{hardware-serial|hostname|stringstring|udi},enter hardware-serialtosettheswitchserialnumberastheuniqueID,enter hostname(thedefault)toselecttheswitchhostnameastheunique ID,enteranarbitrarytextstringforstringstringastheuniqueID,or enteruditosettheuniquedeviceidentifier(UDI)astheuniqueID. Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX 26OL-29044-01 Configuring Cisco IOS Configuration Engine Enabling an Initial Configuration for Cisco IOS CNS Agent
PurposeCommand or Action EnablestheCiscoIOSagent,andinitiatesaninitialconfiguration.cnsconfiginitial{hostname|ip-address} [port-number][event][no-persist][page page][sourceip-address][syntax-check] Step 15 •For{hostname|ip-address},enterthehostnameortheIPaddressof theconfigurationserver. Example: RemoteSwitch(config)#cnsconfiginitial10.1.1.1no-persist •(Optional)Forport-number,entertheportnumberoftheconfiguration server.Thedefaultportnumberis80. •(Optional)Enableeventforconfigurationsuccess,failure,orwarning messageswhentheconfigurationisfinished. •(Optional)Enableno-persisttosuppresstheautomaticwritingto NVRAMoftheconfigurationpulledasaresultofenteringthecns configinitialglobalconfigurationcommand.Iftheno-persistkeyword isnotentered,usingthecnsconfiginitialcommandcausestheresultant configurationtobeautomaticallywrittentoNVRAM. •(Optional)Forpagepage,enterthewebpageoftheinitialconfiguration. Thedefaultis/Config/config/asp. •(Optional)Entersourceip-addresstouseforsourceIPaddress. •(Optional)Enablesyntax-checktocheckthesyntaxwhenthisparameter isentered. Thoughvisibleinthecommand-linehelpstring,theencrypt,status url,andinventorykeywordsarenotsupported. Note ReturnstoprivilegedEXECmode.end Example: RemoteSwitch(config)#end Step 16 Thisexampleshowshowtoconfigureaninitialconfigurationonaremoteswitchwhentheswitchconfiguration isunknown(theCNSZeroTouchfeature). Switch(config)#cnstemplateconnecttemplate-dhcpSwitch(config-tmpl-conn)#cliipaddressdhcpSwitch(config-tmpl-conn)#exitSwitch(config)#cnstemplateconnectip-routeSwitch(config-tmpl-conn)#cliiproute0.0.0.00.0.0.0${next-hop}Switch(config-tmpl-conn)#exitSwitch(config)#cnsconnectdhcpSwitch(config-cns-conn)#discoverinterfacegigabitethernetSwitch(config-cns-conn)#templatetemplate-dhcpSwitch(config-cns-conn)#templateip-routeSwitch(config-cns-conn)#exitSwitch(config)#hostnameRemoteSwitchRemoteSwitch(config)#cnsconfiginitial10.1.1.1no-persist Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29044-0127 Configuring Cisco IOS Configuration Engine Enabling an Initial Configuration for Cisco IOS CNS Agent
ThisexampleshowshowtoconfigureaninitialconfigurationonaremoteswitchwhentheswitchIPaddress isknown.TheConfigurationEngineIPaddressis172.28.129.22. Switch(config)#cnstemplateconnecttemplate-dhcpSwitch(config-tmpl-conn)#cliipaddressdhcpSwitch(config-tmpl-conn)#exitSwitch(config)#cnstemplateconnectip-routeSwitch(config-tmpl-conn)#cliiproute0.0.0.00.0.0.0${next-hop}Switch(config-tmpl-conn)#exitSwitch(config)#cnsconnectdhcpSwitch(config-cns-conn)#discoverinterfacegigabitethernetSwitch(config-cns-conn)#templatetemplate-dhcpSwitch(config-cns-conn)#templateip-routeSwitch(config-cns-conn)#exitSwitch(config)#hostnameRemoteSwitchRemoteSwitch(config)#iproute172.28.129.22255.255.255.25511.11.11.1RemoteSwitch(config)#cnsidethernet0ipaddressRemoteSwitch(config)#cnsconfiginitial172.28.129.22no-persist What to Do Next Toverifyinformationabouttheconfigurationagent,usetheshowcnsconfigconnectionscommandin privilegedEXECmode. TodisabletheCNSCiscoIOSagent,usethenocnsconfiginitial{ip-address|hostname}globalconfiguration command. Refreshing DeviceIDs BeginninginprivilegedEXECmode,followthesestepstorefreshaDeviceIDwhenchangingthehostname ontheswitch. SUMMARY STEPS 1.showcnsconfigconnections 2.MakesurethattheCNSeventagentisproperlyconnectedtotheeventgateway. 3.showcnseventconnections 4.RecordfromtheoutputofStep3theinformationforthecurrentlyconnectedconnectionlistedbelow. YouwillbeusingtheIPaddressandportnumberinsubsequentstepsoftheseinstructions. 5.configureterminal 6.nocnseventip-addressport-number 7.cnseventip-addressport-number 8.end 9.Makesurethatyouhavereestablishedtheconnectionbetweentheswitchandtheeventconnectionby examiningtheoutputfromshowcnseventconnections. Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX 28OL-29044-01 Configuring Cisco IOS Configuration Engine Refreshing DeviceIDs
DETAILED STEPS PurposeCommand or Action DisplayswhethertheCNSeventagentisconnectingtothe gateway,connected,oractive,andthegatewayusedbythe eventagent,itsIPaddressandportnumber. showcnsconfigconnections Example: Switch#showcnsconfigconnections Step 1 Examinetheoutputofshowcnsconfigconnectionsforthe following: MakesurethattheCNSeventagentisproperly connectedtotheeventgateway. Step 2 •Connectionisactive. •Connectionisusingthecurrentlyconfiguredswitch hostname.TheDeviceIDwillberefreshedtocorrespond tothenewhostnameconfigurationusingthese instructions. Displaystheeventconnectioninformationforyourswitch.showcnseventconnections Example: Switch#showcnseventconnections Step 3 RecordfromtheoutputofStep3theinformationfor thecurrentlyconnectedconnectionlistedbelow.You Step 4 willbeusingtheIPaddressandportnumberin subsequentstepsoftheseinstructions. Entersglobalconfigurationmode.configureterminal Example: Switch#configureterminal Step 5 SpecifiestheIPaddressandportnumberthatyourecorded inStep4inthiscommand. nocnseventip-addressport-number Example:Switch(config)#nocnsevent172.28.129.222012 Step 6 Thiscommandbreakstheconnectionbetweentheswitchand theeventgateway.Itisnecessarytofirstbreak,then reestablish,thisconnectiontorefreshtheDeviceID. SpecifiestheIPaddressandportnumberthatyourecorded inStep4inthiscommand. cnseventip-addressport-number Example:Switch(config)#cnsevent172.28.129.222012 Step 7 Thiscommandreestablishestheconnectionbetweenthe switchandtheeventgateway. ReturnstoprivilegedEXECmode.end Example: Switch(config)#end Step 8 Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX OL-29044-0129 Configuring Cisco IOS Configuration Engine Refreshing DeviceIDs
PurposeCommand or Action Makesurethatyouhavereestablishedtheconnection betweentheswitchandtheeventconnectionby examiningtheoutputfromshowcnseventconnections. Step 9 Related Topics EnablingtheCiscoIOSCNSAgent,onpage22 HostnameandDeviceID,onpage17 Enabling a Partial Configuration for Cisco IOS CNS Agent BeginninginprivilegedEXECmode,followthesestepstoenabletheCiscoIOSCNSagentandtoinitiatea partialconfigurationontheswitch. SUMMARY STEPS 1.configureterminal 2.cnsconfigpartial{ip-address|hostname}[port-number][sourceip-address] 3.end DETAILED STEPS PurposeCommand or Action Enterstheglobalconfigurationmode.configureterminal Example: Switch#configureterminal Step 1 Enablestheconfigurationagent,andinitiatesapartialconfiguration.cnsconfigpartial{ip-address|hostname} [port-number][sourceip-address] Step 2 •For{ip-address|hostname},entertheIPaddressorthehostname oftheconfigurationserver.Example: Switch(config)#cnsconfigpartial172.28.129.222013 •(Optional)Forport-number,entertheportnumberofthe configurationserver.Thedefaultportnumberis80. •(Optional)Entersourceip-addresstouseforthesourceIP address. Thoughvisibleinthecommand-linehelpstring,theencrypt keywordisnotsupported. Note Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX 30OL-29044-01 Configuring Cisco IOS Configuration Engine Enabling a Partial Configuration for Cisco IOS CNS Agent