cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16378
Views
13
Helpful
5
Replies

What command gets all configuration info from a switch?

TotoGA
Level 1
Level 1

Hi guys.

 

I'm making a backup of multiple Switches in my LAN.

I'm doing it manually, like show run, then saving all information that I get on the screen to a text file.

I remember from past that show run does not show all configuration, and that there are also other commands that I need to run to get some in depth config information to. I don't know if that's still the case ? for example on Catalyst 2960G?

please advise, if show run contains all necessary info to restore a switch, if not what commands do I need to run additionally to make it 100% good backup.

thanks in advance.

 

3 Accepted Solutions

Accepted Solutions

marce1000
Hall of Fame
Hall of Fame

 

 - The running config provides all configuration settings to backup or restore the configuration :

              https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/n5k/commands/show-running-config.html

 However the added option all will display also default configuration items (which you don't need to input when restoring a configuration).

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

View solution in original post

Leo Laohoo
Hall of Fame
Hall of Fame
sh run all | append <FILENAME>

View solution in original post

balaji.bandi
Hall of Fame
Hall of Fame

#show run all  ( complete hidden config will show)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

5 Replies 5

marce1000
Hall of Fame
Hall of Fame

 

 - The running config provides all configuration settings to backup or restore the configuration :

              https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/n5k/commands/show-running-config.html

 However the added option all will display also default configuration items (which you don't need to input when restoring a configuration).

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Leo Laohoo
Hall of Fame
Hall of Fame
sh run all | append <FILENAME>

balaji.bandi
Hall of Fame
Hall of Fame

#show run all  ( complete hidden config will show)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

TotoGA
Level 1
Level 1

the "all" part does it I guess, I see now much more information, also important info which was configured but not showing in show run.

 

 

Thanks allot guys.

 

Joseph W. Doherty
Hall of Fame
Hall of Fame

As the other posters have noted, "show run", alone (and its output saved somewhere off the device) is generally sufficient.  This is generally true if you're going to restore to the same platform and IOS version.

The "show run all" variant (also described by others) also shows hidden configuration commands.  Do note, what's hidden can change between IOS versions, further, defaults can also change between IOS versions, and lastly, commands can come and go or change between IOS versions.

Such changes have some implications.  For example, after an IOS upgrade, a comparison between the startup config and the running config may show differences.  Generally, a newer IOS will automatically handle command changes, but if you need to revert to an older IOS, an older IOS may have issues with a config file from a newer IOS.  So, when doing IOS upgrades, you may want to also insure you have a copy of the prior config file.