ā02-28-2017 01:22 PM - edited ā03-05-2019 08:07 AM
Hi
What is difference between "copy run nvram" and commit in ASR9K when "copy run nvram" under general mode and "commit" under config mode?
Thank you
Solved! Go to Solution.
ā02-28-2017 08:22 PM
Hi
The commit command will save the configuration on the running-config, it also is useful to mark rollback points. For example a configuration was applied and it generated network problems, you could go back to a previous config. You can see the rollback points executing show rollback points.
Now copy running-config location is useful for example if you want to save the current configuration to a Tftp server.
:-)
ā02-28-2017 02:20 PM
Hello,
basically, IOS XR consists of two stages, the target configuration stage, and the commit stage. When you 'commit' your configuration, it becomes part of the running configuration. The document below explains it pretty well:
Understanding "commit" command In IOS XR
https://supportforums.cisco.com/document/12015521/understanding-commit-command-ios-xr
'Copy run nvram' makes the running config the startup config.
ā02-28-2017 03:03 PM
Hi
I agree with Georg explanation, basically you can make any change on the ASR device but it will take effect only if you execute the commit command line.
My 2 cents
:-)
ā02-28-2017 04:28 PM
Thanks for your reply.
I think after we use command "commit", we do not need to use any other commands like "copy run nvram", right? Although command "copy run nvram" exists in asr9k, it is almost no useful in asr9k, do you agree?
ā02-28-2017 05:31 PM
Hi,
Yes, that's correct, the following link could be useful:
http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-1/system_management/command/reference/b_sysman_cr41asr9k/b_sysman_cr41asr9k_chapter_0110.pdf
Also you can use the command: configuration commit auto-save Filename
I have used copy running-config filename or location, to build a file with the configuration for backup purposes, but this action could generate CPU utilization.
:-)
ā02-28-2017 07:53 PM
In regular IOS, the configuration for whole router is saved on nvram. When it reboots, the configuration enter ram from nvram. In XR, can we think it is the same procedure as the regular IOS?ćMy understanding is the command "commit" only can add all commands to running-config at one time point. but the new added commands are also saved at nvram. So command "copy run nvram" is no useful in asr9k because it has commad "commit". but i think the command "copy running location" you mentioned is very useful
ā02-28-2017 08:22 PM
Hi
The commit command will save the configuration on the running-config, it also is useful to mark rollback points. For example a configuration was applied and it generated network problems, you could go back to a previous config. You can see the rollback points executing show rollback points.
Now copy running-config location is useful for example if you want to save the current configuration to a Tftp server.
:-)
ā03-01-2017 06:12 AM
I mean command "copy run nvram" is no useful in asr9k since it has command "commit", do you agree? thanks
ā03-01-2017 12:04 PM
Hi
That's correct.
:-)
ā03-01-2017 01:48 PM
Thank you!
ā03-01-2017 01:53 PM
You are welcome,
Thank you
Have a great day!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide