From arjan at helix-nebula.org Tue Aug 3 05:48:48 2010 From: arjan at helix-nebula.org (Arjan Oosting) Date: Tue, 03 Aug 2010 07:48:48 +0200 Subject: [rancid] Re: Motorola BSR64000 In-Reply-To: <20100730212212.GG15722@shrubbery.net> References: <1280241137.23196.67.camel@reddwarf> <1280303480.11035.1.camel@brigand.as9143.internal> <20100730212212.GG15722@shrubbery.net> Message-ID: <1280814528.3081.1.camel@reddwarf> Op vrijdag 30-07-2010 om 21:22 uur [tijdzone +0000], schreef john heasley: > Wed, Jul 28, 2010 at 09:51:20AM +0200, Arjan Oosting: > > Op dinsdag 27-07-2010 om 23:09 uur [tijdzone -0500], schreef Frank Bulk: > > > Thanks for developing that. I also made some changes -- would you like to see my complete motorancid? > > > > > > Frank > > > > Sure, > > > > Please send it. > > > > Please verify that Frank's scripts work for you. I will try to verify the scripts tomorrow. Greetings Arjan From ekirkland at bebe.com Tue Aug 3 22:15:31 2010 From: ekirkland at bebe.com (Earle Kirkland) Date: Tue, 3 Aug 2010 15:15:31 -0700 Subject: [rancid] Dell Blade Enclosure switches Message-ID: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09710@mail4-sf.sf.bebe.com> Has anyone gotten Rancid to work with Dell Blade Enclosure switches? I am new to RANCID...great tool and have been searching elsewhere. Have seen the discussion thread regarding other Dell switches and have downloaded the tarball that includes dlogin and drancid. I still get the dreaded "End of run not found", the login is apparently successful but the incorrect commands are being issued. Any assistance for the newb will be appreciated. Regards, Earle W. Kirkland Jr.|Sr. Systems Administrator|* ekirkland at bebe.com - Factum Non Verbum - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100803/b3cbcdf8/attachment.html From melchandler at firstam.com Tue Aug 3 22:41:47 2010 From: melchandler at firstam.com (Chandler, Mel) Date: Tue, 3 Aug 2010 15:41:47 -0700 Subject: [rancid] Re: Dell Blade Enclosure switches In-Reply-To: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09710@mail4-sf.sf.bebe.com> References: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09710@mail4-sf.sf.bebe.com> Message-ID: I think they have Cisco IOS installed, do a show version to confirm. I treat mine like Cisco switches and they work fine. Chandler Bing From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Earle Kirkland Sent: Tuesday, August 03, 2010 3:16 PM To: 'rancid-discuss at shrubbery.net' Subject: [rancid] Dell Blade Enclosure switches Has anyone gotten Rancid to work with Dell Blade Enclosure switches? I am new to RANCID...great tool and have been searching elsewhere. Have seen the discussion thread regarding other Dell switches and have downloaded the tarball that includes dlogin and drancid. I still get the dreaded "End of run not found", the login is apparently successful but the incorrect commands are being issued. Any assistance for the newb will be appreciated. Regards, Earle W. Kirkland Jr.|Sr. Systems Administrator|* ekirkland at bebe.com - Factum Non Verbum -
******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

Thank you.
******************************************************************************************
FACLD ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100803/0c46230d/attachment.html 

From arjan at helix-nebula.org  Wed Aug  4 11:58:46 2010
From: arjan at helix-nebula.org (Arjan Oosting)
Date: Wed, 04 Aug 2010 13:58:46 +0200
Subject: [rancid]  Casa 3200 CMTS
Message-ID: <1280923126.6076.12.camel@brigand.as9143.internal>

Hi,

Does anyone have RANCID scripts for the Casa 3200 CMTS?

Greetings Arjan 


From 4ux6as402 at sneakemail.com  Wed Aug  4 16:20:39 2010
From: 4ux6as402 at sneakemail.com (=?UTF-8?B?IlBldGVyIFZhbGRlbWFyIE3DuHJjaCAoTGlzdHMpIg==?=)
Date: Wed, 04 Aug 2010 18:20:39 +0200
Subject: [rancid]  Menu-only and/or TFTP-only equipment
Message-ID: <4C599357.1000604@sneakemail.com>

I'm evaluating Rancid's suitability for our purposes and have a few 
questions:

Some equipment (e.g. some HP equipment as far as I remember and 
definitely some Nortel/BayStack equipment) only supports ncurses menus 
where one has to send arrow-up, arrow-down, "Enter" etc and sift through 
the ncurses output.

We're ok to expand RANCID's functionality (and send patches back! :-) 
but we need menu navigation to be possible. Are there any of the 
existing equipment types that succesfully navigate a menu?

It doesn't look to me like RANCID's split into a Tcl/expect based *login 
and a perl based *rancid is well suited for scripting this sort of 
interaction. (In fact hpuifilter seems to have been written exactly to 
avoid this nastiness)

Also, we have some equipment that only supports getting the 
configuration via a TFTP server:
* Telnet to equipment
* Navigate through menus to send config to TFTP server
* exit telnet
* Retreive info via TFTP
Has anybody succesfully needed/done that?

Peter
-- 
Peter Valdemar M?rch
http://www.morch.com

From 4ux6as402 at sneakemail.com  Wed Aug  4 16:22:17 2010
From: 4ux6as402 at sneakemail.com (=?UTF-8?B?IlBldGVyIFZhbGRlbWFyIE3DuHJjaCAoTGlzdHMpIg==?=)
Date: Wed, 04 Aug 2010 18:22:17 +0200
Subject: [rancid]  Access to source control (CVS?) repository
Message-ID: <4C5993B9.3090003@sneakemail.com>

It looks like this project uses CVS. Is there access to the repository 
from the outside? Or is the code only visible through the .tar.gz files 
at each release?

Peter
-- 
Peter Valdemar M?rch
http://www.morch.com

From 4ux6as402 at sneakemail.com  Wed Aug  4 17:13:59 2010
From: 4ux6as402 at sneakemail.com (=?UTF-8?B?IlBldGVyIFZhbGRlbWFyIE3DuHJjaCAoTGlzdHMpIg==?=)
Date: Wed, 04 Aug 2010 19:13:59 +0200
Subject: [rancid] RCSSYS=svn error: svn: Directory  is out of date
	(incl. patch)
Message-ID: <4C599FD7.9040000@sneakemail.com>

When I try to use the svn RCSSYS I get this error in the log file on the 
rancid in debian stable, rancid-core 2.3.2~a8-4, when running rancid-run 
for the first time:

> All routers sucessfully completed.
>
> Sending        .
> svn: Commit failed (details follow):
> svn: Directory '/cmhosts' is out of date

Similar questions were posted here:
http://www.shrubbery.net/pipermail/rancid-discuss/2007-February/002037.html
http://www.shrubbery.net/pipermail/rancid-discuss/2006-June/001568.html
http://www.shrubbery.net/pipermail/rancid-discuss/2009-October/thread.html#4306
http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004621.html
with no answers, except:

> Someone or something must be mucking with your respository.  I'd suggest
> that you change the ownership & permissions of the files and directories
> where your repository lies such that no other can alter them.

No, that is not the case... Nobody else is mucking with it, I promise.

Running with CVS and there are no problems. I've looked in the changelog 
for 2.3.3 and 2.3.4 and subversion/svn is not mentioned.

Does svn work for anybody else?

Is there a bug here?

Has this been fixed in 2.3.4? Would it help to upgrade to 2.3.4 (I'd 
rather keep all my /usr controlled with debian packages unless I have to 
manually install...)

I've tried to install the patch in 
http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001679.html (which 
isn't applied to 2.3.4 either) but it doesn't completely fix the issue. 
Is there any reason why this patch wasn't applied or even commented on? 
The only reference I could find to it was in 
http://www.shrubbery.net/pipermail/rancid-discuss/2007-February/002046.html 
that says that it worked if I ran rancid-run twice. Which is true, it does.

This patch *does* fix it though. I'm just worried why nobody else is 
seeing this:

--- orig.control_rancid.in	2010-08-04 19:09:03.000000000 +0200
+++ control_rancid.in	2010-08-04 19:09:43.000000000 +0200
@@ -299,6 +299,13 @@
      cd $DIR

  fi
+
+# svn update to avoid 'Out of date' error
+if [ "$RCSSYS" = "svn" ]
+then
+    svn update
+fi
+
  mv -f routers.all.new routers.all
  if [ $? -ne 0 ] ; then
      echo "Error: could not rename routers.all.new"

Peter
-- 
Peter Valdemar M?rch
http://www.morch.com

From paleola at gmail.com  Thu Aug  5 09:24:02 2010
From: paleola at gmail.com (Aleksey P)
Date: Thu, 5 Aug 2010 13:24:02 +0400
Subject: [rancid]  Still not working RANCID (2.3.4) with Cisco w/o 'enable'
Message-ID: 

Good day, some weeks ago i have a problem that Racnid didn't work  if i only
have unprivelege mode on Cisco device (only > promt).
In 2.3.4 version there is changes that i want - "rancid: Accept '>' prompt,
rather than just '#'"

I am clear all my old Rancid file and configs and install 2.3.4 version, but
it still the same:
At the end of /usr/local/libexec/rancid/rancid file i commented all
commands, and insert instead "show running-config" - "show configuration"

OS - FreeBSD
Here some of config:
/usr/local/libexec/rancid]# vi /usr/local/etc/rancid/.cloginrc
*# THIS IS FOR CISCO
add noenable 172.16.2.3 1
#add autoenable 172.16.2.3 1
add user 172.16.2.3 username
add password 172.16.2.3 password
add method 172.16.2.3 ssh*

All work just fine - no enable promt - show configuration- that is all we
need:
*
 /usr/local/libexec/rancid/clogin -t 90 -c"show configuration" 172.16.2.3
172.16.2.3
spawn ssh -c 3des -x -l username 172.16.2.3
username at 172.16.2.3's password:*
...*
and here we can see all information from  'show **configuration**' command*


If i try run rancid-run in my logs i will see:
*Getting missed routers: round 2.
172.16.2.3: missed cmd(s): show **configuration*
*172.16.2.3: End of run not found
*
and so on.

