Cisco 3560 v2Series 24 port Simple....copy config from one switch to another

Answered Question
Aug 18th, 2011
User Badges:

Ok this should be simple copy the config from one switch onto notepad and copy from notepad and paste into the switch.... same model etc...


Switch is new out of the box


enable

conf t

then paste


Right???  I keep getting invlaid marker errors when I am pasting in user logins also doing small chunks as I copy and paste

Correct Answer by Amit Aneja about 5 years 9 months ago

Not sure why it goes out from config to privilege mode, go into config mode again & copy/paste from "hostname".... Else easier way as Alain suggested, backup the config on a TFTP & copy the config from TFTP back to new router's flash.


Follow this link:


http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml#backup


Regards,

Amit

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Amit Aneja Thu, 08/18/2011 - 12:53
User Badges:
  • Bronze, 100 points or more

Let's look at a chunk where you are getting the invalid input & see what's wrong.


Paste the o/p that you are getting.

navigatorvictory Thu, 08/18/2011 - 13:21
User Badges:

Would you like to enter the initial configuration dialog? [yes/no]: no

Switch>enable

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#!

Switch(config)#line con 0

Switch(config-line)# login local

Switch(config-line)#line vty 0 4

Switch(config-line)# exec-timeout 60 0

Switch(config-line)# logging synchronous

Switch(config-line)# login local

Switch(config-line)# length 0

Switch(config-line)#line vty 5 15

Switch(config-line)# exec-timeout 60 0

Switch(config-line)# logging synchronous

Switch(config-line)# login local

Switch(config-line)# length 0

Switch(config-line)#!

Switch(config-line)#ntp clock-period 36028469

Switch(config)#ntp server 10.93.250.9

Switch(config)#end

Switch#

Switch#Current configuration : 15856 bytes

        ^

% Invalid input detected at '^' marker.


Switch#

Switch#version 12.2

          ^

% Invalid input detected at '^' marker.


Switch#no service pad

          ^

% Invalid input detected at '^' marker.


Switch#service timestamps debug uptime

         ^

% Invalid input detected at '^' marker.


Switch#service timestamps log uptime

         ^

% Invalid input detected at '^' marker.


Switch#service password-encryption

         ^

% Invalid input detected at '^' marker.


Switch#!

Switch#hostname FGG150-SWITCH-4

        ^

% Invalid input detected at '^' marker.


Switch#!

Switch#boot-start-marker

Translating "boot-start-marker"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer address

Switch#boot-end-marker

Translating "boot-end-marker"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer address

Switch#!

*Mar  1 00:03:06.352: %SYS-5-CONFIG_I: Configured from console by console

navigatorvictory Thu, 08/18/2011 - 13:22
User Badges:

notepad version

!

line con 0

login local

line vty 0 4

exec-timeout 60 0

logging synchronous

login local

length 0

line vty 5 15

exec-timeout 60 0

logging synchronous

login local

length 0

!

ntp clock-period 36028469

ntp server 10.93.250.9

end



Current configuration : 15856 bytes


version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

service password-encryption

!

hostname FGG150-SWITCH-4

!

boot-start-marker

boot-end-marker

!

!

navigatorvictory Thu, 08/18/2011 - 13:25
User Badges:

I took this part out


Current configuration : 15856 bytes


version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

service password-encryption


Then it would not error at first but when it hit hostname it again did not like something


I thought all you had to do was go to old switch and do a show run copy what you see to notepad and go

cadet alain Thu, 08/18/2011 - 13:40
User Badges:
  • Purple, 4500 points or more

Hi,


The router was complaining because you were entering commands in the wrong mode.

Copying running to save it on a host is ok but other way is not the right way to do it as you saw.

just do a copy ftp:// xxxx   running or copy tftp:// xxxx running, it will be less troublesome.


Regards.


Alain.

Correct Answer
Amit Aneja Thu, 08/18/2011 - 13:47
User Badges:
  • Bronze, 100 points or more

Not sure why it goes out from config to privilege mode, go into config mode again & copy/paste from "hostname".... Else easier way as Alain suggested, backup the config on a TFTP & copy the config from TFTP back to new router's flash.


Follow this link:


http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml#backup


Regards,

Amit

Actions

This Discussion