John A. Kilpatrick | 3 Dec 00:55 2008
Picon

[rancid] Setting up rancid with a corp svn server?


My boss wants me to have rancid use our corporate svn server.  Shouldn't 
be a problem right? :)

So I went and made /data/rancid as the base dir.  I checked out the tree 
using svn co https://svn.foo.com/svn/is-ops is-ops and got the tree we 
use.

I have the basedir set to /data/rancid and I have CVSROOT set to 
/data//rancid/is-ops/trunk/doc/network/Configs which is where I'd like the 
files to go.

Then I ran rancid-cvs and got:

rancid <at> ntop /data/rancid $ rancid-cvs
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 
'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 
'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
svn: '/data/rancid/prod/configs' is not a working copy
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
svn: '/data/rancid/prod' is not a working copy
svn: Can't open file '/data/rancid/prod/.svn/entries': No such file or 
directory
svn: Unable to open an ra_local session to URL
(Continue reading)

Srinivasa Raju | 3 Dec 08:18 2008
Picon

[rancid] nlogin error

I'm new to Rancid, I'm trying to backup configs of netscreen firewall using Rancid. I'm successful at times but Rancid fails to pick configs on few runs.


I see the following error
"nlogin error: Error: TIMEOUT reached"

Any idea??

Thanks
Raju



--
"Every man should get married some time; after all, happiness is not the only thing in life!!"
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Nimal David Sirimanne | 3 Dec 11:07 2008
Picon

[rancid] rancid doesnt log changes and receiving duplicate rancid emails

Hi there,

I recently took over management of network for my company. Now the 
previous guy had a rancid running, and it was running fine until about 
end of October.

Whatever changes made to the network devices after that, was not 
captured by rancid, and no email notification. I read through some 
documentation on rancid, and even tested the rancid to see if there was 
any problem with it logging on to the devices using the commands "sudo 
/usr/local/rancid/bin/clogin -f /usr/local/rancid/.cloginrc -u 
ranciduser x.x.x.x". It worked like a charm...no hiccups.

Looking through the system, i noticed that the /var/spool/mqueue and 
/var/spool/clientmqueue was filled with messages. Sendmail was stuck. 
Somehow a server restart fixed that...and now i'm receiving rancid 
emails on an hourly basis.

However, the emails i receive are all duplicates. Even if i make a lot 
of configuration (minor stuff like creating username, removing 
usernames) but these changes arent reflected in the hourly emails. Even 
when if i add a new network device, a new CVS entry gets created, but 
any subsequent change to this network device, does not result in any 
change to the CVS entry.

I'm stumped...any pointers on what i can check? Do let me know if you 
need more details. Thanks guys!

Nimal D. Sirimanne
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

john heasley | 3 Dec 21:43 2008
Picon

[rancid] Re: control characters appearing and disappearing from saved configs

Please try ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.2a9.tar.gz.  There
are a few new things in there that still need some work (and other not yet
committed), but it should fix this problem.

Sat, Nov 22, 2008 at 11:19:58AM -0800, john heasley:
> I think I've fixed this problem already; I'll give you an image in a later
> email.
> 
> Sat, Nov 22, 2008 at 09:20:49AM -0800, Drop Box:
> > Hi,
> > 
> > After adding a lot of lines to our HP switch configurations, I'm now seeing
> > rancid diffs like the one below one or two dozen times a day, on various
> > switches:
> > 
> > -----------------------------------------------------------------------------------------
> > 
> > - -- configs/switch.example.com.    (revision 103454)
> >  <at>  <at>  -47,7 +47,7  <at>  <at> 
> >      ip address dhcp-bootp
> >      exit
> >   ip authorized-managers a.b.c.d 255.0.0.0
> > - ip authorized-managers w.x.y.z 255.255.248.0
> > + ip authorized-managers w.x.y.z 255.255.248.0
> > [...]
> > 
> > -----------------------------------------------------------------------------------------
> > 
> > - -- configs/switchexample.com.    (revision 103525)
> >  <at>  <at>  -47,7 +47,7  <at>  <at> 
> >      ip address dhcp-bootp
> >      exit
> >   ip authorized-managers a.b.c.d 255.0.0.0
> > - ip authorized-managers w.x.y.z 255.255.248.0
> > + ip authorized-managers w.x.y.z 255.255.248.0
> > [...]
> > 
> > -----------------------------------------------------------------------------------------
> > 
> > The various configs I see this for have slight variations in length, but the
> > control character appears and disappears on the same line ("ip
> > authorized-managers w.x.y.z 255.255.248.0"), so it's not that the problem
> > always appears at line N.  I've checked out an "offending" revision and
> > verified that the control character is there.  I ran hrancid by hand maybe
> > 20 times, and the control character showed up twice.
> > 
> > Does anyone have any ideas why this might be happening?  I'm using rancid
> > 2.3.2a6 with expect 5.42.1.
> > 
> > Thanks.
> 
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss <at> shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

john heasley | 4 Dec 00:30 2008
Picon

[rancid] Re: Setting up rancid with a corp svn server?

Tue, Dec 02, 2008 at 03:55:03PM -0800, John A. Kilpatrick:
> 
> 
> My boss wants me to have rancid use our corporate svn server.  Shouldn't 
> be a problem right? :)
> 
> So I went and made /data/rancid as the base dir.  I checked out the tree 
> using svn co https://svn.foo.com/svn/is-ops is-ops and got the tree we 
> use.
> 
> I have the basedir set to /data/rancid and I have CVSROOT set to 
> /data//rancid/is-ops/trunk/doc/network/Configs which is where I'd like the 
> files to go.
> 
> Then I ran rancid-cvs and got:
> 
> rancid <at> ntop /data/rancid $ rancid-cvs
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 
> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 
> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'