If i make all of that with enable configuration (# promt) - all works fine.


Help me pls!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100805/7d7ff7e9/attachment.html 

From jj33 at pobox.com  Thu Aug  5 13:08:02 2010
From: jj33 at pobox.com (John Jetmore)
Date: Thu, 5 Aug 2010 09:08:02 -0400
Subject: [rancid] Re: Dell Blade Enclosure switches
In-Reply-To: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09710@mail4-sf.sf.bebe.com>
References: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09710@mail4-sf.sf.bebe.com>
Message-ID: 

2010/8/3 Earle Kirkland :
> Has anyone gotten Rancid to work with Dell Blade Enclosure switches?? I am
> new to RANCID?great tool and have been searching elsewhere.? Have seen the
> discussion thread regarding other Dell switches and have downloaded the
> tarball that includes dlogin and drancid.? I still get the dreaded ?End of
> run not found?, the login is apparently successful but the incorrect
> commands are being issued.

I'm using it with a set of M6220 blade switches.  It's working fine
for me.  I did also apply the patch at
http://www.rickyninja.net/rancid/patches/echo-newline-final-exit-3324.txt,
but I can't remember if that was needed for the M6220 because I'm also
using it on some old 3324s.

--John

From martikri at gmail.com  Thu Aug  5 10:58:06 2010
From: martikri at gmail.com (Martin Kristensen)
Date: Thu, 5 Aug 2010 12:58:06 +0200
Subject: [rancid]  viewvc premature end of script problem rancid
Message-ID: 

Hi
I used the RhysEvans guide to install rancid and everything seems to be
working except viewvc.
I used tortois to verify that the cvs is working, but I really want the
viewvc web interface to work too.

This is what I see in the apache error log:

[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback (most
recent call last):
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/var/www/cgi-bin/viewvc.cgi", line 60, in ?
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     cfg =
viewvc.load_config(CONF_
PATHNAME, server)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
parser.read(pathname)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/lib64/python2.4/ConfigParser.py", line 267, in read
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     self._read(fp,
filename)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     raise
MissingSectionHeaderError(fpname, lineno, line)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
ConfigParser.MissingSectionHeaderError: File contains no section headers.
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:
/usr/local/viewvc-1.0.12/viewvc.conf, line: 15
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '
\\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature end of
script headers: viewvc.cgi

I also get almost the same error message when I runcvsdbadmin rebuild
(point 29 in the guide) :

[root at rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin rebuild
/usr/local/rancid/var/CVS/CVSROOT

Using repository root `/usr/local/rancid/var/CVS'
Traceback (most recent call last):
  File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?
    cfg = viewvc.load_config(CONF_PATHNAME)
  File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in load_config
    cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
  File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in load_config
    self.parser.read(self.conf_path or [])
  File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70
'cvs_roots = cvs:\n'

Can anyone tell me what I'm doing wrong ?

Thanks!

-Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100805/cd2322d3/attachment.html 

From heas at shrubbery.net  Thu Aug  5 18:20:06 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 5 Aug 2010 18:20:06 +0000
Subject: [rancid] Re: viewvc premature end of script problem rancid
In-Reply-To: 
References: 
Message-ID: <20100805182006.GI19570@shrubbery.net>

Thu, Aug 05, 2010 at 12:58:06PM +0200, Martin Kristensen:
> Hi
> I used the RhysEvans guide to install rancid and everything seems to be
> working except viewvc.
> I used tortois to verify that the cvs is working, but I really want the
> viewvc web interface to work too.

i dont use it.  my guess is that you have a syntax error in that config
file.  i suspect it is just perl syntax and perl -c configfilename might
be a good way to verify the syntax of the file.

From heas at shrubbery.net  Thu Aug  5 18:43:16 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 5 Aug 2010 18:43:16 +0000
Subject: [rancid] Re: RCSSYS=svn error: svn: Directory  is out
	of	date (incl. patch)
In-Reply-To: <4C599FD7.9040000@sneakemail.com>
References: <4C599FD7.9040000@sneakemail.com>
Message-ID: <20100805184316.GL19570@shrubbery.net>

Wed, Aug 04, 2010 at 07:13:59PM +0200, "Peter Valdemar M?rch (Lists)":
> When I try to use the svn RCSSYS I get this error in the log file on the 
> rancid in debian stable, rancid-core 2.3.2~a8-4, when running rancid-run 
> for the first time:
> 
> > All routers sucessfully completed.
> >
> > Sending        .
> > svn: Commit failed (details follow):
> > svn: Directory '/cmhosts' is out of date
> 
> Similar questions were posted here:
> http://www.shrubbery.net/pipermail/rancid-discuss/2007-February/002037.html
> http://www.shrubbery.net/pipermail/rancid-discuss/2006-June/001568.html
> http://www.shrubbery.net/pipermail/rancid-discuss/2009-October/thread.html#4306
> http://www.shrubbery.net/pipermail/rancid-discuss/2010-February/004621.html
> with no answers, except:
> 
> > Someone or something must be mucking with your respository.  I'd suggest
> > that you change the ownership & permissions of the files and directories
> > where your repository lies such that no other can alter them.
> 
> No, that is not the case... Nobody else is mucking with it, I promise.
> 
> Running with CVS and there are no problems. I've looked in the changelog 
> for 2.3.3 and 2.3.4 and subversion/svn is not mentioned.
> 
> Does svn work for anybody else?
> 
> Is there a bug here?
> 
> Has this been fixed in 2.3.4? Would it help to upgrade to 2.3.4 (I'd 
> rather keep all my /usr controlled with debian packages unless I have to 
> manually install...)
> 
> I've tried to install the patch in 
> http://www.shrubbery.net/pipermail/rancid-discuss/2006-August/001679.html (which 

it should not be necessary to svn/cvs update prior to running rancid
for a group.  if the checkout in rancid's dir needs an update, then
someone other than rancid commited a change - or your machine crashed and
munged the fsys or your version of cvs/svn has a problem or someone killed
a cvs/svn process that rancid was running.  so, either someone is trying to
hide config changes or something is broken.

ie: we'd rather know that there is intereference or a problem than have
rancid run the update.  this has NEVER occured on my rancid boxes; I'm
using cvs primarily and have used svn for testing only.

the second part of that patch should also not be necessary; a) localhost
is not necessary, but the url should be file:///$CVSROOT/$GROUP, and b)
the update should not necessary unless something is broken.  I'd apply
either or both of these if I understood why either would be necessary.

> isn't applied to 2.3.4 either) but it doesn't completely fix the issue. 
> Is there any reason why this patch wasn't applied or even commented on? 
> The only reference I could find to it was in 
> http://www.shrubbery.net/pipermail/rancid-discuss/2007-February/002046.html 
> that says that it worked if I ran rancid-run twice. Which is true, it does.
> 
> This patch *does* fix it though. I'm just worried why nobody else is 
> seeing this:
> 
> --- orig.control_rancid.in	2010-08-04 19:09:03.000000000 +0200
> +++ control_rancid.in	2010-08-04 19:09:43.000000000 +0200
> @@ -299,6 +299,13 @@
>       cd $DIR
> 
>   fi
> +
> +# svn update to avoid 'Out of date' error
> +if [ "$RCSSYS" = "svn" ]
> +then
> +    svn update
> +fi
> +
>   mv -f routers.all.new routers.all
>   if [ $? -ne 0 ] ; then
>       echo "Error: could not rename routers.all.new"
> 
> Peter
> -- 
> Peter Valdemar M?rch
> http://www.morch.com
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

From rancid at gheek.net  Thu Aug  5 19:03:20 2010
From: rancid at gheek.net (Lance Vermilion)
Date: Thu, 5 Aug 2010 12:03:20 -0700
Subject: [rancid] Re: viewvc premature end of script problem rancid
In-Reply-To: 
References: 
Message-ID: 

Martin,

Can you post your viewvc.conf? and the directory listing of where your
rancid CVS is? that should make it easy to fix this issue...hopefully.

2010/8/5 Martin Kristensen :
> Hi
> I used the RhysEvans guide to install rancid and everything seems to be
> working except viewvc.
> I used tortois to verify that the cvs is working, but I really want the
> viewvc web interface to work too.
>
> This is what I see in the apache error log:
>
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback (most
> recent call last):
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]?? File
> "/var/www/cgi-bin/viewvc.cgi", line 60, in ?
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]???? cfg =
> viewvc.load_config(CONF_
> PATHNAME, server)
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]?? File
> "/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]?? File
> "/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> parser.read(pathname)
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]?? File
> "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]???? self._read(fp,
> filename)
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]?? File
> "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]???? raise
> MissingSectionHeaderError(fpname, lineno, line)
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> ConfigParser.MissingSectionHeaderError: File contains no section headers.
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:
> /usr/local/viewvc-1.0.12/viewvc.conf, line: 15
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '
> \\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'
> [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature end of
> script headers: viewvc.cgi
>
> I also get almost the same error message when I runcvsdbadmin rebuild
> (point 29 in the guide) :
>
> [root at rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin rebuild
> /usr/local/rancid/var/CVS/CVSROOT
>
> Using repository root `/usr/local/rancid/var/CVS'
> Traceback (most recent call last):
> ? File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?
> ??? cfg = viewvc.load_config(CONF_PATHNAME)
> ? File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in load_config
> ??? cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> ? File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in load_config
> ??? self.parser.read(self.conf_path or [])
> ? File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> ??? self._read(fp, filename)
> ? File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> ??? raise MissingSectionHeaderError(fpname, lineno, line)
> ConfigParser.MissingSectionHeaderError: File contains no section headers.
> file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70
> 'cvs_roots = cvs:\n'
>
> Can anyone tell me what I'm doing wrong ?
>
> Thanks!
>
> -Martin
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

From ekirkland at bebe.com  Thu Aug  5 23:37:10 2010
From: ekirkland at bebe.com (Earle Kirkland)
Date: Thu, 5 Aug 2010 16:37:10 -0700
Subject: [rancid]  Rancid and Riverbed WAN Accelerators
Message-ID: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09725@mail4-sf.sf.bebe.com>

I'm a RANCID newbie and have most of my devices working under RANCID.  I'm stuck on the riverbed steelhead appliance.  I have search the archives and found rblogin but am unsure how to incorporate it into RANCID.   Has anyone gotten the Riverbed WAN accelerators to work.  Help is greatly appreciated.

Regards,

Earle W. Kirkland Jr.|Sr. Systems Administrator|bebe Inc.| | * ekirkland at bebe.com
- Factum Non Verbum -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100805/07e25059/attachment.html 

From heas at shrubbery.net  Fri Aug  6 00:17:56 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 6 Aug 2010 00:17:56 +0000
Subject: [rancid] Re: Menu-only and/or TFTP-only equipment
In-Reply-To: <4C599357.1000604@sneakemail.com>
References: <4C599357.1000604@sneakemail.com>
Message-ID: <20100806001756.GU25984@shrubbery.net>

Wed, Aug 04, 2010 at 06:20:39PM +0200, "Peter Valdemar M?rch (Lists)":
> I'm evaluating Rancid's suitability for our purposes and have a few 
> questions:
> 
> Some equipment (e.g. some HP equipment as far as I remember and 
> definitely some Nortel/BayStack equipment) only supports ncurses menus 
> where one has to send arrow-up, arrow-down, "Enter" etc and sift through 
> the ncurses output.
> 
> We're ok to expand RANCID's functionality (and send patches back! :-) 
> but we need menu navigation to be possible. Are there any of the 
> existing equipment types that succesfully navigate a menu?

the screen manipulation stuff really creates some headaches.  the hp
procurves are a good example of that and is the reason for the hpuifilter
program that attempts to strip that junk.  hpuifilter MIGHT would work
for your device; it used for a few besides the procurves.

> It doesn't look to me like RANCID's split into a Tcl/expect based *login 
> and a perl based *rancid is well suited for scripting this sort of 
> interaction. (In fact hpuifilter seems to have been written exactly to 
> avoid this nastiness)

nothing prevents the perl side from calling the expect side multiple
times, though that takes wall-clock time.

> Also, we have some equipment that only supports getting the 
> configuration via a TFTP server:
> * Telnet to equipment
> * Navigate through menus to send config to TFTP server
> * exit telnet
> * Retreive info via TFTP
> Has anybody succesfully needed/done that?

no, but its not beyond possibility.  maybe add a tftpboot base dir
variable to rancid.conf, use a subdir of that to receive files
($tftp/rancid/$hostconf), parse the config from there.  or $tftp/rancid/
$rancidgroup/$hostconf to avoid locking/contention.

the perl side could recurse on itself; ie: if the -f option is not
supplied, collect the config to the tftp dir, just proceed as the
other rancid-perl scripts do - process the config.

there is certainly a degree of ugliness to this.

From heas at shrubbery.net  Fri Aug  6 00:20:50 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 6 Aug 2010 00:20:50 +0000
Subject: [rancid] Re: Access to source control (CVS?) repository
In-Reply-To: <4C5993B9.3090003@sneakemail.com>
References: <4C5993B9.3090003@sneakemail.com>
Message-ID: <20100806002050.GV25984@shrubbery.net>

Wed, Aug 04, 2010 at 06:22:17PM +0200, "Peter Valdemar M?rch (Lists)":
> It looks like this project uses CVS. Is there access to the repository 
> from the outside? Or is the code only visible through the .tar.gz files 
> at each release?

sorry, no.  we tend to get some proprietary/EFT-type information and other
sensistive info from time to time.  that often turns-up in the repository
as new scripts.

we do want to create a "contrib" dir and offer http access to it.  i just
havent gotten around to figuring-out how to do that with svn.

From wrjacqmein at gmail.com  Fri Aug  6 01:33:49 2010
From: wrjacqmein at gmail.com (Bill Jacqmein)
Date: Thu, 5 Aug 2010 21:33:49 -0400
Subject: [rancid] Re: Rancid and Riverbed WAN Accelerators
In-Reply-To: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09725@mail4-sf.sf.bebe.com>
References: <001A4B3282A7FA44ADC5FBAAB4727C3A0C1AB09725@mail4-sf.sf.bebe.com>
Message-ID: 

Earle,

       The following post provides the basics for any script:
http://www.shrubbery.net/pipermail/rancid-discuss/2009-April/003817.html

       rblogin from the achives covers step 1 and 2
       >> 3 -- Add your new device type to rancid-fe
       elsif ($vendor =~ /^riverbed$/i)		{ exec('rbrancid', $router); }

       >> 4 -- Setup the new devices in router.db using your new device type
       shaggie.shrubbery.net:riverbed:up

       Pretty much match was it already done and you should be pretty much set.

Thanks,

      Bill

2010/8/5 Earle Kirkland :
> I?m a RANCID newbie and have most of my devices working under RANCID.? I?m
> stuck on the riverbed steelhead appliance.? I have search the archives and
> found rblogin but am unsure how to incorporate it into RANCID.?? Has anyone
> gotten the Riverbed WAN accelerators to work.? Help is greatly appreciated.
>
>
>
> Regards,
>
>
>
> Earle W. Kirkland Jr.|Sr. Systems Administrator|bebe?Inc.| | *
> ekirkland at bebe.com
>
> - Factum Non Verbum -
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

From martikri at gmail.com  Fri Aug  6 06:30:08 2010
From: martikri at gmail.com (Martin Kristensen)
Date: Fri, 6 Aug 2010 08:30:08 +0200
Subject: [rancid] Re: viewvc premature end of script problem rancid
In-Reply-To: 
References: 
	
Message-ID: 

Thanks for your reply.
Here is what I've edited in viewvc.conf:

root_parents = /usr/local/rancid/var/CVS : cvs
rcs_path = /usr/local/bin/
address = IT Support
use_enscript = 1
enscript_path = /usr/bin/
use_highlight = 1
highlight_path = /usr/bin

[cvsdb]
enabled = 1
host = localhost
port = 3306
database_name = ViewVC
user = ***
passwd = ***
readonly_user = ***
readonly_passwd = ***
row_limit = 1000


-Martin

2010/8/5 Lance Vermilion 

> Martin,
>
> Can you post your viewvc.conf? and the directory listing of where your
> rancid CVS is? that should make it easy to fix this issue...hopefully.
>
> 2010/8/5 Martin Kristensen :
> > Hi
> > I used the RhysEvans guide to install rancid and everything seems to be
> > working except viewvc.
> > I used tortois to verify that the cvs is working, but I really want the
> > viewvc web interface to work too.
> >
> > This is what I see in the apache error log:
> >
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback (most
> > recent call last):
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> > "/var/www/cgi-bin/viewvc.cgi", line 60, in ?
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     cfg =
> > viewvc.load_config(CONF_
> > PATHNAME, server)
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> > "/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> > cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> > "/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> > parser.read(pathname)
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> > "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> self._read(fp,
> > filename)
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> > "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     raise
> > MissingSectionHeaderError(fpname, lineno, line)
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> > ConfigParser.MissingSectionHeaderError: File contains no section headers.
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:
> > /usr/local/viewvc-1.0.12/viewvc.conf, line: 15
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '
> > \\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'
> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature end
> of
> > script headers: viewvc.cgi
> >
> > I also get almost the same error message when I runcvsdbadmin rebuild
> > (point 29 in the guide) :
> >
> > [root at rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin
> rebuild
> > /usr/local/rancid/var/CVS/CVSROOT
> >
> > Using repository root `/usr/local/rancid/var/CVS'
> > Traceback (most recent call last):
> >   File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?
> >     cfg = viewvc.load_config(CONF_PATHNAME)
> >   File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in load_config
> >     cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> >   File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in load_config
> >     self.parser.read(self.conf_path or [])
> >   File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> >     self._read(fp, filename)
> >   File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> >     raise MissingSectionHeaderError(fpname, lineno, line)
> > ConfigParser.MissingSectionHeaderError: File contains no section headers.
> > file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70
> > 'cvs_roots = cvs:\n'
> >
> > Can anyone tell me what I'm doing wrong ?
> >
> > Thanks!
> >
> > -Martin
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100806/cc71d360/attachment.html 

From 4ux6as402 at sneakemail.com  Fri Aug  6 07:12:34 2010
From: 4ux6as402 at sneakemail.com (=?UTF-8?B?IlBldGVyIFZhbGRlbWFyIE3DuHJjaCAoTGlzdHMpIg==?=)
Date: Fri, 06 Aug 2010 09:12:34 +0200
Subject: [rancid] Re: RCSSYS=svn error: svn: Directory  is out
 of	date (incl. patch)
In-Reply-To: <20100805184316.GL19570@shrubbery.net>
References: <4C599FD7.9040000@sneakemail.com>
	<20100805184316.GL19570@shrubbery.net>
Message-ID: <4C5BB5E2.3090506@sneakemail.com>

On 2010-08-05 20:43, john heasley heas-at-shrubbery.net |Lists/Send to 
lists| wrote:
> it should not be necessary to svn/cvs update prior to running rancid
> for a group.  if the checkout in rancid's dir needs an update, then
> someone other than rancid commited a change

My bad: I tested it again. What I had done on all my previous attempts 
was that I modified router.db *and committed it*. If I just omitted the 
commit step, all went well:

> Trying to get all of the configs.
> All routers sucessfully completed.
>
> Sending        .
> Sending        configs/172.22.216.1
> Sending        configs/172.22.216.13
> Sending        router.db
> Transmitting file data ...
> Committed revision 6.
>
> ending: Fri Aug 6 08:59:33 CEST 2010

Sorry.

Peter
-- 
Peter Valdemar M?rch
http://www.morch.com

From mathiruban at gmail.com  Fri Aug  6 08:35:43 2010
From: mathiruban at gmail.com (Mathiruban Rajagopal)
Date: Fri, 6 Aug 2010 14:05:43 +0530
Subject: [rancid]  Cisco 12000 Series and RANCID
Message-ID: 

Hello,

Is any body added Cisco 12000 series in rancid?
Cisco IOS XR Software, Version 3.8.4[00]
Copyright (c) 2010 by Cisco Systems, Inc.

I have added in my NW, rancid doen't trap the configuration but have the
file in /user/local/rancid/var//config
Pls advise me.

Reds,

Mathy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100806/5bc1873f/attachment.html 

From rwest at zyedge.com  Fri Aug  6 12:58:55 2010
From: rwest at zyedge.com (Ryan West)
Date: Fri, 6 Aug 2010 12:58:55 +0000
Subject: [rancid] Re: Cisco 12000 Series and RANCID
In-Reply-To: 
References: 
Message-ID: <5DC4853C6CC3EE4788779E0726E034DD3AB91D@zy-ex1.zyedge.local>



From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mathiruban Rajagopal
Sent: Friday, August 06, 2010 4:36 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] Cisco 12000 Series and RANCID

Hello,

Is any body added Cisco 12000 series in rancid?
Cisco IOS XR Software, Version 3.8.4[00]
Copyright (c) 2010 by Cisco Systems, Inc.

I have added in my NW, rancid doen't trap the configuration but have the file in /user/local/rancid/var//config
Pls advise me.



2.3.4 split off IOS-XR into its own file.

xrrancid: disable timestamps - from Per Carlson
rancid: split IOS-XR into its own device type: cisco-xr
rancid: parse admin show diag for XR better with a separate function

http://www.shrubbery.net/rancid/CHANGES

-ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100806/0dfeae50/attachment.html 

From heas at shrubbery.net  Fri Aug  6 16:44:37 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 6 Aug 2010 16:44:37 +0000
Subject: [rancid] Re: RCSSYS=svn error: svn: Directory  is out
	of	date (incl. patch)
In-Reply-To: <4C5BB5E2.3090506@sneakemail.com>
References: <4C599FD7.9040000@sneakemail.com>
	<20100805184316.GL19570@shrubbery.net>
	<4C5BB5E2.3090506@sneakemail.com>
Message-ID: <20100806164437.GH18013@shrubbery.net>

Fri, Aug 06, 2010 at 09:12:34AM +0200, "Peter Valdemar M?rch (Lists)":
> On 2010-08-05 20:43, john heasley heas-at-shrubbery.net |Lists/Send to  
> lists| wrote:
>> it should not be necessary to svn/cvs update prior to running rancid
>> for a group.  if the checkout in rancid's dir needs an update, then
>> someone other than rancid commited a change
>
> My bad: I tested it again. What I had done on all my previous attempts  
> was that I modified router.db *and committed it*. If I just omitted the  
> commit step, all went well:

as long as it is owned by the user who runs rancid and the update was made
in the rancid group directory, the update should not be necessary.  but,
the update to router.db will not appear in the next rancid run if its
already been committed.

>> Trying to get all of the configs.
>> All routers sucessfully completed.
>>
>> Sending        .
>> Sending        configs/172.22.216.1
>> Sending        configs/172.22.216.13
>> Sending        router.db
>> Transmitting file data ...
>> Committed revision 6.
>>
>> ending: Fri Aug 6 08:59:33 CEST 2010
>
> Sorry.
>
> Peter
> -- 
> Peter Valdemar M?rch
> http://www.morch.com

From heas at shrubbery.net  Fri Aug  6 18:02:02 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 6 Aug 2010 18:02:02 +0000
Subject: [rancid] Re: Motorola BSR64000
In-Reply-To: <1280814528.3081.1.camel@reddwarf>
References: <1280241137.23196.67.camel@reddwarf>
	
	<1280303480.11035.1.camel@brigand.as9143.internal>
	<20100730212212.GG15722@shrubbery.net>
	<1280814528.3081.1.camel@reddwarf>
Message-ID: <20100806180202.GZ18013@shrubbery.net>

Tue, Aug 03, 2010 at 07:48:48AM +0200, Arjan Oosting:
> Op vrijdag 30-07-2010 om 21:22 uur [tijdzone +0000], schreef john
> heasley:
> > Wed, Jul 28, 2010 at 09:51:20AM +0200, Arjan Oosting:
> > > Op dinsdag 27-07-2010 om 23:09 uur [tijdzone -0500], schreef Frank Bulk:
> > > > Thanks for developing that.  I also made some changes -- would you like to see my complete motorancid?
> > > > 
> > > > Frank
> > > 
> > > Sure,
> > > 
> > > Please send it.
> > > 
> > 
> > Please verify that Frank's scripts work for you.
> 
> I will try to verify the scripts tomorrow.

verdict?

From mathiruban at gmail.com  Sat Aug  7 06:40:34 2010
From: mathiruban at gmail.com (Mathiruban Rajagopal)
Date: Sat, 7 Aug 2010 12:10:34 +0530
Subject: [rancid] Re: Cisco 12000 Series and RANCID
In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD3AB91D@zy-ex1.zyedge.local>
References: 
	<5DC4853C6CC3EE4788779E0726E034DD3AB91D@zy-ex1.zyedge.local>
Message-ID: 

Hello Ryan,

My OS is Fedora 9 and rancid version rancid-2.3.2, will this version work
with new Cisco ISO XR?
If not, pls tell me how to upgrade the rancid version, the server is inside
the firewall.

Thanks,

Mathy

On Fri, Aug 6, 2010 at 6:28 PM, Ryan West  wrote:

>
>
>
>
> *From:* rancid-discuss-bounces at shrubbery.net [mailto:
> rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Mathiruban Rajagopal
> *Sent:* Friday, August 06, 2010 4:36 AM
> *To:* rancid-discuss at shrubbery.net
> *Subject:* [rancid] Cisco 12000 Series and RANCID
>
>
>
> Hello,
>
> Is any body added Cisco 12000 series in rancid?
> Cisco IOS XR Software, Version 3.8.4[00]
> Copyright (c) 2010 by Cisco Systems, Inc.
>
> I have added in my NW, rancid doen't trap the configuration but have the
> file in /user/local/rancid/var//config
> Pls advise me.
>
>
>
>
> 2.3.4 split off IOS-XR into its own file.
>
>
>
> xrrancid: disable timestamps - from Per Carlson
>
> rancid: split IOS-XR into its own device type: cisco-xr
>
> rancid: parse admin show diag for XR better with a separate function
>
>
>
> http://www.shrubbery.net/rancid/CHANGES
>
>
>
> -ryan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100807/4bdeb334/attachment.html 

From martikri at gmail.com  Tue Aug 10 07:57:50 2010
From: martikri at gmail.com (Martin Kristensen)
Date: Tue, 10 Aug 2010 09:57:50 +0200
Subject: [rancid] viewvc premature end of script problem rancid
In-Reply-To: 
References: 
	
	
	
Message-ID: 

Most of the config was already commented out, but I overlooked the *
[general]* section in the viewvc config and placed the *cvs_roots = Rancid:
/usr/local/rancid/var/CVS* in the top of the config instead of in the
assigned section.
The [cvsdb] section was already commented out so that didn't have an impact
when I added my cvsdb info.
So now it actually works :-)

-Martin

2010/8/6 Lance Vermilion 

> Take a look at my attached document. It is not complete but is
> certainly a nice source of info. I know the document that you used to
> build your setup and mine is very similar but built entirely from a
> different set of info and I have expected output of directories/etc.
>
> For me personally I would attempt without MySQL to start.
>
> I don't use root_parents I use the following.
>
> cvs_roots = Rancid: /usr/local/rancid/var/CVS
> default_root = Rancid
>
> On Thu, Aug 5, 2010 at 11:30 PM, Martin Kristensen 
> wrote:
> > Thanks for your reply.
> > Here is what I've edited in viewvc.conf:
> >
> > root_parents = /usr/local/rancid/var/CVS : cvs
> > rcs_path = /usr/local/bin/
> > address = IT Support
> > use_enscript = 1
> > enscript_path = /usr/bin/
> > use_highlight = 1
> > highlight_path = /usr/bin
> >
> > [cvsdb]
> > enabled = 1
> > host = localhost
> > port = 3306
> > database_name = ViewVC
> > user = ***
> > passwd = ***
> > readonly_user = ***
> > readonly_passwd = ***
> > row_limit = 1000
> >
> >
> > -Martin
> >
> > 2010/8/5 Lance Vermilion 
> >>
> >> Martin,
> >>
> >> Can you post your viewvc.conf? and the directory listing of where your
> >> rancid CVS is? that should make it easy to fix this issue...hopefully.
> >>
> >> 2010/8/5 Martin Kristensen :
> >> > Hi
> >> > I used the RhysEvans guide to install rancid and everything seems to
> be
> >> > working except viewvc.
> >> > I used tortois to verify that the cvs is working, but I really want
> the
> >> > viewvc web interface to work too.
> >> >
> >> > This is what I see in the apache error log:
> >> >
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback
> >> > (most
> >> > recent call last):
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> >> > "/var/www/cgi-bin/viewvc.cgi", line 60, in ?
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     cfg =
> >> > viewvc.load_config(CONF_
> >> > PATHNAME, server)
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> >> > "/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> >> > cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> >> > "/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> >> > parser.read(pathname)
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> >> > "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> >> > self._read(fp,
> >> > filename)
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
> >> > "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     raise
> >> > MissingSectionHeaderError(fpname, lineno, line)
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
> >> > ConfigParser.MissingSectionHeaderError: File contains no section
> >> > headers.
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:
> >> > /usr/local/viewvc-1.0.12/viewvc.conf, line: 15
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '
> >> > \\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'
> >> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature
> end
> >> > of
> >> > script headers: viewvc.cgi
> >> >
> >> > I also get almost the same error message when I runcvsdbadmin rebuild
> >> > (point 29 in the guide) :
> >> >
> >> > [root at rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin
> >> > rebuild
> >> > /usr/local/rancid/var/CVS/CVSROOT
> >> >
> >> > Using repository root `/usr/local/rancid/var/CVS'
> >> > Traceback (most recent call last):
> >> >   File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?
> >> >     cfg = viewvc.load_config(CONF_PATHNAME)
> >> >   File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in
> >> > load_config
> >> >     cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
> >> >   File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in
> load_config
> >> >     self.parser.read(self.conf_path or [])
> >> >   File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
> >> >     self._read(fp, filename)
> >> >   File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
> >> >     raise MissingSectionHeaderError(fpname, lineno, line)
> >> > ConfigParser.MissingSectionHeaderError: File contains no section
> >> > headers.
> >> > file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70
> >> > 'cvs_roots = cvs:\n'
> >> >
> >> > Can anyone tell me what I'm doing wrong ?
> >> >
> >> > Thanks!
> >> >
> >> > -Martin
> >> > _______________________________________________
> >> > Rancid-discuss mailing list
> >> > Rancid-discuss at shrubbery.net
> >> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From George.Nussbaum at l-3com.com  Tue Aug 10 15:23:28 2010
From: George.Nussbaum at l-3com.com (George.Nussbaum at l-3com.com)
Date: Tue, 10 Aug 2010 11:23:28 -0400
Subject: [rancid] Copying configs to a fileserver
Message-ID: 

Hi,
 
Does anyone know of a way or have a linux script that has the ability to
copy device configs to a fileserver?  We want to do this so that we can
have a safe tape backup of them in case of catastrophic failure.  We
currently do not back up the rancid server as we don't have a license to
do so.
 
 
 
George Nussbaum | Sr. Systems Administrator | L-3 Communications SDS
10E Commerce Way, Woburn, MA 01801
O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email:
George.Nussbaum at L-3com.com   |
www.sds.l-3com.com  
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jj33 at pobox.com  Tue Aug 10 15:38:02 2010
From: jj33 at pobox.com (John Jetmore)
Date: Tue, 10 Aug 2010 11:38:02 -0400
Subject: [rancid] Copying configs to a fileserver
In-Reply-To: 
References: 
Message-ID: 

2010/8/10  :
> Hi,
>
> Does anyone know of a way or have a linux script that has the ability to
> copy device configs to a fileserver?? We want to do this so that we can have
> a safe tape backup of them in case of catastrophic failure.? We currently do
> not back up the rancid server as we don?t have a license to do so.

linux is pretty easy:

rsync -av $RANCIDHOME/var $BACKUPUSER@$BACKUPHOST:$REMOTEBACKUPDIR

eg:

rsync -av /home/rancid/rancid/var rancid at fileserver:/backups/rancid

If you have a windows server, you could mount it via samba and then
use rysnc to the mounted filesystem, eg:

rsync -av /home/rancid/rancid/var /mnt/backups/rancid

--John

From wcgallar at iupui.edu  Tue Aug 10 15:39:30 2010
From: wcgallar at iupui.edu (Gallardo, Winfred C)
Date: Tue, 10 Aug 2010 15:39:30 +0000
Subject: [rancid] Copying configs to a fileserver
In-Reply-To: 
References: 
Message-ID: <0FFFF5E4-6D0A-4634-8B7D-792C9AB81092@iupui.edu>

you can use a NFS mounted drive or use AMANDA which is free.  Another  option if your fileserver is running windows is to create a samba share drive from the device configs directory, mount that directory on the windows fileserver and use windows scheduled tasks to copy them to a different location.



Chris Gallardo
wcgallar at iupui.edu




On 10 , Aug 2010, at 11:23 AM, >
 wrote:

Hi,

Does anyone know of a way or have a linux script that has the ability to copy device configs to a fileserver?  We want to do this so that we can have a safe tape backup of them in case of catastrophic failure.  We currently do not back up the rancid server as we don?t have a license to do so.



George Nussbaum | Sr. Systems Administrator | L-3 Communications SDS
10E Commerce Way, Woburn, MA 01801
O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email: George.Nussbaum at L-3com.com | www.sds.l-3com.com

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From smunzani at comcast.net  Tue Aug 10 15:42:13 2010
From: smunzani at comcast.net (Sam Munzani)
Date: Tue, 10 Aug 2010 10:42:13 -0500
Subject: [rancid] Copying configs to a fileserver
In-Reply-To: 
References: 
Message-ID: <4C617355.9080106@comcast.net>

I usually use rsync. On windows server I have Delta Copy installed which 
acts as server. On rancid box, I have some korn shell scripts that has 
syntax like below.

rsync -vrtlz  --delete "/opt/rancid/var/configs" 
"172.20.100.10::rancid/" <= Where 172.20.100.10 is my windows srv and 
rancid is rsync server mount point.

Then run that script from cron.

Hope this helps,
Sam
>
> Hi,
>
> Does anyone know of a way or have a linux script that has the ability 
> to copy device configs to a fileserver? We want to do this so that we 
> can have a safe tape backup of them in case of catastrophic failure. 
> We currently do not back up the rancid server as we don't have a 
> license to do so.
>
> *George Nussbaum** **|** **Sr. Systems Administrator** **|** **L-3 
> Communications SDS*
>
> 10E Commerce Way, Woburn, MA 01801
>
> O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email: 
> George.Nussbaum at L-3com.com  | 
> www.sds.l-3com.com 
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From adudek16 at gmail.com  Tue Aug 10 15:29:56 2010
From: adudek16 at gmail.com (Aaron Dudek)
Date: Tue, 10 Aug 2010 11:29:56 -0400
Subject: [rancid] Copying configs to a fileserver
In-Reply-To: 
References: 
Message-ID: 

make a script to tar the directory and copy it to your fileserver.

2010/8/10 

>  Hi,
>
>
>
> Does anyone know of a way or have a linux script that has the ability to
> copy device configs to a fileserver?  We want to do this so that we can
> have a safe tape backup of them in case of catastrophic failure.  We
> currently do not back up the rancid server as we don?t have a license to do
> so.
>
>
>
>
>
>
>
> *George Nussbaum** **|** **Sr. Systems Administrator** **|** **L-3
> Communications SDS*
>
> 10E Commerce Way, Woburn, MA 01801
>
> O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email:
> George.Nussbaum at L-3com.com | www.sds.l-3com.com
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From George.Nussbaum at l-3com.com  Tue Aug 10 19:38:13 2010
From: George.Nussbaum at l-3com.com (George.Nussbaum at l-3com.com)
Date: Tue, 10 Aug 2010 15:38:13 -0400
Subject: [rancid] Copying configs to a fileserver
In-Reply-To: 
References: 
	
	
	
	
Message-ID: 

Thanks for all of the tips.  I actually set up samba on my rancid box and connect via a separate win server and copy the files up in a batch file I put in scheduled tasks.

Thanks again.

?
?
George Nussbaum |?Sr. Systems Administrator?|?L-3 Communications SDS
10E Commerce Way, Woburn, MA 01801
O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email: George.Nussbaum at L-3com.com | www.sds.l-3com.com


-----Original Message-----
From: John Jetmore [mailto:jj33 at pobox.com] 
Sent: Tuesday, August 10, 2010 12:41 PM
To: Nussbaum, George @ SDS
Subject: Re: [rancid] Copying configs to a fileserver

In fact, for what it's worth, I'm doing exactly what you asked to an
NFS-mounted Netapp as we speak:

># df -k /dbbackup
Filesystem           1K-blocks      Used Available Use% Mounted on
mon-filer-02.local:/vol/dbbackup
                     268435456 199574208  68861248  75% /dbbackup
># rsync -av --del /var/lib/mysql /dbbackup/

--John

On Tue, Aug 10, 2010 at 12:38 PM, John Jetmore  wrote:
> What protocols do you have licensed? ?We would mount it via NFS and
> use the second example I showed.
>
> BTW, Netapps can speak samba/cifs just fine, but you have to pay for a
> CIFS protocol license. ?using NFS from a linux/*nix box is much, much
> easier
>
> --John
>
> On Tue, Aug 10, 2010 at 11:40 AM, ? wrote:
>> Thanks John. ?My fileserver is a NetApp appliance so I don't think Samba will work.
>>
>>
>>
>> George Nussbaum |?Sr. Systems Administrator?|?L-3 Communications SDS
>> 10E Commerce Way, Woburn, MA 01801
>> O: 781.939.3866 | M: 781.985.5081 | F: 781.939.3996 | Email: George.Nussbaum at L-3com.com | www.sds.l-3com.com
>>
>> -----Original Message-----
>> From: John Jetmore [mailto:jj33 at pobox.com]
>> Sent: Tuesday, August 10, 2010 11:38 AM
>> To: Nussbaum, George @ SDS
>> Cc: rancid-discuss at shrubbery.net
>> Subject: Re: [rancid] Copying configs to a fileserver
>>
>> 2010/8/10 ?:
>>> Hi,
>>>
>>> Does anyone know of a way or have a linux script that has the ability to
>>> copy device configs to a fileserver?? We want to do this so that we can have
>>> a safe tape backup of them in case of catastrophic failure.? We currently do
>>> not back up the rancid server as we don't have a license to do so.
>>
>> linux is pretty easy:
>>
>> rsync -av $RANCIDHOME/var $BACKUPUSER@$BACKUPHOST:$REMOTEBACKUPDIR
>>
>> eg:
>>
>> rsync -av /home/rancid/rancid/var rancid at fileserver:/backups/rancid
>>
>> If you have a windows server, you could mount it via samba and then
>> use rysnc to the mounted filesystem, eg:
>>
>> rsync -av /home/rancid/rancid/var /mnt/backups/rancid
>>
>> --John
>>
>

From gmourani at prival.ca  Tue Aug 10 20:49:21 2010
From: gmourani at prival.ca (Gerhard Mourani)
Date: Tue, 10 Aug 2010 16:49:21 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
Message-ID: <201008101649.21514.gmourani@prival.ca>

Hello List,

I'm trying to use this add on (http://www.rickyninja.net/rancid/) with Rancid 
3.2.4 to make it work with a Dell PowerConnect 3348P switch without success. 
Does someone has been able to make it work?

-- 
Gerhard Mourani
Concepteur Logiciel / Software Developer

gmourani at prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5 
P Merci de penser ? l'environnement avant d'imprimer ce courriel.
Ce message ?lectronique ainsi que tous les documents annex?s s?adressent 
exclusivement ? la personne ou ? l?entit? inscrit dans la rubrique 
destinataire ; il peut contenir des renseignements de nature confidentielle ou 
privil?gi?e  aux termes des lois applicables. Nulle autre personne ne doit y 
avoir acc?s.  Si vous n??tes pas le destinataire convenu, nous vous avisons 
par la pr?sente qu'il est strictement interdit d'en divulguer le contenu, de 
le distribuer, le copier ou l? utiliser.  Veuillez aviser l?exp?diteur 
imm?diatement par retour de courrier ?lectronique et supprimer ce message de 
votre syst?me.  Toute diffusion ou reproduction de ce document ainsi que tout 
mesure prise ? l??gard de la pr?sente est formellement interdite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jj33 at pobox.com  Wed Aug 11 16:26:06 2010
From: jj33 at pobox.com (John Jetmore)
Date: Wed, 11 Aug 2010 12:26:06 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <201008101649.21514.gmourani@prival.ca>
References: <201008101649.21514.gmourani@prival.ca>
Message-ID: 

2010/8/10 Gerhard Mourani :
> Hello List,
>
> I'm trying to use this add on (http://www.rickyninja.net/rancid/) with
> Rancid 3.2.4 to make it work with a Dell PowerConnect 3348P switch without
> success. Does someone has been able to make it work?

Working with 3324s and 6220s here.  Have you applied the
doesn't-send-trailing-newline patch?

http://www.rickyninja.net/rancid/patches/echo-newline-final-exit-3324.txt

--John

From gmourani at prival.ca  Thu Aug 12 12:41:19 2010
From: gmourani at prival.ca (Gerhard Mourani)
Date: Thu, 12 Aug 2010 08:41:19 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: 
References: <201008101649.21514.gmourani@prival.ca>
	
Message-ID: <201008120841.19731.gmourani@prival.ca>

On August 11, 2010 12:26:06 pm John Jetmore wrote:
> Have you applied the doesn't-send-trailing-newline patch?
Yes, already applied without success, same problem, the /usr/bin/rancid-run 
command never end.

-- 
Gerhard Mourani
Concepteur Logiciel / Software Developer

gmourani at prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5 
P Merci de penser ? l'environnement avant d'imprimer ce courriel.
Ce message ?lectronique ainsi que tous les documents annex?s s?adressent 
exclusivement ? la personne ou ? l?entit? inscrit dans la rubrique 
destinataire ; il peut contenir des renseignements de nature confidentielle ou 
privil?gi?e  aux termes des lois applicables. Nulle autre personne ne doit y 
avoir acc?s.  Si vous n??tes pas le destinataire convenu, nous vous avisons 
par la pr?sente qu'il est strictement interdit d'en divulguer le contenu, de 
le distribuer, le copier ou l? utiliser.  Veuillez aviser l?exp?diteur 
imm?diatement par retour de courrier ?lectronique et supprimer ce message de 
votre syst?me.  Toute diffusion ou reproduction de ce document ainsi que tout 
mesure prise ? l??gard de la pr?sente est formellement interdite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From heas at shrubbery.net  Fri Aug 13 02:09:36 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 12 Aug 2010 19:09:36 -0700
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <201008120841.19731.gmourani@prival.ca>
References: <201008101649.21514.gmourani@prival.ca>
	
	<201008120841.19731.gmourani@prival.ca>
Message-ID: <20100813020935.GK1611@shrubbery.net>

Thu, Aug 12, 2010 at 08:41:19AM -0400, Gerhard Mourani:
> On August 11, 2010 12:26:06 pm John Jetmore wrote:
> > Have you applied the doesn't-send-trailing-newline patch?
> Yes, already applied without success, same problem, the /usr/bin/rancid-run 
> command never end.

i can't test that script, but your description begs the question of
whether you are using solaris or linux and have not applied the expect
patch (http://www.shrubbery.net/rancid/#osystems).

From gmourani at prival.ca  Fri Aug 13 13:09:53 2010
From: gmourani at prival.ca (Gerhard Mourani)
Date: Fri, 13 Aug 2010 09:09:53 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <20100813020935.GK1611@shrubbery.net>
References: <201008101649.21514.gmourani@prival.ca>
	<201008120841.19731.gmourani@prival.ca>
	<20100813020935.GK1611@shrubbery.net>
Message-ID: <201008130909.53651.gmourani@prival.ca>

On August 12, 2010 10:09:36 pm john heasley wrote:
> you are using solaris or linux and have not applied the expect patch
Am using Linux and the expect patch has been applied to the expect source code 
and recompiled.

Here the log related to this Dell switch when running the /usr/bin/rancid-run 
binary command.

starting: Fri Aug 13 08:57:32 EDT 2010



Trying to get all of the configs.
opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
FOUND PROMPT: PowerConnect 3448P#
can not find channel named "exp4"
    while executing
"send $send_this"
    (procedure "dsend" line 4)
    invoked from within
"dsend "[subst -nocommands [lindex $commands $i]]\r""
    invoked from within
"if [ string match "*\;*" "$command" ] {
        set commands [split $command \;]
        set num_commands [llength $commands]
        for {set i 0} {$..."
    (procedure "run_commands" line 13)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 138)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out the prompt.
    # autoenabl..."
    (file "/usr/bin/dlogin" line 660)^M
found_end = 0, clean_run = 0
192.168.2.100 dlogin error: Error: TIMEOUT reached
192.168.2.100: missed cmd(s): show version,show running-config,show vlan
192.168.2.100: End of run not found
!
=====================================
Getting missed routers: round 1.
opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
FOUND PROMPT: PowerConnect 3448P#
can not find channel named "exp4"
    while executing
"send $send_this"
    (procedure "dsend" line 4)
    invoked from within
"dsend "[subst -nocommands [lindex $commands $i]]\r""
    invoked from within
"if [ string match "*\;*" "$command" ] {
        set commands [split $command \;]
        set num_commands [llength $commands]
        for {set i 0} {$..."
    (procedure "run_commands" line 13)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 138)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out the prompt.
    # autoenabl..."
    (file "/usr/bin/dlogin" line 660)^M
found_end = 0, clean_run = 0
192.168.2.100 dlogin error: Error: TIMEOUT reached
192.168.2.100: missed cmd(s): show version,show running-config,show vlan
192.168.2.100: End of run not found
!
=====================================
Getting missed routers: round 2.
opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
FOUND PROMPT: PowerConnect 3448P#
can not find channel named "exp4"
    while executing
"send $send_this"
    (procedure "dsend" line 4)
    invoked from within
"dsend "[subst -nocommands [lindex $commands $i]]\r""
    invoked from within
"if [ string match "*\;*" "$command" ] {
        set commands [split $command \;]
        set num_commands [llength $commands]
        for {set i 0} {$..."
    (procedure "run_commands" line 13)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 138)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out the prompt.
    # autoenabl..."
    (file "/usr/bin/dlogin" line 660)^M
found_end = 0, clean_run = 0
192.168.2.100 dlogin error: Error: TIMEOUT reached
192.168.2.100: missed cmd(s): show version,show running-config,show vlan
192.168.2.100: End of run not found
!
=====================================
Getting missed routers: round 3.
opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
Received signal - ending run (1).
=====================================
Getting missed routers: round 4.
opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
Received signal - ending run (1).

cvs diff: Diffing .
cvs diff: Diffing configs
cvs diff: cannot find configs/192.168.2.100
cvs commit: Examining .
cvs commit: Examining configs
cvs commit: Up-to-date check failed for `configs/192.168.2.100'
cvs [commit aborted]: correct above errors first!
ls: cannot access 192.168.2.100: No such file or directory

-- 
Gerhard Mourani
Concepteur Logiciel / Software Developer

gmourani at prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5 
P Merci de penser ? l'environnement avant d'imprimer ce courriel.
Ce message ?lectronique ainsi que tous les documents annex?s s?adressent 
exclusivement ? la personne ou ? l?entit? inscrit dans la rubrique 
destinataire ; il peut contenir des renseignements de nature confidentielle ou 
privil?gi?e  aux termes des lois applicables. Nulle autre personne ne doit y 
avoir acc?s.  Si vous n??tes pas le destinataire convenu, nous vous avisons 
par la pr?sente qu'il est strictement interdit d'en divulguer le contenu, de 
le distribuer, le copier ou l? utiliser.  Veuillez aviser l?exp?diteur 
imm?diatement par retour de courrier ?lectronique et supprimer ce message de 
votre syst?me.  Toute diffusion ou reproduction de ce document ainsi que tout 
mesure prise ? l??gard de la pr?sente est formellement interdite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From heas at shrubbery.net  Fri Aug 13 18:52:18 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 13 Aug 2010 11:52:18 -0700
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <201008130909.53651.gmourani@prival.ca>
References: <201008101649.21514.gmourani@prival.ca>
	<201008120841.19731.gmourani@prival.ca>
	<20100813020935.GK1611@shrubbery.net>
	<201008130909.53651.gmourani@prival.ca>
Message-ID: <20100813185218.GV17377@shrubbery.net>

Fri, Aug 13, 2010 at 09:09:53AM -0400, Gerhard Mourani:
> On August 12, 2010 10:09:36 pm john heasley wrote:
> > you are using solaris or linux and have not applied the expect patch
> Am using Linux and the expect patch has been applied to the expect source code 
> and recompiled.

so, it finishes, but not successfully.

> Trying to get all of the configs.
> opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
> FOUND PROMPT: PowerConnect 3448P#
> can not find channel named "exp4"
>     while executing

so, either the expect script closed the channel to ssh/telnet, or the
ssh/telnet command exited, or the device closed the connection prematurely.

try whateveritislogin -c 'show version' hostname

From gmourani at prival.ca  Fri Aug 13 20:49:15 2010
From: gmourani at prival.ca (Gerhard Mourani)
Date: Fri, 13 Aug 2010 16:49:15 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <20100813185218.GV17377@shrubbery.net>
References: <201008101649.21514.gmourani@prival.ca>
	<201008130909.53651.gmourani@prival.ca>
	<20100813185218.GV17377@shrubbery.net>
Message-ID: <201008131649.15930.gmourani@prival.ca>

On August 13, 2010 02:52:18 pm john heasley wrote:
> ry whateveritislogin -c 'show version' hostname
Here the output of the clogin commad on it.

bash-4.0$ /usr/bin/clogin -c 'show version' 192.168.2.100
192.168.2.100
spawn ssh -c 3des -x -l admin 192.168.2.100


User Name:admin
Password:*********

PowerConnect 3448P> enable
Password:********

PowerConnect 3448P# 
PowerConnect 3448P# terminal length 0
% Unrecognized command
PowerConnect 3448P#


-- 
Gerhard Mourani
Concepteur Logiciel / Software Developer

gmourani at prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5 
P Merci de penser ? l'environnement avant d'imprimer ce courriel.
Ce message ?lectronique ainsi que tous les documents annex?s s?adressent 
exclusivement ? la personne ou ? l?entit? inscrit dans la rubrique 
destinataire ; il peut contenir des renseignements de nature confidentielle ou 
privil?gi?e  aux termes des lois applicables. Nulle autre personne ne doit y 
avoir acc?s.  Si vous n??tes pas le destinataire convenu, nous vous avisons 
par la pr?sente qu'il est strictement interdit d'en divulguer le contenu, de 
le distribuer, le copier ou l? utiliser.  Veuillez aviser l?exp?diteur 
imm?diatement par retour de courrier ?lectronique et supprimer ce message de 
votre syst?me.  Toute diffusion ou reproduction de ce document ainsi que tout 
mesure prise ? l??gard de la pr?sente est formellement interdite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From heas at shrubbery.net  Sat Aug 14 02:33:01 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 13 Aug 2010 19:33:01 -0700
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <201008131649.15930.gmourani@prival.ca>
References: <201008101649.21514.gmourani@prival.ca>
	<201008130909.53651.gmourani@prival.ca>
	<20100813185218.GV17377@shrubbery.net>
	<201008131649.15930.gmourani@prival.ca>
Message-ID: <20100814023301.GJ17377@shrubbery.net>

Fri, Aug 13, 2010 at 04:49:15PM -0400, Gerhard Mourani:
> On August 13, 2010 02:52:18 pm john heasley wrote:
> > ry whateveritislogin -c 'show version' hostname
> Here the output of the clogin commad on it.
> 
> bash-4.0$ /usr/bin/clogin -c 'show version' 192.168.2.100

doesnt the dell have its own login cmd?  your log has function call 'dsend'
which is not part of clogin.

> 192.168.2.100
> spawn ssh -c 3des -x -l admin 192.168.2.100
> 
> 
> User Name:admin
> Password:*********
> 
> PowerConnect 3448P> enable
> Password:********
> 
> PowerConnect 3448P# 
> PowerConnect 3448P# terminal length 0
> % Unrecognized command
> PowerConnect 3448P#

sorry, those are all the easy things to test.  have to get dirty from here.
ktrace/strace/truss, expect -d / clogin -d, etc.

maybe the author of the dell module or somewith a dell can help you.

From ler762 at gmail.com  Sat Aug 14 13:38:14 2010
From: ler762 at gmail.com (Lee)
Date: Sat, 14 Aug 2010 09:38:14 -0400
Subject: [rancid] fix for cygwin/vista ping failure?
Message-ID: 

I'm trying to get rancid working with cygwin on Windows Vista and
there's a problem with ping.

If I install the cygwin version of ping it doesn't work unless it's
run as the admin.  I don't normally log in as the administrator, so
http://cygwin.com/ml/cygwin/2007-12/msg00374.html says to use the
native windoze ping.  Uninstall the cygwin version of ping, try
configure again & I get the
  "can't figure out how to pass count == 1 to $PING_PATH."
error msg from configure.  So I changed the configure script to also
check for the windows flavor of ping:

$PING_PATH -c 1 -v 127.0.0.1 > /dev/null 2>&1
if test $? -eq 0 ; then
    LG_PING_CMD="$PING_PATH -c 1"
else
    $PING_PATH 127.0.0.1 56 1 > /dev/null 2>&1
    if test $? -eq 0 ; then
        LG_PING_CMD="$PING_PATH"
    else
        # cygwin using windows ping?
        $PING_PATH -n 1 127.0.0.1 > /dev/null 2>&1
        if test $? -eq 0 ; then
            LG_PING_CMD="$PING_PATH -n 1"
        else
            as_fn_error "can't figure out how to pass count == 1 to
$PING_PATH." "$LINENO" 5
            exit 1
        fi
    fi
fi

./configure && make && make install
works now as does clogin :)

Now that I've got this far - how do I test it?  As far as I can tell
only lg.cgi uses ping & I'm not planning on using any of the
lookingglass stuff..

Thanks,
Lee

From ler762 at gmail.com  Sat Aug 14 13:47:43 2010
From: ler762 at gmail.com (Lee)
Date: Sat, 14 Aug 2010 09:47:43 -0400
Subject: [rancid] cloginrc.sample noenable example
Message-ID: 

Shouldn't the example for noenable in cloginrc.sample be changed from
  # add noenable 
to
  # add noenable  1
or maybe
  # add noenable  <1/0>
like the example for autoenable?

Thanks,
Lee

From gmourani at prival.ca  Mon Aug 16 14:29:49 2010
From: gmourani at prival.ca (Gerhard Mourani)
Date: Mon, 16 Aug 2010 10:29:49 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <20100814023301.GJ17377@shrubbery.net>
References: <201008101649.21514.gmourani@prival.ca>
	<201008131649.15930.gmourani@prival.ca>
	<20100814023301.GJ17377@shrubbery.net>
Message-ID: <201008161029.49583.gmourani@prival.ca>

On August 13, 2010 10:33:01 pm john heasley wrote:
> doesnt the dell have its own login cmd?
I don't think. Anyway thanks for your help here. I think that's one of the 
reason why the author of Rancid doesn't include Dell support into Rancid.

-- 
Gerhard Mourani
Concepteur Logiciel / Software Developer

gmourani at prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5 
P Merci de penser ? l'environnement avant d'imprimer ce courriel.
Ce message ?lectronique ainsi que tous les documents annex?s s?adressent 
exclusivement ? la personne ou ? l?entit? inscrit dans la rubrique 
destinataire ; il peut contenir des renseignements de nature confidentielle ou 
privil?gi?e  aux termes des lois applicables. Nulle autre personne ne doit y 
avoir acc?s.  Si vous n??tes pas le destinataire convenu, nous vous avisons 
par la pr?sente qu'il est strictement interdit d'en divulguer le contenu, de 
le distribuer, le copier ou l? utiliser.  Veuillez aviser l?exp?diteur 
imm?diatement par retour de courrier ?lectronique et supprimer ce message de 
votre syst?me.  Toute diffusion ou reproduction de ce document ainsi que tout 
mesure prise ? l??gard de la pr?sente est formellement interdite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From jj33 at pobox.com  Mon Aug 16 14:43:54 2010
From: jj33 at pobox.com (John Jetmore)
Date: Mon, 16 Aug 2010 10:43:54 -0400
Subject: [rancid] Rancid & Dell PowerConnect 3348P
In-Reply-To: <201008161029.49583.gmourani@prival.ca>
References: <201008101649.21514.gmourani@prival.ca>
	<201008131649.15930.gmourani@prival.ca>
	<20100814023301.GJ17377@shrubbery.net>
	<201008161029.49583.gmourani@prival.ca>
Message-ID: 

8/16 Gerhard Mourani :
> On August 13, 2010 10:33:01 pm john heasley wrote:
>
>> doesnt the dell have its own login cmd?
>
> I don't think. Anyway thanks for your help here. I think that's one of the
> reason why the author of Rancid doesn't include Dell support into Rancid.

dlogin

From heas at shrubbery.net  Wed Aug 18 20:04:36 2010
From: heas at shrubbery.net (john heasley)
Date: Wed, 18 Aug 2010 20:04:36 +0000
Subject: [rancid] fix for cygwin/vista ping failure?
In-Reply-To: 
References: 
Message-ID: <20100818200435.GJ1750@shrubbery.net>

Sat, Aug 14, 2010 at 09:38:14AM -0400, Lee:
> Now that I've got this far - how do I test it?  As far as I can tell
> only lg.cgi uses ping & I'm not planning on using any of the
> lookingglass stuff..

set-up the lg; it uses ping to see if the router is reachable before
trying to connect to it.

From heas at shrubbery.net  Wed Aug 18 20:09:21 2010
From: heas at shrubbery.net (john heasley)
Date: Wed, 18 Aug 2010 20:09:21 +0000
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: 
References: 
Message-ID: <20100818200920.GK1750@shrubbery.net>

Sat, Aug 14, 2010 at 09:47:43AM -0400, Lee:
> Shouldn't the example for noenable in cloginrc.sample be changed from
>   # add noenable 
> to
>   # add noenable  1
> or maybe
>   # add noenable  <1/0>
> like the example for autoenable?

no, that directive does not work that way.  the login scripts would need
to be changed to allow this.

From ler762 at gmail.com  Wed Aug 18 22:27:58 2010
From: ler762 at gmail.com (Lee)
Date: Wed, 18 Aug 2010 18:27:58 -0400
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: <20100818200920.GK1750@shrubbery.net>
References: 
	<20100818200920.GK1750@shrubbery.net>
Message-ID: 

On 8/18/10, john heasley  wrote:
> Sat, Aug 14, 2010 at 09:47:43AM -0400, Lee:
>> Shouldn't the example for noenable in cloginrc.sample be changed from
>>   # add noenable 
>> to
>>   # add noenable  1
>> or maybe
>>   # add noenable  <1/0>
>> like the example for autoenable?
>
> no, that directive does not work that way.  the login scripts would need
> to be changed to allow this.

What am I doing wrong then?  With this in my .cloginrc
add noenable *
a 'clogin -c "sh ip eigrp int" ciscoRouter' goes into enable mode
before doing the show command.  If I change it to
add noenable * 1
it doesn't get into enable mode before doing the command.

Thanks,
Lee

From ler762 at gmail.com  Wed Aug 18 23:36:10 2010
From: ler762 at gmail.com (Lee)
Date: Wed, 18 Aug 2010 19:36:10 -0400
Subject: [rancid] fix for cygwin/vista ping failure?
In-Reply-To: <20100818200435.GJ1750@shrubbery.net>
References: 
	<20100818200435.GJ1750@shrubbery.net>
Message-ID: 

On 8/18/10, john heasley  wrote:
> Sat, Aug 14, 2010 at 09:38:14AM -0400, Lee:
>> Now that I've got this far - how do I test it?  As far as I can tell
>> only lg.cgi uses ping & I'm not planning on using any of the
>> lookingglass stuff..
>
> set-up the lg; it uses ping to see if the router is reachable before
> trying to connect to it.

I got as far as this bit in the lg_intro man page
  The looking glass offers a web based interface to routers to users
without their needing permission to login ...
and quit reading.  There's no web interface on the machine I want to
install rancid on and I really don't want a web based interface to
routers, much less a web based interface to routers to users without
permission to login.  Is the lookingglass a required part of rancid?

Thanks,
Lee

From scubacuda at gmail.com  Thu Aug 19 00:25:02 2010
From: scubacuda at gmail.com (Rogelio)
Date: Wed, 18 Aug 2010 17:25:02 -0700
Subject: [rancid] wrangling configs with RANCID (right for non-Cisco
	vendors?)
Message-ID: 

Apologies is this has been answered before (just joined the litstserv
today and am still wrapping my mind around RANCID).

Can RANCID work on non-standard equipment, particularly ones that DO
NOT allow you to output something nice and "scriptable" (e.g. Cisco's
"show running-config"). A horrid networking appliance got shoved down
our NOC's throat, and it does not output a config that is easily
copy/paste-able.  Because this appliance is extremely important, we're
looking to keep track of (and alert on) config changes.

(If not RANCID, any other suggestions?)

From rwest at zyedge.com  Thu Aug 19 00:36:48 2010
From: rwest at zyedge.com (Ryan West)
Date: Thu, 19 Aug 2010 00:36:48 +0000
Subject: [rancid] wrangling configs with RANCID (right for
	non-Cisco	vendors?)
In-Reply-To: 
References: 
Message-ID: <853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>

A lot of non cisco devices are supported, what type of device are you trying to backup?

Sent from handheld 

On Aug 18, 2010, at 8:33 PM, "Rogelio"  wrote:

> Apologies is this has been answered before (just joined the litstserv
> today and am still wrapping my mind around RANCID).
> 
> Can RANCID work on non-standard equipment, particularly ones that DO
> NOT allow you to output something nice and "scriptable" (e.g. Cisco's
> "show running-config"). A horrid networking appliance got shoved down
> our NOC's throat, and it does not output a config that is easily
> copy/paste-able.  Because this appliance is extremely important, we're
> looking to keep track of (and alert on) config changes.
> 
> (If not RANCID, any other suggestions?)
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

From scubacuda at gmail.com  Thu Aug 19 00:47:31 2010
From: scubacuda at gmail.com (Rogelio)
Date: Wed, 18 Aug 2010 17:47:31 -0700
Subject: [rancid] wrangling configs with RANCID (right for non-Cisco
	vendors?)
In-Reply-To: <853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>
References: 
	<853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>
Message-ID: 

On Wed, Aug 18, 2010 at 5:36 PM, Ryan West  wrote:
> A lot of non cisco devices are supported, what type of device are you trying to backup?

D-Link and BelAir wireless devices are some of what we have to
monitor.  Many more weird ones are on the Horizon.

Does RANCID allow you to monitor devices that don't easily output
their config?  (Some of these devices make you go into each directory
and type out a command that gives the status, but not in a format that
is copy/pastable)

From andrew.brennan+rancid at drexel.edu  Thu Aug 19 01:25:21 2010
From: andrew.brennan+rancid at drexel.edu (andrew.brennan+rancid at drexel.edu)
Date: Wed, 18 Aug 2010 21:25:21 -0400 (EDT)
Subject: [rancid] wrangling configs with RANCID (right for non-Cisco
 vendors?)
In-Reply-To: 
References: 
	<853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>
	
Message-ID: <20100818212223.J3554@dust.noc.drexel.edu>

As long as the devices have a CLI, you should be able to run scripts 
against them using Expect (and autoexpect).  Modify that script such that 
you have variables for IP and prompts, etc. and you can monitor most any 
product.  It won't be pretty, but it's doable.

On Wed, 18 Aug 2010, Rogelio wrote:

> On Wed, Aug 18, 2010 at 5:36 PM, Ryan West  wrote:
> > A lot of non cisco devices are supported, what type of device are you trying to backup?
> 
> D-Link and BelAir wireless devices are some of what we have to
> monitor.  Many more weird ones are on the Horizon.
> 
> Does RANCID allow you to monitor devices that don't easily output
> their config?  (Some of these devices make you go into each directory
> and type out a command that gives the status, but not in a format that
> is copy/pastable)
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

From mathiruban at gmail.com  Thu Aug 19 04:19:10 2010
From: mathiruban at gmail.com (Mathiruban Rajagopal)
Date: Thu, 19 Aug 2010 09:49:10 +0530
Subject: [rancid] Repeat config fetcher problems email to rancid admin
Message-ID: 

Hello,

I am receiving continuous email to rancid admin that "The following routers
have not been successfully contacted for more than 4 hours".
When I checked the group log, it say "clogin error: Error: Check your passwd
for xxxx" but from rancid server clogin is working for those devices.


Mathy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From heas at shrubbery.net  Thu Aug 19 05:06:57 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 19 Aug 2010 05:06:57 +0000
Subject: [rancid] Repeat config fetcher problems email to rancid admin
In-Reply-To: 
References: 
Message-ID: <20100819050657.GC18707@shrubbery.net>

Thu, Aug 19, 2010 at 09:49:10AM +0530, Mathiruban Rajagopal:
> Hello,
> 
> I am receiving continuous email to rancid admin that "The following routers
> have not been successfully contacted for more than 4 hours".
> When I checked the group log, it say "clogin error: Error: Check your passwd
> for xxxx" but from rancid server clogin is working for those devices.

obviously it is lying.

while temped to leave it at that, try your login tests as the user who
runs rancid using the name used in the router.db.

From heas at shrubbery.net  Thu Aug 19 05:19:45 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 19 Aug 2010 05:19:45 +0000
Subject: [rancid] wrangling configs with RANCID (right for
	non-Cisco	vendors?)
In-Reply-To: 
References: 
	<853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>
	
Message-ID: <20100819051945.GD18707@shrubbery.net>

Wed, Aug 18, 2010 at 05:47:31PM -0700, Rogelio:
> On Wed, Aug 18, 2010 at 5:36 PM, Ryan West  wrote:
> > A lot of non cisco devices are supported, what type of device are you trying to backup?
> 
> D-Link and BelAir wireless devices are some of what we have to
> monitor.  Many more weird ones are on the Horizon.
> 
> Does RANCID allow you to monitor devices that don't easily output
> their config?  (Some of these devices make you go into each directory
> and type out a command that gives the status, but not in a format that
> is copy/pastable)

none are currently supported.  as mentioned in a recent thread, its possible
that a script could, for example, tftp a config from a device, copy that
config to (or compile multiple tftp'd files int) router.db_devicename.raw,
then treat the like rancid does for the NOPIPE option (see rancid.conf(5)).

From heas at shrubbery.net  Thu Aug 19 06:08:32 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 19 Aug 2010 06:08:32 +0000
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: 
References: 
	<20100818200920.GK1750@shrubbery.net>
	
Message-ID: <20100819060831.GJ18707@shrubbery.net>

Wed, Aug 18, 2010 at 06:27:58PM -0400, Lee:
> On 8/18/10, john heasley  wrote:
> > Sat, Aug 14, 2010 at 09:47:43AM -0400, Lee:
> >> Shouldn't the example for noenable in cloginrc.sample be changed from
> >>   # add noenable 
> >> to
> >>   # add noenable  1
> >> or maybe
> >>   # add noenable  <1/0>
> >> like the example for autoenable?
> >
> > no, that directive does not work that way.  the login scripts would need
> > to be changed to allow this.
> 
> What am I doing wrong then?  With this in my .cloginrc
> add noenable *
> a 'clogin -c "sh ip eigrp int" ciscoRouter' goes into enable mode
> before doing the show command.  If I change it to
> add noenable * 1
> it doesn't get into enable mode before doing the command.

sorry, more specifically it does not work like autoenable; any value turns it
on.

From randy at psg.com  Thu Aug 19 06:15:31 2010
From: randy at psg.com (Randy Bush)
Date: Thu, 19 Aug 2010 15:15:31 +0900
Subject: [rancid] Repeat config fetcher problems email to rancid admin
In-Reply-To: <20100819050657.GC18707@shrubbery.net>
References: 
	<20100819050657.GC18707@shrubbery.net>
Message-ID: 

>> I am receiving continuous email to rancid admin that "The following routers
>> have not been successfully contacted for more than 4 hours".
>> When I checked the group log, it say "clogin error: Error: Check your passwd
>> for xxxx" but from rancid server clogin is working for those devices.
> 
> obviously it is lying.
> 
> while temped to leave it at that, try your login tests as the user who
> runs rancid using the name used in the router.db.

82.3% of the time i see this, the device has a new ssh host key that is
in my ~/.aah/known_hosts but not in rancid's

randy

From heas at shrubbery.net  Thu Aug 19 06:55:49 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 19 Aug 2010 06:55:49 +0000
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: <20100819060831.GJ18707@shrubbery.net>
References: 
	<20100818200920.GK1750@shrubbery.net>
	
	<20100819060831.GJ18707@shrubbery.net>
Message-ID: <20100819065548.GA10615@shrubbery.net>

Thu, Aug 19, 2010 at 06:08:32AM +0000, john heasley:
> Wed, Aug 18, 2010 at 06:27:58PM -0400, Lee:
> > On 8/18/10, john heasley  wrote:
> > > Sat, Aug 14, 2010 at 09:47:43AM -0400, Lee:
> > >> Shouldn't the example for noenable in cloginrc.sample be changed from
> > >>   # add noenable 
> > >> to
> > >>   # add noenable  1
> > >> or maybe
> > >>   # add noenable  <1/0>
> > >> like the example for autoenable?
> > >
> > > no, that directive does not work that way.  the login scripts would need
> > > to be changed to allow this.
> > 
> > What am I doing wrong then?  With this in my .cloginrc
> > add noenable *
> > a 'clogin -c "sh ip eigrp int" ciscoRouter' goes into enable mode
> > before doing the show command.  If I change it to
> > add noenable * 1
> > it doesn't get into enable mode before doing the command.
> 
> sorry, more specifically it does not work like autoenable; any value turns it
> on.

sorry.  looking at the code, it is inconsistent.  in one place, any
value enables it, elsewhere only '1' is accepted.  i blame Hank,
because its fun.  i'll change it so that only '1' turns it on.

From jethro.binks at strath.ac.uk  Thu Aug 19 08:00:10 2010
From: jethro.binks at strath.ac.uk (Jethro R Binks)
Date: Thu, 19 Aug 2010 09:00:10 +0100 (BST)
Subject: [rancid] wrangling configs with RANCID (right for non-Cisco
 vendors?)
In-Reply-To: <20100819051945.GD18707@shrubbery.net>
References: 
	<853D2776-E036-40BC-95D2-26F4A119F90D@zyedge.com>
	
	<20100819051945.GD18707@shrubbery.net>
Message-ID: 

On Thu, 19 Aug 2010, john heasley wrote:

> Wed, Aug 18, 2010 at 05:47:31PM -0700, Rogelio:
> > On Wed, Aug 18, 2010 at 5:36 PM, Ryan West  wrote:
> > > A lot of non cisco devices are supported, what type of device are you trying to backup?
> > 
> > D-Link and BelAir wireless devices are some of what we have to
> > monitor.  Many more weird ones are on the Horizon.
> > 
> > Does RANCID allow you to monitor devices that don't easily output
> > their config?  (Some of these devices make you go into each directory
> > and type out a command that gives the status, but not in a format that
> > is copy/pastable)
> 
> none are currently supported.  as mentioned in a recent thread, its 
> possible that a script could, for example, tftp a config from a device, 
> copy that config to (or compile multiple tftp'd files int) 
> router.db_devicename.raw, then treat the like rancid does for the NOPIPE 
> option (see rancid.conf(5)).

Michael Stefaniuc wrote "wrancid" which allowed you to use an arbitrary 
script to obtain "a config", for rancid to work against.  I updated and 
tweaked it a bit, see the following for more details:

  http://sites.google.com/site/jrbinks/code/rancid/wraprancid

but beware: I haven't tested this in a long time, don't actually use it 
day to day currently, and don't remember that much about it :).

Jethro.

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Jethro R Binks, Computing Officer
Information Services, The University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.

From hank at rem.com  Thu Aug 19 15:07:31 2010
From: hank at rem.com (Hank Kilmer)
Date: Thu, 19 Aug 2010 11:07:31 -0400
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: <20100819065548.GA10615@shrubbery.net>
References: 	<20100818200920.GK1750@shrubbery.net>		<20100819060831.GJ18707@shrubbery.net>
	<20100819065548.GA10615@shrubbery.net>
Message-ID: <4C6D48B3.8000902@rem.com>

On 8/19/10 2:55 AM, john heasley wrote:
> sorry.  looking at the code, it is inconsistent.  in one place, any
> value enables it, elsewhere only '1' is accepted.  i blame Hank,
> because its fun.  i'll change it so that only '1' turns it on.

I like accepting blame. :-)

From ler762 at gmail.com  Thu Aug 19 18:38:37 2010
From: ler762 at gmail.com (Lee)
Date: Thu, 19 Aug 2010 14:38:37 -0400
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: <4C6D48B3.8000902@rem.com>
References: 
	<20100818200920.GK1750@shrubbery.net>
	
	<20100819060831.GJ18707@shrubbery.net>
	<20100819065548.GA10615@shrubbery.net> <4C6D48B3.8000902@rem.com>
Message-ID: 

On 8/19/10, Hank Kilmer  wrote:
> On 8/19/10 2:55 AM, john heasley wrote:
>> sorry.  looking at the code, it is inconsistent.  in one place, any
>> value enables it, elsewhere only '1' is accepted.  i blame Hank,
>> because its fun.  i'll change it so that only '1' turns it on.
>
> I like accepting blame. :-)

 but will you accept responsibility for updating the comments in
cloginrc.sample ;-)

Lee

From hank at rem.com  Thu Aug 19 18:59:06 2010
From: hank at rem.com (Hank Kilmer)
Date: Thu, 19 Aug 2010 14:59:06 -0400
Subject: [rancid] cloginrc.sample noenable example
In-Reply-To: 
References: 	<20100818200920.GK1750@shrubbery.net>		<20100819060831.GJ18707@shrubbery.net>	<20100819065548.GA10615@shrubbery.net>	<4C6D48B3.8000902@rem.com>
	
Message-ID: <4C6D7EFA.1020301@rem.com>

On 8/19/10 2:38 PM, Lee wrote:
> On 8/19/10, Hank Kilmer  wrote:
>> On 8/19/10 2:55 AM, john heasley wrote:
>>> sorry.  looking at the code, it is inconsistent.  in one place, any
>>> value enables it, elsewhere only '1' is accepted.  i blame Hank,
>>> because its fun.  i'll change it so that only '1' turns it on.
>>
>> I like accepting blame. :-)
> 
>  but will you accept responsibility for updating the comments in
> cloginrc.sample ;-)

Blame and responsibility repel each other.  I'll take all the blame but
then the responsibility gets shed elsewhere.  This is also true of blame
and fault.

Besides, John got it updated in the code well before I even had my coffee.

-Hank

From ler762 at gmail.com  Thu Aug 19 19:04:25 2010
From: ler762 at gmail.com (Lee)
Date: Thu, 19 Aug 2010 15:04:25 -0400
Subject: [rancid] reason for autoenable?
Message-ID: 

  ... more newbie questions

If the userid automatically gets priv level 15 at login and you forget
to set the autoenable flag the clogin script times out waiting for the
">" prompt.  Why was the autoenable flag added instead of changing the
expect script to look for # or >?  It seems nicer not to require a
flag...

clogin line 743:
	set ae [find autoenable $router]
	if { "$ae" == "1" } {
	    set autoenable 1
	    set enable 0
	    set prompt "(#| \\(enable\\))"
	} else {
	    set autoenable 0
	    set enable $avenable
	    # --old-- set prompt ">"
	    set prompt "(>|#| \\(enable\\))"
	}

and
clogin -c "sh int status err-dis" switchName
now works if I use a regular userid or one that has enable privs at login time.

Thanks,
Lee

From boheme at gmail.com  Mon Aug 23 05:10:29 2010
From: boheme at gmail.com (Chris Knight)
Date: Sun, 22 Aug 2010 22:10:29 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
Message-ID: 

Howdy,

  I was setting up Rancid to auto-backup the configs on some network
gear, and found that rancid-run completely failed to pull the configs
from two switches.  After some poking, verifying that clogin worked,
etc, I determined that the only difference between these switches and
the rest of the gear is that they are running IOS 11.2 while the rest
of the hardware is 12.x.

  Is there a device type, or other configuration switch, that I can
use to pull the configs off of IOS 11.x devices?

Thanks,

-Chris

From melchandler at firstam.com  Mon Aug 23 19:48:01 2010
From: melchandler at firstam.com (Chandler, Mel)
Date: Mon, 23 Aug 2010 12:48:01 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: 
References: 
Message-ID: 

I'm having a similar issue, was about to troubleshoot it myself.  I was
resigning myself that I'd have to upgrade that switch to 12.x code.


-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Knight
Sent: Sunday, August 22, 2010 10:10 PM
To: rancid-discuss
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2

Howdy,

  I was setting up Rancid to auto-backup the configs on some network
gear, and found that rancid-run completely failed to pull the configs
from two switches.  After some poking, verifying that clogin worked,
etc, I determined that the only difference between these switches and
the rest of the gear is that they are running IOS 11.2 while the rest
of the hardware is 12.x.

  Is there a device type, or other configuration switch, that I can
use to pull the configs off of IOS 11.x devices?

Thanks,

-Chris
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
****************************************************************************************** 
This message may contain confidential or proprietary information intended only for the use of the 
addressee(s) named above or may contain information that is legally privileged. If you are 
not the intended addressee, or the person responsible for delivering it to the intended addressee, 
you are hereby notified that reading, disseminating, distributing or copying this message is strictly 
prohibited. If you have received this message by mistake, please immediately notify us by 
replying to the message and delete the original message and any copies immediately thereafter. 

Thank you. 
****************************************************************************************** 
FACLD -


From arjan at helix-nebula.org  Mon Aug 23 21:15:52 2010
From: arjan at helix-nebula.org (Arjan Oosting)
Date: Mon, 23 Aug 2010 23:15:52 +0200
Subject: [rancid] Motorola BSR64000
In-Reply-To: <20100806180202.GZ18013@shrubbery.net>
References: <1280241137.23196.67.camel@reddwarf>
	
	<1280303480.11035.1.camel@brigand.as9143.internal>
	<20100730212212.GG15722@shrubbery.net>
	<1280814528.3081.1.camel@reddwarf>
	<20100806180202.GZ18013@shrubbery.net>
Message-ID: <1282598152.6815.84.camel@reddwarf>

Hi John,

Op vrijdag 06-08-2010 om 18:02 uur [tijdzone +0000], schreef john
heasley:
> verdict?

I have been to busy with work to test the scripts properly. I have
tested them against one of our BSR's which did work. Some things I
did notice:
      * Our in-house scripts run 'show running-config verbose' while
        motorancid just runs 'show running-config'. I am not sure
        whether
  I will test
them after my holiday,



From arjan at helix-nebula.org  Mon Aug 23 21:24:23 2010
From: arjan at helix-nebula.org (Arjan Oosting)
Date: Mon, 23 Aug 2010 23:24:23 +0200
Subject: [rancid] Motorola BSR64000
In-Reply-To: <20100806180202.GZ18013@shrubbery.net>
References: <1280241137.23196.67.camel@reddwarf>
	
	<1280303480.11035.1.camel@brigand.as9143.internal>
	<20100730212212.GG15722@shrubbery.net>
	<1280814528.3081.1.camel@reddwarf>
	<20100806180202.GZ18013@shrubbery.net>
Message-ID: <1282598663.6815.93.camel@reddwarf>

Hi John,

Op vrijdag 06-08-2010 om 18:02 uur [tijdzone +0000], schreef john
heasley:
> verdict?

I have been to busy with work to test the scripts properly. I have
tested them against one of our BSR's which did work. Some things I
did notice:
      * Our in-house scripts run 'show running-config verbose' while
     motorancid just runs 'show running-config'. I am not sure
     whether the extra configuration lines from the 
     'show running-config verbose' are essential. I have to ask that
     to my colleagues which operate these CMTS'es .
      * I am missing the 'show system 

I will test the moto-scripts more thoroughly after my holiday. 

Greetings Arjan




From ler762 at gmail.com  Mon Aug 23 21:44:33 2010
From: ler762 at gmail.com (Lee)
Date: Mon, 23 Aug 2010 17:44:33 -0400
Subject: [rancid] cygwin + long hostname = clogin hang
Message-ID: 

clogin hangs when I use it from cygwin to ssh into a cisco switch with
a long hostname.

It looks like a bug in cygwin expect causes the timeout.  The
        expect {
            -re $reprompt       { }
at line 611 fails if I've got a long hostname configured on the cisco switch:

expect: does "2ndFloorLibrarySW>" (spawn_id 4) match regular
expression "2ndFloorLib([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"[\n\r]+"? no
expect: timed out

If I change the pattern to include more of the hostname the match works:
expect: does "2ndFloorLibrarySW>" (spawn_id 4) match regular
expression "2ndFloorLibrar([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes
expect: set expect_out(0,string) "2ndFloorLibrarySW>"
expect: set expect_out(1,string) "ySW"
expect: set expect_out(spawn_id) "4"
expect: set expect_out(buffer) "2ndFloorLibrarySW>"

so my work-around is to use up to 21 characters of the hostname in
reprompt.  Line 610 changes from
  regsub -all {^(.{1,11}).*([#>])$} $prompt
{\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt
to
  regsub -all {^(.{1,21}).*([#>])$} $prompt
{\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt


And then at clogin line 423, if a timeout happens clogin hangs until I
open task manager and kill the ssh process (C in the terminal
window doesn't kill it).  The 'catch{close}; catch{wait};' doesn't end
the ssh session.  Adding a 'send "exit\r"' fixes the hang for me:

        # This helps cleanup each expect clause.
        expect_after {
            timeout {
                send_user "\nError: TIMEOUT reached\n"
                send "exit\r"           ;# --LR--
                catch {close}; catch {wait};
                if { $in_proc} {
                    return 1
                } else {
                    continue
                }

Lee

From arjan at helix-nebula.org  Mon Aug 23 21:48:31 2010
From: arjan at helix-nebula.org (Arjan Oosting)
Date: Mon, 23 Aug 2010 23:48:31 +0200
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: 
References: 
Message-ID: <1282600111.6815.94.camel@reddwarf>

Op zondag 22-08-2010 om 22:10 uur [tijdzone -0700], schreef Chris
Knight:
> Howdy,
> 
>   I was setting up Rancid to auto-backup the configs on some network
> gear, and found that rancid-run completely failed to pull the configs
> from two switches.  After some poking, verifying that clogin worked,
> etc, I determined that the only difference between these switches and
> the rest of the gear is that they are running IOS 11.2 while the rest
> of the hardware is 12.x.
> 
>   Is there a device type, or other configuration switch, that I can
> use to pull the configs off of IOS 11.x devices?

We have a couple of IOS 11.2 and 11.3 devices in our shop an they work
fine with rancid. What version of RANCID are you using? (clogin -V)

Did you try to run rancid by hand (rancid -d device) to see where it
goes wrong?

Greeting Arjan





From melchandler at firstam.com  Mon Aug 23 23:38:25 2010
From: melchandler at firstam.com (Chandler, Mel)
Date: Mon, 23 Aug 2010 16:38:25 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: <1282600111.6815.94.camel@reddwarf>
References: 
	<1282600111.6815.94.camel@reddwarf>
Message-ID: 

Did the switch not like write term or show running-config?

I'm running 2.3.3


HIT COMMAND:bur1sw3550d1#show debug
    In ShowDebug: bur1sw3550d1#show debug
HIT COMMAND:bur1sw3550d1#more system:running-config
    In WriteTerm: bur1sw3550d1#more system:running-config
bur1sw3550d1.trust.firstam.com: missed cmd(s): write term,show
running-config
bur1sw3550d1.trust.firstam.com: missed cmd(s): write term,show
running-config
bur1sw3550d1.trust.firstam.com: End of run not found
bur1sw3550d1.trust.firstam.com: End of run not found
Error: TIMEOUT reached






-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Arjan Oosting
Sent: Monday, August 23, 2010 2:49 PM
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] rancid-run and Catalyst switches running IOS 11.2

Op zondag 22-08-2010 om 22:10 uur [tijdzone -0700], schreef Chris
Knight:
> Howdy,
> 
>   I was setting up Rancid to auto-backup the configs on some network
> gear, and found that rancid-run completely failed to pull the configs
> from two switches.  After some poking, verifying that clogin worked,
> etc, I determined that the only difference between these switches and
> the rest of the gear is that they are running IOS 11.2 while the rest
> of the hardware is 12.x.
> 
>   Is there a device type, or other configuration switch, that I can
> use to pull the configs off of IOS 11.x devices?

We have a couple of IOS 11.2 and 11.3 devices in our shop an they work
fine with rancid. What version of RANCID are you using? (clogin -V)

Did you try to run rancid by hand (rancid -d device) to see where it
goes wrong?

Greeting Arjan




_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
****************************************************************************************** 
This message may contain confidential or proprietary information intended only for the use of the 
addressee(s) named above or may contain information that is legally privileged. If you are 
not the intended addressee, or the person responsible for delivering it to the intended addressee, 
you are hereby notified that reading, disseminating, distributing or copying this message is strictly 
prohibited. If you have received this message by mistake, please immediately notify us by 
replying to the message and delete the original message and any copies immediately thereafter. 

Thank you. 
****************************************************************************************** 
FACLD -


From melchandler at firstam.com  Mon Aug 23 23:49:32 2010
From: melchandler at firstam.com (Chandler, Mel)
Date: Mon, 23 Aug 2010 16:49:32 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: 
References: <1282600111.6815.94.camel@reddwarf>
	
Message-ID: 

Logging in and manually running the "more system:running-config" command
I notice it prompts for a filename, with the default being
running-config.  I wonder if that's what is messing rancid up?

Write-term seems to work ok, other than it outputs the config again.
Show running-config does what you'd expect.


-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chandler, Mel
Sent: Monday, August 23, 2010 4:38 PM
To: Arjan Oosting; rancid-discuss at shrubbery.net
Subject: Re: [rancid] rancid-run and Catalyst switches running IOS 11.2

Did the switch not like write term or show running-config?

I'm running 2.3.3


HIT COMMAND:bur1sw3550d1#show debug
    In ShowDebug: bur1sw3550d1#show debug
HIT COMMAND:bur1sw3550d1#more system:running-config
    In WriteTerm: bur1sw3550d1#more system:running-config
bur1sw3550d1.trust.firstam.com: missed cmd(s): write term,show
running-config
bur1sw3550d1.trust.firstam.com: missed cmd(s): write term,show
running-config
bur1sw3550d1.trust.firstam.com: End of run not found
bur1sw3550d1.trust.firstam.com: End of run not found
Error: TIMEOUT reached






-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Arjan Oosting
Sent: Monday, August 23, 2010 2:49 PM
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] rancid-run and Catalyst switches running IOS 11.2

Op zondag 22-08-2010 om 22:10 uur [tijdzone -0700], schreef Chris
Knight:
> Howdy,
> 
>   I was setting up Rancid to auto-backup the configs on some network
> gear, and found that rancid-run completely failed to pull the configs
> from two switches.  After some poking, verifying that clogin worked,
> etc, I determined that the only difference between these switches and
> the rest of the gear is that they are running IOS 11.2 while the rest
> of the hardware is 12.x.
> 
>   Is there a device type, or other configuration switch, that I can
> use to pull the configs off of IOS 11.x devices?

We have a couple of IOS 11.2 and 11.3 devices in our shop an they work
fine with rancid. What version of RANCID are you using? (clogin -V)

Did you try to run rancid by hand (rancid -d device) to see where it
goes wrong?

Greeting Arjan




_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
************************************************************************
****************** 
This message may contain confidential or proprietary information
intended only for the use of the 
addressee(s) named above or may contain information that is legally
privileged. If you are 
not the intended addressee, or the person responsible for delivering it
to the intended addressee, 
you are hereby notified that reading, disseminating, distributing or
copying this message is strictly 
prohibited. If you have received this message by mistake, please
immediately notify us by 
replying to the message and delete the original message and any copies
immediately thereafter. 

Thank you. 
************************************************************************
****************** 
FACLD -

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

From seanf at redseal.net  Tue Aug 24 00:22:52 2010
From: seanf at redseal.net (Finn, Sean)
Date: Mon, 23 Aug 2010 17:22:52 -0700 (PDT)
Subject: [rancid] Q: Current state of F5 Support
Message-ID: <010e01cb4322$910a46f0$b31ed4d0$@net>

Folks,

 I'd appreciate knowing the current state of affairs with regards to
RANCID's
ability to gather BOTH the F5 "bigip.conf", and the "bigip_base.conf"
files. 

I've seen references to RANCID scripts which can do this, but right now
I'm
only seeing the "bigip.conf" files. 


thanks

From boheme at gmail.com  Tue Aug 24 01:49:05 2010
From: boheme at gmail.com (Chris Knight)
Date: Mon, 23 Aug 2010 18:49:05 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: 
References: 
	<1282600111.6815.94.camel@reddwarf>
	
	
Message-ID: 

On Mon, Aug 23, 2010 at 4:49 PM, Chandler, Mel  wrote:
> Logging in and manually running the "more system:running-config" command
> I notice it prompts for a filename, with the default being
> running-config. ?I wonder if that's what is messing rancid up?

Found a fix.

You need to disable file prompt:

pxy-sw-18#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
pxy-sw-18(config)#no file prompt
pxy-sw-18(config)#exit
pxy-sw-18#write mem
Building configuration...
[OK]


After that, when I invoke "more system:running-config" I am no longer
prompted for the filename:

pxy-sw-18#more system:running-config
Building configuration...

From frnkblk at iname.com  Tue Aug 24 01:34:54 2010
From: frnkblk at iname.com (Frank Bulk - iName.com)
Date: Mon, 23 Aug 2010 20:34:54 -0500
Subject: [rancid] Motorola BSR64000
In-Reply-To: <1282598152.6815.84.camel@reddwarf>
References: <1280241137.23196.67.camel@reddwarf>	
		
	<1280303480.11035.1.camel@brigand.as9143.internal>	
	<20100730212212.GG15722@shrubbery.net>
	<1280814528.3081.1.camel@reddwarf>	
	<20100806180202.GZ18013@shrubbery.net>
	<1282598152.6815.84.camel@reddwarf>
Message-ID: 

The verbose option would show all the default settings that are not shown.  I decided not to include it, but I can see how that might be helpful to some folks.

Frank

-----Original Message-----
From: Arjan Oosting [mailto:arjan at helix-nebula.org] 
Sent: Monday, August 23, 2010 4:16 PM
To: john heasley
Cc: frnkblk at iname.com; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Re: Motorola BSR64000

Hi John,

Op vrijdag 06-08-2010 om 18:02 uur [tijdzone +0000], schreef john
heasley:
> verdict?

I have been to busy with work to test the scripts properly. I have
tested them against one of our BSR's which did work. Some things I
did notice:
      * Our in-house scripts run 'show running-config verbose' while
        motorancid just runs 'show running-config'. I am not sure
        whether
  I will test
them after my holiday,




From heas at shrubbery.net  Tue Aug 24 05:25:17 2010
From: heas at shrubbery.net (john heasley)
Date: Mon, 23 Aug 2010 22:25:17 -0700
Subject: [rancid] cygwin + long hostname = clogin hang
In-Reply-To: 
References: 
Message-ID: <20100824052517.GE28177@shrubbery.net>

Mon, Aug 23, 2010 at 05:44:33PM -0400, Lee:
> clogin hangs when I use it from cygwin to ssh into a cisco switch with
> a long hostname.
> 
> It looks like a bug in cygwin expect causes the timeout.  The
>         expect {
>             -re $reprompt       { }
> at line 611 fails if I've got a long hostname configured on the cisco switch:

likely means that the regex library is broken.  the length is not entirely
arbitrary.

> expect: does "2ndFloorLibrarySW>" (spawn_id 4) match regular
> expression "2ndFloorLib([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
> "[\n\r]+"? no
> expect: timed out
> 
> If I change the pattern to include more of the hostname the match works:
> expect: does "2ndFloorLibrarySW>" (spawn_id 4) match regular
> expression "2ndFloorLibrar([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes
> expect: set expect_out(0,string) "2ndFloorLibrarySW>"
> expect: set expect_out(1,string) "ySW"
> expect: set expect_out(spawn_id) "4"
> expect: set expect_out(buffer) "2ndFloorLibrarySW>"
> 
> so my work-around is to use up to 21 characters of the hostname in
> reprompt.  Line 610 changes from
>   regsub -all {^(.{1,11}).*([#>])$} $prompt
> {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt
> to
>   regsub -all {^(.{1,21}).*([#>])$} $prompt
> {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} reprompt
> 
> 
> And then at clogin line 423, if a timeout happens clogin hangs until I
> open task manager and kill the ssh process (C in the terminal
> window doesn't kill it).  The 'catch{close}; catch{wait};' doesn't end
> the ssh session.  Adding a 'send "exit\r"' fixes the hang for me:

maybe try the linux/solaris expect patches.

you could also try a unix box

From heas at shrubbery.net  Tue Aug 24 07:27:35 2010
From: heas at shrubbery.net (john heasley)
Date: Tue, 24 Aug 2010 00:27:35 -0700
Subject: [rancid] Q: Current state of F5 Support
In-Reply-To: <010e01cb4322$910a46f0$b31ed4d0$@net>
References: <010e01cb4322$910a46f0$b31ed4d0$@net>
Message-ID: <20100824072735.GG28177@shrubbery.net>

Mon, Aug 23, 2010 at 05:22:52PM -0700, Finn, Sean:
> Folks,
> 
>  I'd appreciate knowing the current state of affairs with regards to
> RANCID's
> ability to gather BOTH the F5 "bigip.conf", and the "bigip_base.conf"
> files. 
> 
> I've seen references to RANCID scripts which can do this, but right now
> I'm
> only seeing the "bigip.conf" files. 

these are the commands that it collects

{'bigpipe version'              => 'ShowVersion'},
{'bigpipe platform'             => 'ShowPlatform'},
{'cat /config/bigip.license'    => 'ShowLicense'},
{'bigpipe monitor list all'     => 'ShowMonitor'},
{'bigpipe profile list'         => 'ShowProfile'},
{'bigpipe base list'            => 'ShowBaseRun'},
{'bigpipe db show'              => 'ShowDb'}, 
{'bigpipe route static show'    => 'ShowRouteStatic'},
{'ls --full-time --color=never /config/ssl/ssl.crt' => 'ShowSslCrt'},
{'ls --full-time --color=never /config/ssl/ssl.key' => 'ShowSslKey'},
{'bigpipe list'                 => 'WriteTerm'}


From melchandler at firstam.com  Tue Aug 24 17:12:07 2010
From: melchandler at firstam.com (Chandler, Mel)
Date: Tue, 24 Aug 2010 10:12:07 -0700
Subject: [rancid] rancid-run and Catalyst switches running IOS 11.2
In-Reply-To: 
References: <1282600111.6815.94.camel@reddwarf>
	
Message-ID: 

This worked beautifully.  Thanks for your assistance.


-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Knight
Sent: Monday, August 23, 2010 6:49 PM
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] rancid-run and Catalyst switches running IOS 11.2

On Mon, Aug 23, 2010 at 4:49 PM, Chandler, Mel  wrote:
> Logging in and manually running the "more system:running-config" command
> I notice it prompts for a filename, with the default being
> running-config. ?I wonder if that's what is messing rancid up?

Found a fix.

You need to disable file prompt:

pxy-sw-18#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
pxy-sw-18(config)#no file prompt
pxy-sw-18(config)#exit
pxy-sw-18#write mem
Building configuration...
[OK]


After that, when I invoke "more system:running-config" I am no longer
prompted for the filename:

pxy-sw-18#more system:running-config
Building configuration...
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
****************************************************************************************** 
This message may contain confidential or proprietary information intended only for the use of the 
addressee(s) named above or may contain information that is legally privileged. If you are 
not the intended addressee, or the person responsible for delivering it to the intended addressee, 
you are hereby notified that reading, disseminating, distributing or copying this message is strictly 
prohibited. If you have received this message by mistake, please immediately notify us by 
replying to the message and delete the original message and any copies immediately thereafter. 

Thank you. 
****************************************************************************************** 
FACLD -


From boheme at gmail.com  Wed Aug 25 15:25:05 2010
From: boheme at gmail.com (Chris Knight)
Date: Wed, 25 Aug 2010 08:25:05 -0700
Subject: [rancid] Can the rancid diff be configured to ignore specific
	config lines?
Message-ID: 

Every time rancid-run executes, one of my ASA 5505's flags with the
following change:


@@ -35,7 +35,7 @@
 !Flash:   113  393696      Dec 17 2008 00:21:00
crypto_archive/crypto_arch_2.bin
 !Flash:   104  415956      Oct 14 2008 07:13:12  sslclient-win-1.1.4.176.pkg
 !Flash:    12  4096        May 01 2010 10:22:20  coredumpinfo
- !Flash:    13  43          Aug 25 2010 07:45:57  coredumpinfo/coredump.cfg
+ !Flash:    13  43          Aug 25 2010 07:50:59  coredumpinfo/coredump.cfg
 !Flash:     3  4096        Oct 14 2008 09:21:36  log
 !Flash:   105  7598456     Oct 14 2008 09:39:24  asdm-615.bin
 !Flash:   106  14137344    Oct 14 2008 09:52:10  asa804-k8.bin

Is there a way I can get rancid to ignore this one line when it does the diff?

Or, how to I keep this file from being touched with each rancid-run?

-Chris

From ron.whitney at doitbest.com  Wed Aug 25 16:13:12 2010
From: ron.whitney at doitbest.com (Ron Whitney)
Date: Wed, 25 Aug 2010 12:13:12 -0400
Subject: [rancid] Can the rancid diff be configured to ignore
	specificconfig lines?
In-Reply-To: 
Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6503EE7BD8@EXCHANGE1.ntserv.doitbestcorp.com>

That's a known bug in v8.2 of the ASA software.  It was fixed in
v8.2(1.2) and later.  See the following link for details.

http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method
=fetchBugDetails&bugId=CSCsz85597


Ron Whitney
Network Administrator

Do it Best Corp. | 6502 Nelson Road | Fort Wayne, IN 46803
260.748.5657 (direct) | 260.748.5623 (fax) 



> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net 
> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of 
> Chris Knight
> Sent: Wednesday, August 25, 2010 11:25
> To: rancid-discuss
> Subject: [rancid] Can the rancid diff be configured to ignore 
> specificconfig lines?
> 
> 
> Every time rancid-run executes, one of my ASA 5505's flags 
> with the following change:
> 
> 
> @@ -35,7 +35,7 @@
>  !Flash:   113  393696      Dec 17 2008 00:21:00
> crypto_archive/crypto_arch_2.bin
>  !Flash:   104  415956      Oct 14 2008 07:13:12  
> sslclient-win-1.1.4.176.pkg
>  !Flash:    12  4096        May 01 2010 10:22:20  coredumpinfo
> - !Flash:    13  43          Aug 25 2010 07:45:57  
> coredumpinfo/coredump.cfg
> + !Flash:    13  43          Aug 25 2010 07:50:59  
> coredumpinfo/coredump.cfg
>  !Flash:     3  4096        Oct 14 2008 09:21:36  log
>  !Flash:   105  7598456     Oct 14 2008 09:39:24  asdm-615.bin
>  !Flash:   106  14137344    Oct 14 2008 09:52:10  asa804-k8.bin
> 
> Is there a way I can get rancid to ignore this one line when 
> it does the diff?
> 
> Or, how to I keep this file from being touched with each rancid-run?
> 
> -Chris
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net 
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 

From boheme at gmail.com  Wed Aug 25 18:43:48 2010
From: boheme at gmail.com (Chris Knight)
Date: Wed, 25 Aug 2010 11:43:48 -0700
Subject: [rancid] Can the rancid diff be configured to ignore
 specificconfig lines?
In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6503EE7BD8@EXCHANGE1.ntserv.doitbestcorp.com>
References: 
	<1FD6BFAE6EA54341821D01FB8E617B6503EE7BD8@EXCHANGE1.ntserv.doitbestcorp.com>
Message-ID: 

Thank you, Ron and Lance for the quick responses.  After posting I
found this, as well:

http://www.router-secrets.net/tools/rancid/rancid-get-rid-of-recurring-changes-of-coredump-cfg-asa/

We're doing an upgrade on the ASA tonight.  :)

-Chris

On Wed, Aug 25, 2010 at 9:13 AM, Ron Whitney  wrote:
> That's a known bug in v8.2 of the ASA software. ?It was fixed in
> v8.2(1.2) and later. ?See the following link for details.
>
> http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method
> =fetchBugDetails&bugId=CSCsz85597
>
>
> Ron Whitney
> Network Administrator
>
> Do it Best Corp. | 6502 Nelson Road | Fort Wayne, IN 46803
> 260.748.5657 (direct) | 260.748.5623 (fax)
>
>
>
>> -----Original Message-----
>> From: rancid-discuss-bounces at shrubbery.net
>> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of
>> Chris Knight
>> Sent: Wednesday, August 25, 2010 11:25
>> To: rancid-discuss
>> Subject: [rancid] Can the rancid diff be configured to ignore
>> specificconfig lines?
>>
>>
>> Every time rancid-run executes, one of my ASA 5505's flags
>> with the following change:
>>
>>
>> @@ -35,7 +35,7 @@
>> ?!Flash: ? 113 ?393696 ? ? ?Dec 17 2008 00:21:00
>> crypto_archive/crypto_arch_2.bin
>> ?!Flash: ? 104 ?415956 ? ? ?Oct 14 2008 07:13:12
>> sslclient-win-1.1.4.176.pkg
>> ?!Flash: ? ?12 ?4096 ? ? ? ?May 01 2010 10:22:20 ?coredumpinfo
>> - !Flash: ? ?13 ?43 ? ? ? ? ?Aug 25 2010 07:45:57
>> coredumpinfo/coredump.cfg
>> + !Flash: ? ?13 ?43 ? ? ? ? ?Aug 25 2010 07:50:59
>> coredumpinfo/coredump.cfg
>> ?!Flash: ? ? 3 ?4096 ? ? ? ?Oct 14 2008 09:21:36 ?log
>> ?!Flash: ? 105 ?7598456 ? ? Oct 14 2008 09:39:24 ?asdm-615.bin
>> ?!Flash: ? 106 ?14137344 ? ?Oct 14 2008 09:52:10 ?asa804-k8.bin
>>
>> Is there a way I can get rancid to ignore this one line when
>> it does the diff?
>>
>> Or, how to I keep this file from being touched with each rancid-run?
>>
>> -Chris
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
>

From slackert at gmail.com  Thu Aug 26 22:35:52 2010
From: slackert at gmail.com (Slacker T)
Date: Thu, 26 Aug 2010 17:35:52 -0500
Subject: [rancid] F5 bigpipe shell user
Message-ID: 

Hello all,

I'm new with rancid, so please forgive any naivety!

I'm trying to setup rancid to access a F5 3600 LTM running 10.2.  The
account that rancid uses is a limited account, it's Role is "guest" and it's
terminal access is set to "bigpipe shell".  It's basically a read-only
account that can only list the config.  The prompt that this user gets is
"bp>".  Currently the only command I need to run is "b list".

Does rancid version 2.3.4 support this out of the box? Or do I need to edit
something outside of .cloginrc and router.db?

Would I be better off abandoning this approach and just allow the user full
shell access, i.e. root with a "user at hostname ~ #" prompt?

FWIW, I do have rancid working fine with other Cisco and Juniper devices.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From heas at shrubbery.net  Fri Aug 27 00:07:49 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 26 Aug 2010 17:07:49 -0700
Subject: [rancid] reason for autoenable?
In-Reply-To: 
References: 
Message-ID: <20100827000749.GT21183@shrubbery.net>

Thu, Aug 19, 2010 at 03:04:25PM -0400, Lee:
>   ... more newbie questions
> 
> If the userid automatically gets priv level 15 at login and you forget
> to set the autoenable flag the clogin script times out waiting for the
> ">" prompt.  Why was the autoenable flag added instead of changing the
> expect script to look for # or >?  It seems nicer not to require a
> flag...

i'll blame Hank again.  autoenable just simplifies the code by moving the
burden.

I have a patch to remove it, but it still wants to enable.  i'd like poeple
to test before its is committed.  see attached.
-------------- next part --------------
Index: bin/clogin.in
===================================================================
--- bin/clogin.in	(revision 2244)
+++ bin/clogin.in	(working copy)
@@ -312,7 +312,7 @@
 # returns: 0 on success, 1 on failure, -1 if rsh was used successfully
 proc login { router user userpswd passwd enapasswd cmethod cyphertype } {
     global command spawn_id in_proc do_command do_script platform
-    global prompt u_prompt p_prompt e_prompt sshcmd
+    global prompt prompt_match u_prompt p_prompt e_prompt sshcmd
     set in_proc 1
     set uprompt_seen 0
 
@@ -542,7 +542,10 @@
 				  }
 				  exp_continue
 				}
-	-re "$prompt"		{ break; }
+	-re "$prompt"		{
+				  set prompt_match $expect_out(0,string);
+				  break;
+				}
 	"Login invalid"		{
 				  send_user "\nError: Invalid login: $router\n";
 				  catch {close}; catch {wait}; return 1
@@ -719,6 +722,8 @@
 source_password_file $password_file
 set in_proc 0
 set exitval 0
+set prompt_match ""
+set enable 0
 foreach router [lrange $argv $i end] {
     set router [string tolower $router]
     # attempt at platform switching.
@@ -731,26 +736,8 @@
 	set timeout $timeoutdflt
     }
 
-    # Figure out the prompt.
-    # autoenable is off by default.  If we have it defined, it was done
-    # on the command line.  If it is not specifically set on the command
-    # line, check the password file.
-    if $avautoenable {
-	set autoenable 1
-	set enable 0
-	set prompt "(#| \\(enable\\))"
-    } else {
-	set ae [find autoenable $router]
-	if { "$ae" == "1" } {
-	    set autoenable 1
-	    set enable 0
-	    set prompt "(#| \\(enable\\))"
-	} else {
-	    set autoenable 0
-	    set enable $avenable
-	    set prompt ">"
-	}
-    }
+    # Default prompt.
+    set prompt "(>|#| \\(enable\\))"
 
     # look for noenable option in .cloginrc
     if { [find noenable $router] != "" } {
@@ -845,6 +832,22 @@
 	# if login failed or rsh was unsuccessful, move on to the next device
 	continue
     }
+    # Figure out the prompt.
+    if { [regexp -- "(#| \\(enable\\))" $prompt_match junk] == 1 } {
+	set enable 0
+    } else {
+	if { $avenable == 0 } {
+	    set enable 0
+	} else {
+	    set ne [find noenable $router]
+	    set ae [find autoenable $router]
+	    if { "$ne" == "1" || "$ae" == "1" || $avautoenable } {
+		set enable 0
+	    } else {
+		set enable 1
+	    }
+	}
+    }
     if { $enable } {
 	if {[do_enable $enauser $enapasswd]} {
 	    if { $do_command || $do_script } {

From heas at shrubbery.net  Fri Aug 27 00:19:50 2010
From: heas at shrubbery.net (john heasley)
Date: Thu, 26 Aug 2010 17:19:50 -0700
Subject: [rancid] F5 bigpipe shell user
In-Reply-To: 
References: 
Message-ID: <20100827001950.GU21183@shrubbery.net>

Thu, Aug 26, 2010 at 05:35:52PM -0500, Slacker T:
> Hello all,
> 
> I'm new with rancid, so please forgive any naivety!
> 
> I'm trying to setup rancid to access a F5 3600 LTM running 10.2.  The
> account that rancid uses is a limited account, it's Role is "guest" and it's
> terminal access is set to "bigpipe shell".  It's basically a read-only
> account that can only list the config.  The prompt that this user gets is
> "bp>".  Currently the only command I need to run is "b list".
> 
> Does rancid version 2.3.4 support this out of the box? Or do I need to edit
> something outside of .cloginrc and router.db?

no; i dont have any of these, but not long ago a user told me that the >
prompt had been deprecated.  somewhere along the line of trying to get
the f5 module working properly, that support was removed.  this was
probably also related to the changes in commands collected.

> Would I be better off abandoning this approach and just allow the user full
> shell access, i.e. root with a "user at hostname ~ #" prompt?

yes

From ian.harvey at rsmtenon.com  Fri Aug 27 08:46:00 2010
From: ian.harvey at rsmtenon.com (Ian Harvey)
Date: Fri, 27 Aug 2010 08:46:00 +0000
Subject: [rancid] Change of device from Extreme to Cisco - clogin does not
	enable
Message-ID: 

Good Morning, I am hoping that you can help with this problem? I have changed a device from Extreme to Cisco, but now the device config will not update. I have tested login using the command

 clogin 

and it logs in to exec mode (>), but then it seems to hang - it does not 'type' enable and login to priv mode (#).

(it seems to 'remember' that it was Extreme)

I have tried removing it completely, and leaving RANCID to do its thing, then re-adding it, but to no avail. I have added it into RANCID under a false name in DNS, and this works correctly.

Is there a fix for this?

Many thanks in advance for your excellent product, and any help you may provide

Regards

Ian

**********************************************************************
www.rsmtenon.com

RSM Tenon is one of the most progressive and entrepreneurial professional services firms in the UK, with leadership in the provision of risk management, tax, recovery, financial management and business advisory services.

We are the UK (excluding N.I.) member of RSM International, the 6th largest global accounting network of independent firms, represented by over 30,000 across more than 70 countries worldwide. 
This email and the information contained in it and in any attachments are confidential and may be privileged. If you have received this email in error please notify us immediately. If you are not the intended recipient, you are not authorised to, and must not use, disclose, copy, distribute, retain or rely on this email or any part of it. 

All reasonable precautions have been taken to ensure no viruses are present in this e-mail. RSM Tenon cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments and recommend that you subject these to your virus checking procedures prior to use. 

Advice to clients on US Tax matters: Although it may not apply to this assignment, please note that, unless expressly stated otherwise, any written advice contained in, forwarded with, or attached to this communication is not intended or written by RSM Tenon or any of its subsidiaries to be used, and cannot be used, by any person for the purpose of avoiding any US penalties that may be imposed under the US Internal Revenue Service Code. 
Directors and staff acting as Administrative Receivers and Administrators act as agents of the company over which they are appointed and contract without personal liability.  
RSM Tenon may monitor outgoing and incoming e-mails and other telecommunications on its e-mail and telecommunications systems. 

A list of Directors' names is open to inspection at 66 Chiltern Street, London, W1U 4GB, together with a list of appointment takers under the Insolvency Act 1986 and the professional bodies issuing their practising licences. 

RSM Tenon?s legal, privacy and regulatory information is available at: http://www.rsmtenon.com

RSM Tenon Limited (No 4066924) is registered in England and Wales. Registered office 66 Chiltern Street, London, W1U 4GB

**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 110082709461001701.gif
Type: image/gif
Size: 5245 bytes
Desc: not available
URL: 

From rwest at zyedge.com  Fri Aug 27 08:59:03 2010
From: rwest at zyedge.com (Ryan West)
Date: Fri, 27 Aug 2010 08:59:03 +0000
Subject: [rancid] Change of device from Extreme to Cisco - clogin does
 not	enable
In-Reply-To: 
References: 
Message-ID: <5DC4853C6CC3EE4788779E0726E034DD3EF249@zy-ex1.zyedge.local>

Sounds like autoenable is set to 1 in .cloginrc

-ryan

From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Ian Harvey
Sent: Friday, August 27, 2010 4:46 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] Change of device from Extreme to Cisco - clogin does not enable

Good Morning, I am hoping that you can help with this problem? I have changed a device from Extreme to Cisco, but now the device config will not update. I have tested login using the command

 clogin 

and it logs in to exec mode (>), but then it seems to hang - it does not 'type' enable and login to priv mode (#).

(it seems to 'remember' that it was Extreme)

I have tried removing it completely, and leaving RANCID to do its thing, then re-adding it, but to no avail. I have added it into RANCID under a false name in DNS, and this works correctly.

Is there a fix for this?

Many thanks in advance for your excellent product, and any help you may provide

Regards

Ian


[RSM Tenon]



do you need to print this email? Please think of the environment

________________________________

RSM Tenon is one of the most progressive and entrepreneurial professional services firms in the UK, with leadership in the provision of risk management, tax, recovery, financial management and business advisory services.

We are the UK (excluding N.I.) member of RSM International, the 6th largest global accounting network of independent firms, represented by over 30,000 people working in over 700 offices across more than 70 countries worldwide.
This email and the information contained in it and in any attachments are confidential and may be privileged. If you have received this email in error please notify us immediately. If you are not the intended recipient, you are not authorised to, and must not use, disclose, copy, distribute, retain or rely on this email or any part of it.

All reasonable precautions have been taken to ensure no viruses are present in this e-mail. RSM Tenon cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments and recommend that you subject these to your virus checking procedures prior to use.

Advice to clients on US Tax matters: Although it may not apply to this assignment, please note that, unless expressly stated otherwise, any written advice contained in, forwarded with, or attached to this communication is not intended or written by RSM Tenon or any of its subsidiaries to be used, and cannot be used, by any person for the purpose of avoiding any US penalties that may be imposed under the US Internal Revenue Service Code.

Directors and staff acting as Administrative Receivers and Administrators act as agents of the company over which they are appointed and contract without personal liability.

RSM Tenon may monitor outgoing and incoming e-mails and other telecommunications on its e-mail and telecommunications systems.

A list of Directors' names is open to inspection at 66 Chiltern Street, London, W1U 4GB, together with a list of appointment takers under the Insolvency Act 1986 and the professional bodies issuing their practising licences.

RSM Tenon's legal, privacy and regulatory information is available at: www.rsmtenon.com

RSM Tenon Limited (No 4066924) is registered in England and Wales. Registered office 66 Chiltern Street, London, W1U 4GB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 5245 bytes
Desc: image001.gif
URL: 

From ler762 at gmail.com  Fri Aug 27 13:35:01 2010
From: ler762 at gmail.com (Lee)
Date: Fri, 27 Aug 2010 09:35:01 -0400
Subject: [rancid] reason for autoenable?
In-Reply-To: <20100827000749.GT21183@shrubbery.net>
References: 
	<20100827000749.GT21183@shrubbery.net>
Message-ID: 

On 8/26/10, john heasley  wrote:
> Thu, Aug 19, 2010 at 03:04:25PM -0400, Lee:
>>   ... more newbie questions
>>
>> If the userid automatically gets priv level 15 at login and you forget
>> to set the autoenable flag the clogin script times out waiting for the
>> ">" prompt.  Why was the autoenable flag added instead of changing the
>> expect script to look for # or >?  It seems nicer not to require a
>> flag...
>
> i'll blame Hank again.  autoenable just simplifies the code by moving the
> burden.
>
> I have a patch to remove it, but it still wants to enable.  i'd like poeple
> to test before its is committed.  see attached.

I'll be glad to give it a try; I need to apply the patch to clogin.in
and then do a "make && make install" - correct?

I'm not going to be at work 'til Monday, so it'll be a few days

Thanks,
Lee

From ler762 at gmail.com  Fri Aug 27 14:06:25 2010
From: ler762 at gmail.com (Lee)
Date: Fri, 27 Aug 2010 10:06:25 -0400
Subject: [rancid] cygwin + long hostname = clogin hang
In-Reply-To: <20100824052517.GE28177@shrubbery.net>
References: 
	<20100824052517.GE28177@shrubbery.net>
Message-ID: 

On 8/24/10, john heasley  wrote:
> Mon, Aug 23, 2010 at 05:44:33PM -0400, Lee:
>> clogin hangs when I use it from cygwin to ssh into a cisco switch with
>> a long hostname.
>>
>> It looks like a bug in cygwin expect causes the timeout.  The
>>         expect {
>>             -re $reprompt       { }
>> at line 611 fails if I've got a long hostname configured on the cisco
>> switch:
>
> likely means that the regex library is broken.  the length is not entirely
> arbitrary.

Just out of curiosity - what made you pick up to the first 11 chars of
the prompt?

  <.. snip regex problem description ..>
>>
>> And then at clogin line 423, if a timeout happens clogin hangs until I
>> open task manager and kill the ssh process (C in the terminal
>> window doesn't kill it).  The 'catch{close}; catch{wait};' doesn't end
>> the ssh session.  Adding a 'send "exit\r"' fixes the hang for me:
>
> maybe try the linux/solaris expect patches.

Is there some situation where sending "exit\r" after getting a timeout
would be a bad idea?

I found an expect doc that said 'close' was supposed to close an open
connection, but it clearly doesn't for ssh with cygwin expect.
Changing the length of reprompt is a cygwin work-around (and if anyone
else runs into the same problem, the work-around is in the archives
now :), but is sending an exit after getting a timeout a cygwin
work-around or a not-so-bad idea for general use?

> you could also try a unix box

$WORK can be a bit strange.  I've got PC admin privs, in part, to
'evaluate software' but I was told that I couldn't install this
software on a linux box until I got the software approved.  *sigh*

Thanks,
Lee

From heas at shrubbery.net  Fri Aug 27 14:55:38 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 27 Aug 2010 07:55:38 -0700
Subject: [rancid] reason for autoenable?
In-Reply-To: 
References: 
	<20100827000749.GT21183@shrubbery.net>
	
Message-ID: <20100827145538.GA21597@shrubbery.net>

Fri, Aug 27, 2010 at 09:35:01AM -0400, Lee:
> On 8/26/10, john heasley  wrote:
> > Thu, Aug 19, 2010 at 03:04:25PM -0400, Lee:
> >>   ... more newbie questions
> >>
> >> If the userid automatically gets priv level 15 at login and you forget
> >> to set the autoenable flag the clogin script times out waiting for the
> >> ">" prompt.  Why was the autoenable flag added instead of changing the
> >> expect script to look for # or >?  It seems nicer not to require a
> >> flag...
> >
> > i'll blame Hank again.  autoenable just simplifies the code by moving the
> > burden.
> >
> > I have a patch to remove it, but it still wants to enable.  i'd like poeple
> > to test before its is committed.  see attached.
> 
> I'll be glad to give it a try; I need to apply the patch to clogin.in
> and then do a "make && make install" - correct?

either clogin or clogin.in; the patch affects nothing that is replaced by
the autoconf process.

From hank at rem.com  Fri Aug 27 15:34:33 2010
From: hank at rem.com (Hank Kilmer)
Date: Fri, 27 Aug 2010 11:34:33 -0400
Subject: [rancid] reason for autoenable?
In-Reply-To: <20100827000749.GT21183@shrubbery.net>
References: 
	<20100827000749.GT21183@shrubbery.net>
Message-ID: <4C77DB09.2090006@rem.com>

On 8/26/10 8:07 PM, john heasley wrote:
> Thu, Aug 19, 2010 at 03:04:25PM -0400, Lee:
>>   ... more newbie questions
>>
>> If the userid automatically gets priv level 15 at login and you forget
>> to set the autoenable flag the clogin script times out waiting for the
>> ">" prompt.  Why was the autoenable flag added instead of changing the
>> expect script to look for # or >?  It seems nicer not to require a
>> flag...
> 
> i'll blame Hank again.  autoenable just simplifies the code by moving the
> burden.

I must admit, that one is my fault.  It is a product of having working
code long ago, changing some of our routers to autoenable for some
account and realizing I needed to update rancid to match.  It was how my
brain works...I like to explicitly tell programs what I want and expect.
 The more thinking they do for me, the more mistakes can get hidden.
This one, however, is a bit overkill in hindsight.

> I have a patch to remove it, but it still wants to enable.  i'd like poeple
> to test before its is committed.  see attached.

Let's get this tested!
-Hank

From heas at shrubbery.net  Fri Aug 27 16:00:12 2010
From: heas at shrubbery.net (john heasley)
Date: Fri, 27 Aug 2010 09:00:12 -0700
Subject: [rancid] cygwin + long hostname = clogin hang
In-Reply-To: 
References: 
	<20100824052517.GE28177@shrubbery.net>
	
Message-ID: <20100827160012.GC21597@shrubbery.net>

Fri, Aug 27, 2010 at 10:06:25AM -0400, Lee:
> On 8/24/10, john heasley  wrote:
> > Mon, Aug 23, 2010 at 05:44:33PM -0400, Lee:
> >> clogin hangs when I use it from cygwin to ssh into a cisco switch with
> >> a long hostname.
> >>
> >> It looks like a bug in cygwin expect causes the timeout.  The
> >>         expect {
> >>             -re $reprompt       { }
> >> at line 611 fails if I've got a long hostname configured on the cisco
> >> switch:
> >
> > likely means that the regex library is broken.  the length is not entirely
> > arbitrary.
> 
> Just out of curiosity - what made you pick up to the first 11 chars of
> the prompt?

i do not remember exactly how I arrived at 11, but it is a balance of
being as long as possible to be unique and maintaining the match when in
configure mode (see -x and -s).

>   <.. snip regex problem description ..>
> >>
> >> And then at clogin line 423, if a timeout happens clogin hangs until I
> >> open task manager and kill the ssh process (C in the terminal
> >> window doesn't kill it).  The 'catch{close}; catch{wait};' doesn't end
> >> the ssh session.  Adding a 'send "exit\r"' fixes the hang for me:
> >
> > maybe try the linux/solaris expect patches.
> 
> Is there some situation where sending "exit\r" after getting a timeout
> would be a bad idea?

you may not have a file descriptor to write to, but otherwise i doubt it.
its as easy to just close the connection and it then the script does not
need to consider state of the device, though it means that it relies upon
the device to clean-up.

From melchandler at firstam.com  Fri Aug 27 16:31:55 2010
From: melchandler at firstam.com (Chandler, Mel)
Date: Fri, 27 Aug 2010 09:31:55 -0700
Subject: [rancid] F5 BigIP setup for Rancid
Message-ID: 

Is there instructions or a howto for configuring Rancid to pulling
configs from a F5 Big-IP?  Thanks.

 

Chandler Bing


******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

Thank you.
******************************************************************************************
FACLD ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From ler762 at gmail.com  Tue Aug 31 13:49:01 2010
From: ler762 at gmail.com (Lee)
Date: Tue, 31 Aug 2010 09:49:01 -0400
Subject: [rancid] reason for autoenable?
In-Reply-To: <20100827145538.GA21597@shrubbery.net>
References: 
	<20100827000749.GT21183@shrubbery.net>
	
	<20100827145538.GA21597@shrubbery.net>
Message-ID: 

On 8/27/10, john heasley  wrote:
> Fri, Aug 27, 2010 at 09:35:01AM -0400, Lee:
>> On 8/26/10, john heasley  wrote:
>> > Thu, Aug 19, 2010 at 03:04:25PM -0400, Lee:
>> >>   ... more newbie questions
>> >>
>> >> If the userid automatically gets priv level 15 at login and you forget
>> >> to set the autoenable flag the clogin script times out waiting for the
>> >> ">" prompt.  Why was the autoenable flag added instead of changing the
>> >> expect script to look for # or >?  It seems nicer not to require a
>> >> flag...
>> >
>> > i'll blame Hank again.  autoenable just simplifies the code by moving
>> > the
>> > burden.
>> >
>> > I have a patch to remove it, but it still wants to enable.  i'd like
>> > poeple
>> > to test before its is committed.  see attached.
>>
>> I'll be glad to give it a try; I need to apply the patch to clogin.in
>> and then do a "make && make install" - correct?
>
> either clogin or clogin.in; the patch affects nothing that is replaced by
> the autoconf process.

Works for me :)

I patched clogin & had no problems with a
  clogin -c "sh int status err" $DEV
on various IOS switches at work.  We don't have any CatOS switches, so
I couldn't test that.

Thanks,
Lee

From rob at progob.nl  Tue Aug 31 13:15:50 2010
From: rob at progob.nl (Rob Maas)
Date: Tue, 31 Aug 2010 15:15:50 +0200
Subject: [rancid] SVN Update issue?
Message-ID: 

I configured Rancid to use svn instead of cvs.

When I created the config, I run "rancid-cvs", which creates the directories
in the ./var folder.
When I run "rancid-run" everything works flawless. (no devices added to
router.db)

When I edit "router.db" by adding some devices to this file and run
"rancid-run" agian. I get the following errors in the log.

Trying to get all of the configs.
All routers sucessfully completed.

Sending        .
svn: Commit failed (details follow):
svn: Directory '/5000-Hoofdkantoor' is out of date

After some searching through the mailing list I found out, that using "svn
update" would fix this problem.
Indeed it did, after "svn update" and running "rancid-run", I got the
following results in the log.

Trying to get all of the configs.
All routers sucessfully completed.

Sending        .
Sending        configs/swcore
Sending        configs/swdist
Sending        configs/swrsadtc1
Sending        configs/swrsadtc2
Sending        configs/swsrvdtc1
Sending        configs/swsrvdtc2
Sending        router.db
Transmitting file data .......
Committed revision 10.

It would be nice if this "svn update" issue would be fixed, cause I have
over 200 groups.
It is fairly easy to forget "svn update" after updating one of the groups.

I'm running Rancid 2.3.4 on OpenSuse 11.2.

Maybe needles to say, but when I use CVS instead of SVN none of the above
problems occur.

With kind regards,
Rob Maas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From rzhu at akamai.cn  Fri Aug 13 08:15:49 2010
From: rzhu at akamai.cn (Ricky Zhu)
Date: Fri, 13 Aug 2010 08:15:49 -0000
Subject: [rancid] how to use other SMTP server in rancid
Message-ID: 

Hi folks,
   I have installed a rancid in a Ubuntu machine. It works fine. But I can't get rancid email notification. It fails to send it to me. Please see the following email I found in my Ubuntu box. Who does know what the problem is? Thanks in advance.


& 1
Message 1:
>From MAILER-DAEMON  Mon May 17 07:01:10 2010
X-Original-To: rancid at ytops
Date: Mon, 17 May 2010 07:01:09 +0000 (UTC)
From: MAILER-DAEMON at ytops (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: rancid at ytops
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="1F6BD9A24B.1274079669/ytops"

This is a MIME-encapsulated message.

--1F6BD9A24B.1274079669/ytops
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host ytops.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

 (expanded from ): host
    akamai.cn.2.0001.arsmtp.com[174.143.82.83] said: 573 rancid at ytops failed to
    route the address (in reply to MAIL FROM command)

--1F6BD9A24B.1274079669/ytops
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; ytops
X-Postfix-Queue-ID: 1F6BD9A24B


Ricky zhu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 

From ndinimotto at hotmail.com  Thu Aug 26 12:38:31 2010
From: ndinimotto at hotmail.com (richard the_black)
Date: Fri, 27 Aug 2010 00:38:31 +1200
Subject: [rancid]   HP Switches Stacked
Message-ID: 


Hello World
 
Just discovered the joys of Rancid and then the heartbreak.
 
Did anybody ever find solution to the HP Stacked issue ? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: