06-24-2015 05:46 PM - edited 03-05-2019 01:44 AM
I am trying to find the command that will allow me to delay a remote device from writing a series of commands to configure the link I am communicating over. Once I write the first 2 commands it will dump the link I am remoting into it with.. Can someone help me with this quickly as I have a project to remote into a series of devices to reconfigure the interface I will be communicating over. Thanks so much for your help in advance.
06-24-2015 08:31 PM
You can schedule commands using kron, which
I have used to schedule weekly backups.
take a look at the link below.
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/cns/configuration/15-mt/cns-15-mt-book/cns-cmd-sched.html#GUID-6648F6B1-071D-4116-8772-73092223A21A
i would also use the "reload in xx" in case you can't get the link back up. Reload would restore the original config and bring the link back up.
If all comes up ok, don't forget to cancel the reload.
hope this helps,
Please rate helpful pists
Thanks
06-25-2015 05:57 PM
Hi Charles, thanks for the info on KRON. Not sure if that will apply to the situation I have as I am not looking to have a task scheduled for each week/day. I am looking to reconfigure a link remotely but know that once I enter the first few lines, or default the interface first, it will not allow me to finish the commands because the link will be down after the first few lines of change. Can that be accomplished with KRON for a one time script run?
06-25-2015 07:42 PM
As long as the needed commands are allowed by kron I see no reason why not.
Ill test it in the morning and get back with you.
06-26-2015 04:51 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
I have a technique, not a command.
Create a file of the commands you need to execute (those that impact the connecting link). Copy that file to device's flash. Copy that file from flash to running config.
The file's commands will be executed locally. If done correctly, your connecting link might "blink", but it should restore.
For dealing with "oops", before copying flash file, schedule a reload in a couple of minutes. If all goes well, cancel the scheduled reload.
06-26-2015 10:15 AM
Thanks Joe I think that will work. although the reboot isn't an option as the link is from the core. It would knock out the sight. thanks again
06-26-2015 11:45 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Yes, a reboot is bad, but if you misconfigure the only link to/from the site, it's often better than the alternative. (Best to do such during off-hours.)
06-26-2015 02:46 PM
Yes knocking down the sight here is a very bad thing. It is what I like to call an RGE (Resume Generating Event). LOL Thanks guys for all the help.
06-26-2015 11:02 AM
Nice suggestion Joseph. I'll have to remember that technique and put it in my mental tool box. :)
(+5 to Joseph)
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