Newbie Problem
Kevin O'Malley
scriptboy at finalstate.com
Mon Jan 5 23:15:29 UTC 2004
Greetings All,
I seem to be missing something basic with rancid 2.2.2 . I don't
seem to be saving the configurations.... Any
clogin and rancid seem to work fine. When I run do-diff however, I never
save a config file, or get a config.new file. Subsequent runs with small
changes to the router do not generate mail, because the checked in
config seems to be zero length. Putting a NOPIPE=YES; export NOPIPE
into the env file lets me see the .raw file get bigger with each
iteration of rancid... but I don't see the config changing anywhere or
being saved. The routername and routername.new are of zero length.
This is the log file from do-diffs ....
starting: Mon Jan 5 16:20:25 EST 2004
Trying to get all of the configs.
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
=====================================
Getting missed routers: round 1.
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
=====================================
Getting missed routers: round 2.
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
=====================================
Getting missed routers: round 3.
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
=====================================
Getting missed routers: round 4.
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
/usr/local/net/rancid/bin/rename: *.new: No such file or directory
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
ending: Mon Jan 5 16:23:18 EST 2004
From rancid
[rancid at localhost rancid]$ rancid -d -l ROUTERNAME
executing clogin -t 90 -c"show version;show install active;show env
all;show gsr chassis;show boot;show bootvar;show variables boot;show
flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all
disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all
disk2:;dir /all sup-bootflash:;dir /all sup-microcode:;show
controllers;show controllers cbus;show diagbus;show diag;show
module;show c7200;show vtp status;show vlan;write term" ROUTERNAME
executing clogin -t 90 -c"show version;show install active;show env
all;show gsr chassis;show boot;show bootvar;show variables boot;show
flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all
disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all
disk2:;dir /all sup-bootflash:;dir /all sup-microcode:;show
controllers;show controllers cbus;show diagbus;show diag;show
module;show c7200;show vtp status;show vlan;write term" ROUTERNAME
HIT COMMAND:ROUTERNAME#show version
In ShowVersion: ROUTERNAME#show version
TYPE = 3660
HIT COMMAND:ROUTERNAME#show env all
In ShowEnv: ROUTERNAME#show env all
HIT COMMAND:ROUTERNAME#show gsr chassis
In ShowGSR: ROUTERNAME#show gsr chassis
HIT COMMAND:ROUTERNAME#show boot
In ShowBoot: ROUTERNAME#show boot
HIT COMMAND:ROUTERNAME#show bootvar
In ShowBoot: ROUTERNAME#show bootvar
HIT COMMAND:ROUTERNAME#show variables boot
In ShowBoot: ROUTERNAME#show variables boot
HIT COMMAND:ROUTERNAME#show flash
In ShowFlash: ROUTERNAME#show flash
HIT COMMAND:ROUTERNAME#dir /all nvram:
In DirSlotN: ROUTERNAME#dir /all nvram:
HIT COMMAND:ROUTERNAME#dir /all bootflash:
In DirSlotN: ROUTERNAME#dir /all bootflash:
HIT COMMAND:ROUTERNAME#dir /all slot0:
In DirSlotN: ROUTERNAME#dir /all slot0:
HIT COMMAND:ROUTERNAME#dir /all disk0:
In DirSlotN: ROUTERNAME#dir /all disk0:
HIT COMMAND:ROUTERNAME#dir /all slot1:
In DirSlotN: ROUTERNAME#dir /all slot1:
HIT COMMAND:ROUTERNAME#dir /all disk1:
In DirSlotN: ROUTERNAME#dir /all disk1:
HIT COMMAND:ROUTERNAME#dir /all slot2:
In DirSlotN: ROUTERNAME#dir /all slot2:
HIT COMMAND:ROUTERNAME#dir /all disk2:
In DirSlotN: ROUTERNAME#dir /all disk2:
HIT COMMAND:ROUTERNAME#dir /all sup-bootflash:
In DirSlotN: ROUTERNAME#dir /all sup-bootflash:
HIT COMMAND:ROUTERNAME#dir /all sup-microcode:
In DirSlotN: ROUTERNAME#dir /all sup-microcode:
HIT COMMAND:ROUTERNAME#show controllers
In ShowContAll: ROUTERNAME#show controllers
HIT COMMAND:ROUTERNAME#show diagbus
In ShowDiagbus: ROUTERNAME#show diagbus
HIT COMMAND:ROUTERNAME#show module
In ShowModule: ROUTERNAME#show module
HIT COMMAND:ROUTERNAME#show c7200
In ShowC7200: ROUTERNAME#show c7200
HIT COMMAND:ROUTERNAME#show vtp status
In ShowVTP: ROUTERNAME#show vtp status
HIT COMMAND:ROUTERNAME#show vlan
In ShowVLAN: ROUTERNAME#show vlan
HIT COMMAND:ROUTERNAME#write term
In WriteTerm: ROUTERNAME#write term
Done : ROUTERNAME#exit
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
ROUTERNAME: missed cmd(s): show diag,show install active,show
controllers cbus
Which looks good, and makes a .new file, but it still runs all 4 times.
I am looking at the rancid code but I fear I am not man enough. Any help
would be appriciated.
More information about the Rancid-discuss
mailing list