[rancid] Re: rancid with Cisco ASA 5520 in Multiple Context Mode

john heasley heas at shrubbery.net
Tue Apr 21 03:52:49 UTC 2009

Mon, Apr 20, 2009 at 09:37:22PM -0400, Carlo Finotti:
> So I have been trying to use rancid with "clogin" to simply backups up
> my firewall running in multiple context mode.  When I run the command
> below from a ubuntu command line it works with no issues but if I add
> it to a bash script it breaks, any suggestions?
> sudo /usr/lib/rancid/bin/clogin -f /home/user/.cloginrc-firewall -c
> 'terminal pager 0; changeto context test; sh run; changeto context
> test1; changeto context test2; sh run; changeto context test3; exit'
> > /home/user/backups/firewall-test.cfg
> If anyone has any suggestions on creating a bash script with "clogin"
> I would appreciate the feedback because I have been racking my brain
> :-\  And I am by no means a linux guru so that is why I am struggling.
>  My goal is to back up (4) separate firewalls, (3) core switches and
> (6) routers while making it as simple as possible.

this is probably one of those boxes that gets confused by terminal types.
set TERM to something like vt100.

More information about the Rancid-discuss mailing list