rancid-cvs assume that CVSROOT (from rancid.conf) is local and is a
path not a URL and in some cases svn wants a path and in others a
URL.

To support this, i think CVSROOT would have to become a url.

> svn: '.' is not a working copy
> svn: Can't open file '.svn/entries': No such file or directory
> svn: '/data/rancid/prod/configs' is not a working copy
> svn: '.' is not a working copy
> svn: Can't open file '.svn/entries': No such file or directory
> svn: '/data/rancid/prod' is not a working copy
> svn: Can't open file '/data/rancid/prod/.svn/entries': No such file or 
> directory
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 
> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/corp'
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 
> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/corp'
> svn: '.' is not a working copy
> svn: Can't open file '.svn/entries': No such file or directory
> svn: '/data/rancid/corp/configs' is not a working copy
> svn: '.' is not a working copy
> svn: Can't open file '.svn/entries': No such file or directory
> svn: '/data/rancid/corp' is not a working copy
> svn: Can't open file '/data/rancid/corp/.svn/entries': No such file or 
> directory
> 
> I'll be honest, I'm not an svn guru nor am I rancid guru - rancid always 
> falls under the "just works" category for me.  If someone can point out 
> what I'm doing wrong I'd appreciate it.  Should the CVS basedir be a URL?
> 
> Thanks,
> John
> 
> -- 
>                                 John A. Kilpatrick
> john <at> hypergeek.net                Email|     http://www.hypergeek.net/
> john-page <at> hypergeek.net      Text pages|          ICQ: 19147504
>                   remember:  no obstacles/only challenges
> 
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Peter Serwe | 4 Dec 01:20 2008
Picon

[rancid] Re: Setting up rancid with a corp svn server?

Wouldn't you then have to change how rancid-cvs handles that variable?

It would seem that you would have to figure out how to tell rancid that the repo
was already created and how to reference it.  The thing is, you can't
write files directly
to the remote repo, you have to work off a checked out version of it.
Rancid basically does
this already, and for all intents and purposes, once the repo(s) are
properly created, you
should be able to do svn ci all you want in the checked out directory
like rancid does already.

Maybe there's a way to create the directories local with rancid-cvs
and then swap in the remote
repo after the fact, by removing the directories, checking out the
remote repo into the same directory
names, and then run rancid.

It would seem like that could work.

Peter

