[rancid] "copy run start" from a script
bruccoo at gmail.com
Fri Jan 10 21:08:56 UTC 2014
Thanks for the link but I'm looking for something to run exclusively within
rancid and bash. The script I have works except sending the carriage
return when writing the config to startup. I figure an option on the last
line would do it but no dice.
for line in $(cat routers.txt)
su -s /bin/bash -l rancid -c "/home/rancid/bin/clogin -c 'copy run start'
I'm getting closer it seems as when this is ran it will display the command
but after entering the command it times out:
router#copy run start
Error: TIMEOUT reached
On Fri, Jan 10, 2014 at 2:27 PM, Daniel Schmidt <daniel.schmidt at wyo.gov>wrote:
> Y reinvent wheel?
> On Fri, Jan 10, 2014 at 9:26 AM, Gregory Bruccoleri <bruccoo at gmail.com>wrote:
>> Hello all, I have the following script but want to ensure that when
>> changes are completed that the configuration changes are written to the
>> startup config.
>> Here is my script:
>> for line in $(cat routers.txt)
>> su -s /bin/bash -l rancid -c "/home/rancid/bin/clogin -x commands.cmds
>> I've tried using the flat text command within "commands.cmds" to no avail
>> and the -S option without success.
>> Does anyone have any input on how to make this work?
>> Thanks in advance,
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
> E-Mail to and from me, in connection with the transaction
> of public business, is subject to the Wyoming Public Records
> Act and may be disclosed to third parties.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss