Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Startup and running config

How would you see if there is a difference in the startup and running config of an IOS switch?

Thanks.

6 REPLIES
Blue

Re: Startup and running config

Hi:

Execute a "sh start" and then a "sh run" and view the configurations side-by-side and line-by-line to see the differences.

HTH

Victor

New Member

Re: Startup and running config

If you have saved any modification to the running-config file, then there will be no difference and therefore you won't be able to compare. Otherwise, what I would do is the following:

- sho running-config till the last line.

- copy the contents and paste to a text editor.

- reload the device

- sho startup-config

- compare each line in the startup-config file against the contents you have pasted in the text editor(which should be the running-config file).

Hope this helps.

SK

Blue

Re: Startup and running config

SK:

Why does he have to reload the device just to get the output of a 'sh run" and a "sh start"?

VL

New Member

Re: Startup and running config

That step is not really necessary; however, I assumed that there could be a possibility of a corrupt startup-config file and reloading the device can verify it.

Blue

Re: Startup and running config

OK. I hope he reads your explanation before he submits a change control just to check the start up config. :-)

Bronze

Re: Startup and running config

There's a suite of commands just for this:

http://www.cisco.com/en/US/docs/ios/12_4/cfg_fund/configuration/guide/h_diff_ps6350_TSD_Products_Configuration_Guide_Chapter.html

That link is for router IOS but the commands are preset on recent switch software revs. They're "unsupported" so they don't show up in the switch documentation and therefore I can't tell you what minimum rev you need to be running. I also believe you need to be on a switch family >=3550.

Edit: I just checked my Cat6.5k (SUP2/MSFC2) and the command is not present. My Cat4.5k does have it. Bottom line is YMMV. :-)

Edit2: You also need to specify the file system where the files are that you want to diff. In your case, system:running-config and nvram:startup-config

364
Views
0
Helpful
6
Replies
CreatePlease to create content