cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3079
Views
10
Helpful
9
Replies
Highlighted
Beginner

Multiple running-config files - 3560X

Hello All

I use the 3560X model and I have a question.

Would  I be able to save multiple run config files, allowng me to be able to select the desired one, instead of having to rewrite the configuration.

that I want to use.

Thanks.

Regards,

Jeff

 

9 REPLIES 9
Highlighted
Hall of Fame Community Legend

Yes you can but you need to change the boot variable string so the switch will know what config file to use.  

 

Alternatively, you can "compare" the running-config with another file and it will highlight what line(s) are missing or changed.

Highlighted

"Alternatively, you can "compare" the running-config with another file and it will highlight what line(s) are missing or changed."

 

Thank you for this tip! (+5)         "show archive config diff"

I did not know about it. 

Learn something new everyday! 

One thing I keep learning is how much I don't know. :)

 

Highlighted
Enthusiast

copy startup flash:config_1 - this will copy the startup config to switch's flash with a filename config_1.bkp

copy startup flash:config_2 - this will copy the startup config to switch's flash with a filename config_2.bkp

and so on...

Then you can restore config later by issuing this command:

copy flash:config_1 startup

 

Please rate replies and mark question as "answered" if applicable.
Highlighted

Hi Rejohn,

I have been practicing on a 2950 switch before atttempting on the 3560x.  Having difficulty getting two different files saved.  Seems when I bring up the second config file and do a copy startup-config running-config command that the current running file is not overwriten.  What could I be doing wrong?

Thanks.

Regards,

Jeff

 

 

Highlighted

I don't have 3560X to test with so don't know exactly.

 

Other way of doing this is using the ARCHIVE command.

 

!!!! Enable archiving.

switch#mkdir flash:configs
switch#configure terminal
switch(config)#archive
switch(config-archive)#path flash:configs/
switch(config-archive)#write-memory
switch(config-archive)#maximum 10
switch(config-archive)#end

 

!!!! Archive running config.

switch#archive config

 

!!!! show archives

switch#sh archive
The maximum archive configurations allowed is 10.
There are currently 3 archive configurations saved.
The next archive file will be named flash:/configs/-<timestamp>-3
 Archive #  Name
   1        :Error - Bad file number
   2        flash:/configs/Jun-12-10-06-29.363-AEST-1
   3        flash:/configs/Jun-12-10-12-34.751-AEST-2 <- Most Recent

 

!!!! Compare two IOS configuration files

switch#show archive config differences flash:/configs/Jun-12-10-06-29.363-AEST-1 flash:/configs/Jun-12-10-12-34.751-AEST-2
!Contextual Config Diffs:
!No changes were found

 

!!!! Replace the running-config with a new config file

switch#configure replace flash:configs/Jun-12-10-12-34.751-AEST-2

Please rate replies and mark question as "answered" if applicable.
Highlighted

I found archive as a valuable tool for all IOS platforms. thanks!

Highlighted

archive
path flash:
maximum 14
time-period 20

Highlighted
Beginner

Hi,

Yes it is possible to load multiple iOS depending upon the flash memory.

use this command: copy startup flash

 

 

Jerry Paul

www.thenetworkhardware.com

Highlighted
Beginner

Hello All

After some time I was able to find the solution to my question.  From the switch prompt:
1) copy running-config flash:<name of file>; repeat for another configuration that you want saved.
2) show flash<to verify the configuration files you saved>
3) configure replace flash:<name of file>; this will restore the selected file and overwrite the current
     running-config file in RAM.
4) copy running-config startup-config

In previous attempts to copy a configuration file from flash to overwrite the current running-config flie using the "copy" command, simply did not overwrite what was in RAM.  This will now allow me to save
multiple port configurations and restore the configuration that I want to use, saving time by not having to rewrite the port configurations.

I hope this will help other members and please comment!

Regards,

Jeff

 

 

 

Content for Community-Ad