On Wed, Dec 3, 2008 at 3:30 PM, john heasley <heas <at> shrubbery.net> wrote:
> Tue, Dec 02, 2008 at 03:55:03PM -0800, John A. Kilpatrick:
>>
>>
>> My boss wants me to have rancid use our corporate svn server.  Shouldn't
>> be a problem right? :)
>>
>> So I went and made /data/rancid as the base dir.  I checked out the tree
>> using svn co https://svn.foo.com/svn/is-ops is-ops and got the tree we
>> use.
>>
>> I have the basedir set to /data/rancid and I have CVSROOT set to
>> /data//rancid/is-ops/trunk/doc/network/Configs which is where I'd like the
>> files to go.
>>
>> Then I ran rancid-cvs and got:
>>
>> rancid <at> ntop /data/rancid $ rancid-cvs
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository
>> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository
>> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/prod'
>
> rancid-cvs assume that CVSROOT (from rancid.conf) is local and is a
> path not a URL and in some cases svn wants a path and in others a
> URL.
>
> To support this, i think CVSROOT would have to become a url.
>
>> svn: '.' is not a working copy
>> svn: Can't open file '.svn/entries': No such file or directory
>> svn: '/data/rancid/prod/configs' is not a working copy
>> svn: '.' is not a working copy
>> svn: Can't open file '.svn/entries': No such file or directory
>> svn: '/data/rancid/prod' is not a working copy
>> svn: Can't open file '/data/rancid/prod/.svn/entries': No such file or
>> directory
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository
>> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/corp'
>> svn: Unable to open an ra_local session to URL
>> svn: Unable to open repository
>> 'file:///data/rancid/is-ops/trunk/doc/network/Configs/corp'
>> svn: '.' is not a working copy
>> svn: Can't open file '.svn/entries': No such file or directory
>> svn: '/data/rancid/corp/configs' is not a working copy
>> svn: '.' is not a working copy
>> svn: Can't open file '.svn/entries': No such file or directory
>> svn: '/data/rancid/corp' is not a working copy
>> svn: Can't open file '/data/rancid/corp/.svn/entries': No such file or
>> directory
>>
>> I'll be honest, I'm not an svn guru nor am I rancid guru - rancid always
>> falls under the "just works" category for me.  If someone can point out
>> what I'm doing wrong I'd appreciate it.  Should the CVS basedir be a URL?
>>
>> Thanks,
>> John
>>
>> --
>>                                 John A. Kilpatrick
>> john <at> hypergeek.net                Email|     http://www.hypergeek.net/
>> john-page <at> hypergeek.net      Text pages|          ICQ: 19147504
>>                   remember:  no obstacles/only challenges
>>
>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss <at> shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

--

-- 
ピーター
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

John A. Kilpatrick | 4 Dec 02:47 2008
Picon

[rancid] Re: Setting up rancid with a corp svn server?

On Wed, 3 Dec 2008, john heasley wrote:

> rancid-cvs assume that CVSROOT (from rancid.conf) is local and is a
> path not a URL and in some cases svn wants a path and in others a
> URL.
>
> To support this, i think CVSROOT would have to become a url.

Yeah, I may have to hack that manually, given that in racid-cvs, for 
example, $CVSROOT is prefaces by file://

--

-- 
                                John A. Kilpatrick
john <at> hypergeek.net                Email|     http://www.hypergeek.net/
john-page <at> hypergeek.net      Text pages|          ICQ: 19147504
                  remember:  no obstacles/only challenges

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Peter Serwe | 4 Dec 03:01 2008
Picon

[rancid] Re: Setting up rancid with a corp svn server?

Interesting.

So, if it were to be a pretty clean hack, i.e.:  Something that could
be committed to the source tree,
perhaps we should have another variable like CVSMETHOD where we could
put in https, ssh, or file
and have it populate another variable based on that input.

I'm assuming from the earlier part of the thread, you're planning to
use https, IIRC.

Peter

On Wed, Dec 3, 2008 at 5:47 PM, John A. Kilpatrick <john <at> hypergeek.net> wrote:
> On Wed, 3 Dec 2008, john heasley wrote:
>
>> rancid-cvs assume that CVSROOT (from rancid.conf) is local and is a
>> path not a URL and in some cases svn wants a path and in others a
>> URL.
>>
>> To support this, i think CVSROOT would have to become a url.
>
> Yeah, I may have to hack that manually, given that in racid-cvs, for
> example, $CVSROOT is prefaces by file://
>
>
> --
>                                John A. Kilpatrick
> john <at> hypergeek.net                Email|     http://www.hypergeek.net/
> john-page <at> hypergeek.net      Text pages|          ICQ: 19147504
>                  remember:  no obstacles/only challenges
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

--

-- 
ピーター
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Eric Cables | 4 Dec 03:10 2008
Picon

[rancid] Re: FreeBSD 7.0 + Expect 5.43.0 -- Do I need to patch expect?

This problem has made a resurgence this week, crashing out every night and sending the CPU on the box that RANCID runs on sky high.  I end up killing the hung expect processes manually, but instead of staying constant it appears to be getting worse (dang growing environments).

Any suggestions are welcome...

-- Eric Cables


On Mon, Nov 24, 2008 at 10:11 AM, Russell Jackson <raj <at> csub.edu> wrote:
Eric Cables wrote:
> I've been running into this problem quite frequently, about once a week or
> so rancid will hang for no apparent reason, and until I kill the process it
> will remain hung.  I've read in the archives that Linux & Solaris have a
> problem with expect that requires a patch, but does this also include
> FreeBSD?
>

I've been running rancid on FreeBSD 6.2 without issue for some time. I haven't had any
hangs with respect to expect. I haven't tried it on FreeBSD 7.0 yet.


$ uname -a
FreeBSD svn.csub.edu 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jul 13 19:38:42 PDT 2000
rjackson3 <at> thor.csub.edu:/usr/obj/usr/src/sys/THOR  i386


