[rancid] Re: using RANCID for mass configuration changes

Smirnoff Alexander asmirnoff at office.beeline.ru
Wed Sep 17 06:19:39 UTC 2008


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 1.1.1.1 public; end; wr mem'
router1 router2 router3

 Or put the commands in a file:

    $ cat /tmp/commands
    conf t
    snmp-server host 1.1.1.1 public
    end
    wr mem

    $ clogin -x /tmp/commands route1 router2 router3

 Caveats apply (beware of commands which may prompt you back, for
example).

-- 
Dan


More information about the Rancid-discuss mailing list