06-09-2015 10:36 AM - edited 03-08-2019 12:28 AM
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
06-09-2015 09:59 PM
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.
06-19-2015 06:56 AM
"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. :)
06-10-2015 02:59 AM
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
06-11-2015 01:25 PM
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
06-11-2015 05:16 PM
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
08-13-2016 07:59 PM
I found archive as a valuable tool for all IOS platforms. thanks!
08-13-2016 08:01 PM
archive
path flash:
maximum 14
time-period 20
06-15-2015 10:02 AM
Hi,
Yes it is possible to load multiple iOS depending upon the flash memory.
use this command: copy startup flash
Jerry Paul
06-19-2015 06:28 AM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: