[rancid] Rancid does not recive configuration from cisco device
Serge Torop
serge.torop at gmail.com
Tue Nov 3 07:43:49 UTC 2015
Hello, all,
I have new installation of Rancid (v 3.1) on Centos 6 from rpm packet.
After rancid.conf (see below) has configured I run rancid-cvs, the output
is:
[rancid at blade11 ciscodev]$ /usr/libexec/rancid/rancid-cvs
Committed revision 1.
Checked out revision 1.
At revision 1.
A configs
Adding configs
Committed revision 2.
A router.db
Adding router.db
Transmitting file data .
Committed revision 3.
Committed revision 4.
Checked out revision 4.
At revision 4.
A configs
Adding configs
Committed revision 5.
A router.db
Adding router.db
Transmitting file data .
Committed revision 6.
Committed revision 7.
Checked out revision 7.
At revision 7.
A configs
Adding configs
Committed revision 8.
A router.db
Adding router.db
Transmitting file data .
Committed revision 9.
Then I have created /var/rancid/ciscodev/router.db
[rancid at blade11 ciscodev]$ cat /var/rancid/ciscodev/router.db
10.37.6.46:cisco:up
and run rancid-run (without any output messages), in log file I see:
[rancid at blade11 ciscodev]$ cat /var/log/rancid/ciscodev.20151102.170455
starting: Mon Nov 2 17:04:55 MSK 2015
property 'svn:ignore' set on '.'
At revision 9.
Sending .
Committed revision 10.
ending: Mon Nov 2 17:04:56 MSK 2015
and again:
starting: Mon Nov 2 17:18:08 MSK 2015
Sending router.db
Transmitting file data .
Committed revision 13.
ending: Mon Nov 2 17:18:09 MSK 2015
* I recived email with content:
Routers changed to down:
10.37.6.46:cisco:up
Added routers:
10.37.6.46:cisco:up
Everything is fine, but I don't see downloaded configuration files after
re-run rancid-run in each conf-directory
[rancid at blade11 ciscodev]$ ls -la /var/rancid/ciscodev/configs/
total 12
drwxr-x---. 3 rancid rancid 4096 Nov 2 17:02 .
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 ..
drwxr-x---. 6 rancid rancid 4096 Nov 2 17:04 .svn
Test commands:
clogin -t 90 -c "show version" -f /var/rancid/.cloginrc 10.37.6.46
and
rancid -t cisco -d 10.37.6.46
working fine (login is ok and configuration downloading from device
to 10.37.6.46.raw is ok).
Can you give me any suggestions what is wrong in my configuration and why i
do not see
original configuration from my cisco device?
Also some strange content of file /var/rancid/ciscodevs/routers.down:
10:37.6.46:cisco:up
Thank you in advance!
My configuration of rancid (i'm using the SVN):
/etc/rancid/rancid.conf:
TERM=network;export TERM
TMPDIR=/tmp; export TMPDIR
BASEDIR=/var/rancid; export BASEDIR
PATH=/usr/libexec/rancid:/usr/sbin:/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/bin;
export PATH
SENDMAIL="/usr/sbin/sendmail"
CVSROOT=$BASEDIR/SVN; export CVSROOT
LOGDIR=/var/log/rancid; export LOGDIR
RCSSYS=svn; export RCSSYS
NOPIPE=YES; export NOPIPE
FILTER_PWDS=NO; export FILTER_PWDS
NOCOMMSTR=NO; export NOCOMMSTR
MAX_ROUNDS=4; export MAX_ROUNDS
LIST_OF_GROUPS="ciscodev dlinkdev edgecoredev"
Working directory of rancid:
[rancid at blade11 rancid]$ ls -la
total 168
drwxr-x---. 9 rancid rancid 4096 Nov 2 17:02 .
drwxr-xr-x. 19 root root 4096 Oct 30 14:40 ..
-rw-rw-r--. 1 rancid rancid 20581 Nov 2 16:14 10.37.6.46.new
-rw-rw-r--. 1 rancid rancid 88221 Nov 2 16:14 10.37.6.46.raw
-rw-------. 1 rancid rancid 381 Oct 30 16:45 .bash_history
-rw-r--r--. 1 rancid rancid 18 Oct 16 2014 .bash_logout
-rw-r--r--. 1 rancid rancid 196 Oct 30 16:48 .bash_profile
-rw-r--r--. 1 rancid rancid 124 Oct 16 2014 .bashrc
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 ciscodev
-rw-r-----. 1 rancid rancid 95 Nov 2 17:00 .cloginrc
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 dlinkdev
drwxr-x---. 4 rancid rancid 4096 Nov 2 17:18 edgecoredev
drwxr-x---. 2 rancid rancid 4096 Oct 30 15:08 logs
drwx------. 2 rancid rancid 4096 Oct 30 14:56 .ssh
drwxr-x---. 3 rancid rancid 4096 Nov 2 17:02 .subversion
drwxr-x---. 6 rancid rancid 4096 Nov 2 17:02 SVN
--
Serge P. Torop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20151103/e7d72f4a/attachment.html>
More information about the Rancid-discuss
mailing list