[rancid] Re: using RANCID for mass configuration changes
asmirnoff at office.beeline.ru
Wed Sep 17 06:19:39 UTC 2008
Thanx a lot ! ;)
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
snmp-server host 126.96.36.199 public
$ clogin -x /tmp/commands route1 router2 router3
Caveats apply (beware of commands which may prompt you back, for
More information about the Rancid-discuss