09-23-2013 03:01 AM - edited 03-07-2019 03:37 PM
Hi,
Is there a command similar to "reload in" for Nexus 5k and 3k.
I have been searching, but couldnt find, hence thought of asking the expert community here.
Thanks
09-27-2013 05:17 AM
Hi Kishore,
The Reload in option was removed in NX-OS as we have checkpoint option. Mostly we use reload in option, if we need to back out any configurations and reset the box to original state. If this is what you are trying, you can achieve this with the checkpoint and rollback options.
Below link for your reference,
Thanks,
Richard
*Rate if this useful
04-06-2014 03:30 PM
Hi Richard,
Are you able to elaborate on your answer, from my understanding the 'rollback' cmd has to be executed from the cli.
One of the benefits of the 'reload in x' cmd would it would ensure the device would return to an original state when you locked yourself out.
Thanks.
John
11-12-2014 07:42 AM
I dont believe any NXOS platform does this. I will raise an enhancement for this. Having it will not cause any harm.
Richard
04-21-2015 07:37 AM
Any update on this? Has the feature been added back in? The lack of "reload in" makes the Nexus switch a truly useless product for remote administration. I'm about to have to travel overseas because we've got a remote issue with the ip tables, but the troubleshooting might potentially disconnect the switch from US network. I used to be able to "reload in 30" after everyone went home, make the changes and cancel the reload if it worked or wait 30 and get back in if it didn't. Now I have to go physically sit there. It's a waste of time an money.
06-02-2015 09:55 AM
Wow...
I just ran up against this. I can work around it so far, but never mind that... This is a feature I use all the time in automation and for some risky or remote changes.
07-07-2015 03:26 AM
Why would this function be removed? It has only been around for 20 years, whoever made the decision to remove it should be blackballed from the entire technology field.
02-11-2016 06:36 AM
I missed the reload in function from NX-OS so I found a way to do it using a simple python script. It is sometimes a challenge to manage a remote Nexus without the "safety net" that the pre-scheduled reload provides.
The attached file will create a python scripts called reload. It needs to be in bootflash:/scripts directory. The attached file tries to help create the directory if needed and place the script there.
You can run it with:
source background reload in xx
source reload cancel
I didn't build logic for 'reload at' form of the command. I only really ever needed the 'in' form of the command.
02-19-2016 05:08 AM
Clinton,
Thank you! Thank you! Thank you! It works perfectly and really saved me while doing some remote work that could have screwed me without this.
-Troy
02-19-2016 05:46 AM
Hi Troy,
Thanks for letting me know it helped you out! It gives me incentive to share more stuff!
-Clinton
03-02-2016 02:14 AM
Nice script. Many thanks for posting this. I now use this whenever I'm changing parameters that could lock me out of the box.
Brian
03-06-2017 05:58 AM
Hello Team,
I investigated on scheduled reload in NX9K running NX-OS V7.
Does sb have an updated script for those ? I there a special name extension (e.g. .py) required to run this script on the switch ?
Also NX-OS V7 now got the run-script command instead. Source background don´t seems to work anymore.
Any comments appreciated.
Alfred
11-23-2016 11:42 PM
Great script. Works great on Nx5672 !
I have tried to use it on Nx9372 (in NxOS mode) but it fails.
Nx9372# source background reload in 10
pid 11743
Nx9372#
Nx9372# source reload cancel
Traceback (most recent call last):
File "/bootflash/scripts/reload", line 46, in <module>
if len(sys.argv) < 2:
NameError: name 'sys' is not defined
Nx9372#
Any ideas to fix this ? Anything more that need to be imported on Nx9300
11-24-2016 01:42 AM
Found the issue in what neded to be imported.
Added below after "import cisco":
from cli import *
import sys
Se attached script that works on Nx9300.
[EDIT]
reload cancel did not work
01-04-2018 11:23 AM
Not a recommended way to abort a change as there are much better options. I did test however and for the N9k use the added imports to the script Per mentioned:
from cli import *
import sys
However we cannot kill the background process by calling it (likely we need to kill PID). It moves through the "abort reload"function without an error but still reloads.
I tested by running in the foreground and was able to abort the reload by stopping the script via Ctrl-c:
source reload in xx <<<<<<< Ctrl-c before time runs down if you want to cancel the reload.
Ran over a separate ssh session in my test (it is running in the foreground and we would need another ssh session to make the changes). Both the reload and abort reload work.
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