[rancid] Re: using RANCID for mass configuration changes
peter.serwe at gmail.com
Sat Nov 8 00:48:02 UTC 2008
Wow.. I must say that script is far less dirty than the script I did
which just has me set the group (rancid-group)
of routers, and then push changes out via command files tailored to
the group of routers (group actually being
roughly equivalent to manufacturer and type).
I used the script to quickly demo that functionality at a presentation
I gave on RANCID last night..
On Tue, Sep 16, 2008 at 10:19 PM, Smirnoff Alexander
<asmirnoff at office.beeline.ru> wrote:
> Thanx a lot ! ;)
> -----Original Message-----
> From: Daniel Medina [mailto:daniel.medina at gmail.com]
> Sent: Tuesday, September 16, 2008 8:32 PM
> To: Smirnoff Alexander
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] using RANCID for mass configuration changes
> On Tue, Sep 16, 2008 at 10:29:03AM +0400, Smirnoff Alexander wrote:
>> I want to use RANCID for mass configuration changing on routers, like
>> set snmp or syslog server address.
>> What best place in RANCID scripts for this commands ?
> You could just use clogin.
> As a one-liner:
> $ clogin -c 'conf t; snmp-server host 22.214.171.124 public; end; wr mem'
> router1 router2 router3
> Or put the commands in a file:
> $ cat /tmp/commands
> conf t
> snmp-server host 126.96.36.199 public
> wr mem
> $ clogin -x /tmp/commands route1 router2 router3
> Caveats apply (beware of commands which may prompt you back, for
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
More information about the Rancid-discuss