$ pkg_info | egrep 'tcl|rancid'
expect-nox11-5.44.1.7 A sophisticated scripter based on tcl/tk
rancid-local-2.3.2a7_1 Really Awesome New Cisco confIg Differ
tcl-8.4.19,1        Tool Command Language


I'm running a locally patched version of the rancid port to silence cisco diff noise (STP
costs et al).

$ diff -ur net-mgmt/rancid-devel local/rancid
Only in local/rancid: .svn
diff -ur net-mgmt/rancid-devel/Makefile local/rancid/Makefile
--- net-mgmt/rancid-devel/Makefile      Mon Dec 31 06:28:08 2007
+++ local/rancid/Makefile       Mon Feb 25 15:56:16 2008
<at> <at> -10,7 +10,6 <at> <at>
 PORTREVISION=  1
 CATEGORIES=    net-mgmt
 MASTER_SITES=  ftp://ftp.shrubbery.net/pub/rancid/
-PKGNAMESUFFIX=
-devel

 MAINTAINER=    janos.mohacsi <at> bsd.hu
 COMMENT=       Really Awesome New Cisco confIg Differ
Only in local/rancid/files: .svn
Only in local/rancid/files: patch-bin::cat5rancid.in
Only in local/rancid/files: patch-bin::clogin.in
Only in local/rancid/files: patch-bin::rancid.in
Only in local/rancid: pkg-message


--
Russell A. Jackson <raj <at> csub.edu>
Network Analyst
California State University, Bakersfield

The greatest productive force is human selfishness.
               -- Robert Heinlein


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Eric Cables | 4 Dec 03:25 2008
Picon

[rancid] Re: FreeBSD 7.0 + Expect 5.43.0 -- Do I need to patch expect?

Would upgrading to tcl8.5 be a potential solution?  Reading through the old expect threads it indicated that the problem may be with Tcl itself.  Right now the system is running tcl-8.4.19.

-- Eric Cables


On Wed, Dec 3, 2008 at 6:10 PM, Eric Cables <ecables <at> gmail.com> wrote:
This problem has made a resurgence this week, crashing out every night and sending the CPU on the box that RANCID runs on sky high.  I end up killing the hung expect processes manually, but instead of staying constant it appears to be getting worse (dang growing environments).

Any suggestions are welcome...

-- Eric Cables


On Mon, Nov 24, 2008 at 10:11 AM, Russell Jackson <raj <at> csub.edu> wrote:
Eric Cables wrote:
> I've been running into this problem quite frequently, about once a week or
> so rancid will hang for no apparent reason, and until I kill the process it
> will remain hung.  I've read in the archives that Linux & Solaris have a
> problem with expect that requires a patch, but does this also include
> FreeBSD?
>

I've been running rancid on FreeBSD 6.2 without issue for some time. I haven't had any
hangs with respect to expect. I haven't tried it on FreeBSD 7.0 yet.


$ uname -a
FreeBSD svn.csub.edu 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jul 13 19:38:42 PDT 2000
rjackson3 <at> thor.csub.edu:/usr/obj/usr/src/sys/THOR  i386


$ pkg_info | egrep 'tcl|rancid'
expect-nox11-5.44.1.7 A sophisticated scripter based on tcl/tk
rancid-local-2.3.2a7_1 Really Awesome New Cisco confIg Differ
tcl-8.4.19,1        Tool Command Language


I'm running a locally patched version of the rancid port to silence cisco diff noise (STP
costs et al).

$ diff -ur net-mgmt/rancid-devel local/rancid
Only in local/rancid: .svn
diff -ur net-mgmt/rancid-devel/Makefile local/rancid/Makefile
--- net-mgmt/rancid-devel/Makefile      Mon Dec 31 06:28:08 2007
+++ local/rancid/Makefile       Mon Feb 25 15:56:16 2008
<at> <at> -10,7 +10,6 <at> <at>
 PORTREVISION=  1
 CATEGORIES=    net-mgmt
 MASTER_SITES=  ftp://ftp.shrubbery.net/pub/rancid/
-PKGNAMESUFFIX=
-devel

 MAINTAINER=    janos.mohacsi <at> bsd.hu
 COMMENT=       Really Awesome New Cisco confIg Differ
Only in local/rancid/files: .svn
Only in local/rancid/files: patch-bin::cat5rancid.in
Only in local/rancid/files: patch-bin::clogin.in
Only in local/rancid/files: patch-bin::rancid.in
Only in local/rancid: pkg-message


--
Russell A. Jackson <raj <at> csub.edu>
Network Analyst
California State University, Bakersfield

The greatest productive force is human selfishness.
               -- Robert Heinlein


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Gmane