[rancid] "copy run start" from a script

Daniel Schmidt daniel.schmidt at wyo.gov
Fri Jan 10 19:27:17 UTC 2014


Y reinvent wheel?

http://sourceforge.net/projects/cosi-nms/files/ciscocmd/



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:
>
> #!/bin/bash
> for line in $(cat routers.txt)
> do
> su -s /bin/bash -l rancid -c "/home/rancid/bin/clogin -x commands.cmds
> $line"
> done
>
> 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,
> G
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>


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...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20140110/8523f688/attachment.html>


More information about the Rancid-discuss mailing list