From asmirnoff at office.beeline.ru Mon Aug 3 11:08:00 2009 From: asmirnoff at office.beeline.ru (Smirnoff Alexander) Date: Mon, 3 Aug 2009 15:08:00 +0400 Subject: [rancid] Filter flash: related strings from mail diff output Message-ID: <986544234AB0A44BADE40DF502E2012A022CAE59@SPBMAIL.spb.sovintel.net> Hello! I an think about purposes flash: related config lines in RANCID configs and find this descision: These lines are stored in CVS as is, but filtered from mail diff output. - !Flash: nvram:?? 377? -rw-?????? 90202??????????????????? ? startup-config + !Flash: nvram:?? 377? -rw-?????? 89840??????????????????? ? startup-config Where a can add it grep -v "!Flash:" command for filter this lines from config diffs messages? -- Regards, Alexandr Smirnov +7(812)3468600 # 54682 Head of Data Transmission Networks Monitoring Service mailto:asmirnoff at office.beeline.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090803/67cf1ce6/attachment.html From rtw at zcorum.com Mon Aug 3 19:37:07 2009 From: rtw at zcorum.com (Rob Wynne) Date: Mon, 03 Aug 2009 15:37:07 -0400 Subject: [rancid] UBR error In-Reply-To: <986544234AB0A44BADE40DF502E2012A022CAE59@SPBMAIL.spb.sovintel.net> References: <986544234AB0A44BADE40DF502E2012A022CAE59@SPBMAIL.spb.sovintel.net> Message-ID: <1249328227.5676.15.camel@zen> We recently brought a new customer online and configured our RANCID installation for their equipment. One of the CMTS devices is not reporting properly, and I'm not sure how to troubleshoot it. Here's the info on the device: IOS (tm) 7200 Software (UBR7200-IK8S-M), Version 12.2(15)BC2f, RELEASE SOFTWARE (fc1) cisco uBR7246VXR (NPE-G1) processor (revision B) with 983040K/65536K bytes of memory. Processor board ID CAT09080ETY SB-1 CPU at 700Mhz, Implementation 1, Rev 0.2, 512KB L2 Cache 6 slot VXR midplane, Version 2. System image file is "disk2:ubr7200-ik8s-mz.122-15.BC2f.bin" And here's the error from the rancid log: Trying to get all of the configs. cmts.xxxxxxx.com: missed cmd(s): write term,show running-config cmts.xxxxxxx.com: End of run not found Error: TIMEOUT reached ===================================== Getting missed routers: round 1. cmts.xxxxxxx.com: missed cmd(s): write term,show running-config cmts.xxxxxxx.com: End of run not found Error: TIMEOUT reached ...etc... If i clogin to the box and do a write term or show running-config, it gives me the output I expect. They have another cmts which is reporting fine, though it's running a different version of the IOS: IOS (tm) 7200 Software (UBR7200-IK9S-M), Experimental Version 12.3 cisco uBR7246VXR (NPE-G1) processor (revision A) with 983040K/65536K bytes of memory. Processor board ID SCA061600NC SB-1 CPU at 700MHz, Implementation 1, Rev 0.2, 512KB L2 Cache 6 slot VXR midplane, Version 2.0 System image file is "disk2:ubr7200-ik9s-mz.123-9a.BC7.bin" Any help in how to isolate this would be appreciated. Cheers, Rob Wynne Senior Systems Administrator ISP Alliance, Inc. From rtw at zcorum.com Mon Aug 3 19:54:57 2009 From: rtw at zcorum.com (Rob Wynne) Date: Mon, 03 Aug 2009 15:54:57 -0400 Subject: [rancid] Re: UBR error In-Reply-To: <1249328227.5676.15.camel@zen> References: <986544234AB0A44BADE40DF502E2012A022CAE59@SPBMAIL.spb.sovintel.net> <1249328227.5676.15.camel@zen> Message-ID: <1249329298.5676.18.camel@zen> Answering my own question... After sending this off, I started digging a bit further and found the -d option for debugging. Running this helped me discover that it was actually the command *previous* to the ones in the error log it was hung up on. The problem was that this cmts had an option set to prompt for the filename when you asked it to do a "more system:running-config". This option is in the global config, and is "file prompt noisy". We changed it to "file prompt alert", which only prompts when you are rebooting or erasing the filesystem. Sorry to clutter up the list with my learning curve. I was getting quite frustrated. :) Rob On Mon, 2009-08-03 at 15:37 -0400, Rob Wynne wrote: > We recently brought a new customer online and configured our RANCID > installation for their equipment. One of the CMTS devices is not > reporting properly, and I'm not sure how to troubleshoot it. > > Here's the info on the device: > > IOS (tm) 7200 Software (UBR7200-IK8S-M), Version 12.2(15)BC2f, RELEASE > SOFTWARE (fc1) > cisco uBR7246VXR (NPE-G1) processor (revision B) with 983040K/65536K > bytes of memory. > Processor board ID CAT09080ETY > SB-1 CPU at 700Mhz, Implementation 1, Rev 0.2, 512KB L2 Cache > 6 slot VXR midplane, Version 2. > System image file is "disk2:ubr7200-ik8s-mz.122-15.BC2f.bin" > > And here's the error from the rancid log: > > Trying to get all of the configs. > cmts.xxxxxxx.com: missed cmd(s): write term,show running-config > cmts.xxxxxxx.com: End of run not found > Error: TIMEOUT reached > ===================================== > Getting missed routers: round 1. > cmts.xxxxxxx.com: missed cmd(s): write term,show running-config > cmts.xxxxxxx.com: End of run not found > Error: TIMEOUT reached > ...etc... > > If i clogin to the box and do a write term or show running-config, it > gives me the output I expect. They have another cmts which is > reporting fine, though it's running a different version of the IOS: > > IOS (tm) 7200 Software (UBR7200-IK9S-M), Experimental Version 12.3 > cisco uBR7246VXR (NPE-G1) processor (revision A) with 983040K/65536K > bytes of memory. > Processor board ID SCA061600NC > SB-1 CPU at 700MHz, Implementation 1, Rev 0.2, 512KB L2 Cache > 6 slot VXR midplane, Version 2.0 > System image file is "disk2:ubr7200-ik9s-mz.123-9a.BC7.bin" > > Any help in how to isolate this would be appreciated. > > Cheers, > Rob Wynne > Senior Systems Administrator > ISP Alliance, Inc. > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From smunzani at comcast.net Tue Aug 4 15:11:04 2009 From: smunzani at comcast.net (Sam Munzani) Date: Tue, 04 Aug 2009 10:11:04 -0500 Subject: [rancid] Re: End of run not found... Running rancid 2.3.2 version In-Reply-To: <20090730225509.GN3046@shrubbery.net> References: <4A709C5D.1090702@comcast.net> <20090730223105.GM3046@shrubbery.net> <4A722141.40105@comcast.net> <20090730225509.GN3046@shrubbery.net> Message-ID: <4A784F88.8010704@comcast.net> John, My comments inline, >> more system:running-config is an ASA only command and this is a router >> so its not going to work for sure. >> > > it works on mine, but be version dependent. its fine if it doesnt work, > but i suspect that it is working and triggering the timing problem. see > the rancid web page for an explaination of the timing or hanging issue. > > the 'end' in your test output was in the .out file or the .raw file? try > it with NOPIPE set and see which command(s) are working. > I don't even see any .out files in /tmp or rancid log dir. Neither I see raw files. >> Only the command that works is show running-config. I will try again >> with other commands remarked out and with only "show running" and see >> how it goes. >> >>> this reeks of a timing issue; aka solaris/linux w/o the expect patch. I looked on rancid patch and there is reference of patch for Solaris 2.6 or 9. It doesn't mention Solaris 10. Also, which file do I modify for hack2 mentioned at ftp://ftp.shrubbery.net/pub/rancid/expect-hack2? I don't seem to have exp_chan.c file on my file system. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090804/4feda9bd/attachment.html From jethro.binks at strath.ac.uk Tue Aug 4 15:21:09 2009 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Tue, 4 Aug 2009 16:21:09 +0100 (BST) Subject: [rancid] Re: End of run not found... Running rancid 2.3.2 version In-Reply-To: <4A784F88.8010704@comcast.net> References: <4A709C5D.1090702@comcast.net> <20090730223105.GM3046@shrubbery.net> <4A722141.40105@comcast.net> <20090730225509.GN3046@shrubbery.net> <4A784F88.8010704@comcast.net> Message-ID: On Tue, 4 Aug 2009, Sam Munzani wrote: > John, > > My comments inline, > > > more system:running-config is an ASA only command and this is a router so > > > its not going to work for sure. > > > > it works on mine, but be version dependent. its fine if it doesnt > > work, but i suspect that it is working and triggering the timing > > problem. see the rancid web page for an explaination of the timing or > > hanging issue. > > > > the 'end' in your test output was in the .out file or the .raw file? > > try it with NOPIPE set and see which command(s) are working. > > > I don't even see any .out files in /tmp or rancid log dir. Neither I see raw > files. IIRC they are written to your current directory. Ensure whereever you are is writeable to you when you run it. Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK From smunzani at comcast.net Tue Aug 4 15:22:39 2009 From: smunzani at comcast.net (Sam Munzani) Date: Tue, 04 Aug 2009 10:22:39 -0500 Subject: [rancid] Re: End of run not found... Running rancid 2.3.2 version In-Reply-To: <4A784F88.8010704@comcast.net> References: <4A709C5D.1090702@comcast.net> <20090730223105.GM3046@shrubbery.net> <4A722141.40105@comcast.net> <20090730225509.GN3046@shrubbery.net> <4A784F88.8010704@comcast.net> Message-ID: <4A78523F.9020600@comcast.net> I figured out my problem. The issue is my customer is using TACACS command authorization and more system:running-config is not an authorized command which caused that command to exit without clean run. rtr-lab1#more system:running-config Command authorization failed. I remarked out that command and things are working fine. My host name is sanitized so many of you might have thought if this is lab box then why didn't I know about command authorization. However I don't control tacacs here and the real host is actually a customer device. Thanks, Sam > John, > > My comments inline, >>> more system:running-config is an ASA only command and this is a router >>> so its not going to work for sure. >>> >> >> it works on mine, but be version dependent. its fine if it doesnt work, >> but i suspect that it is working and triggering the timing problem. see >> the rancid web page for an explaination of the timing or hanging issue. >> >> the 'end' in your test output was in the .out file or the .raw file? try >> it with NOPIPE set and see which command(s) are working. >> > I don't even see any .out files in /tmp or rancid log dir. Neither I > see raw files. >>> Only the command that works is show running-config. I will try again >>> with other commands remarked out and with only "show running" and see >>> how it goes. >>> >>>> this reeks of a timing issue; aka solaris/linux w/o the expect patch. > I looked on rancid patch and there is reference of patch for Solaris > 2.6 or 9. It doesn't mention Solaris 10. > > Also, which file do I modify for hack2 mentioned at > ftp://ftp.shrubbery.net/pub/rancid/expect-hack2? I don't seem to have > exp_chan.c file on my file system. > ------------------------------------------------------------------------ > > _______________________________________________ > 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/20090804/a291648c/attachment.html From lists at techieguy.net Wed Aug 5 17:04:50 2009 From: lists at techieguy.net (Rons Listings) Date: Wed, 5 Aug 2009 13:04:50 -0400 (EDT) Subject: [rancid] Updating rancid 2.3.2a7 to 2.3.2a10.... Message-ID: <1098751.355.1249491890040.JavaMail.root@mars.globnet.com> Rancid for me has been running just great without issues for months. Now, I'd like to update from version .2a7 to .2a10. Will my existing configurations stay or will they be all written over when I perform the ./configure and then the make? I have a standard (unmodified or customized) installation of 2.3.2a7. Perhaps there is a software switch from the ./configure & make commands that I need to use? Regards, --Ron From bmahaffey at pelco.com Fri Aug 7 21:25:47 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Fri, 7 Aug 2009 14:25:47 -0700 Subject: [rancid] hlogin & timeout Message-ID: <4BBAF403456ED74981E7164ED3A4C2240161A382@CA-EVS02.pelco.org> Hello, When trying to use hlogin I get timeouts when trying to login to the enable prompt. I thought I was running version 2.3.2a10 but I guess my upgrade didn't work as expected. -bash-3.2$ hlogin HP5308-B6-1.pelco.org hp5308-b6-1.pelco.org spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org Switch - DO NOT LOGIN. user at hp5308-b6-1.pelco.org's password: ProCurve J4819A Switch 5308xl Software revision E.11.03 Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continueHP5308-B6-1> Error: TIMEOUT reached HLOGIN Version #! /usr/bin/expect -- ## ## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $ ## ## rancid 2.3.2a9 I found a patch from a google search which didn't work for me. --- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600 +++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600 @@ -666,7 +671,9 @@ # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" == "" } { - set u_prompt "(Username|login|user name):" + #added "Name" for 5406zl + #which has the prompt "Please Enter Login Name:" + set u_prompt "(Name|Username|login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] } - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090807/0474fa5c/attachment.html From NMaio at guesswho.com Mon Aug 10 19:50:30 2009 From: NMaio at guesswho.com (NMaio at guesswho.com) Date: Mon, 10 Aug 2009 15:50:30 -0400 Subject: [rancid] Sudden/Random clogin problem Message-ID: I have recently noticed the log entries when connecting to the contexts on our FWSMs. This does not happen all the time and it looks to be in the function to get around the pager in clogin. Has anybody seen these errors before and if so know how to correct? Thanks. Trying to get all of the configs. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*FWSM01/NAP([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -r..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprompt." { send..." invoked from within "if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] # the pager can not be turned off on ..." (procedure "run_commands" line 34) invoked from within "run_commands $prompt $command" ("foreach" body line 144) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/local/rancid/bin/clogin" line 616) naphfw02: missed cmd(s): write term,show vtp status,show vlan,show running-config naphfw02: End of run not found -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090810/65c0d10c/attachment.html From asmirnoff at office.beeline.ru Tue Aug 11 06:36:57 2009 From: asmirnoff at office.beeline.ru (Smirnoff Alexander) Date: Tue, 11 Aug 2009 10:36:57 +0400 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> Message-ID: <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> dir | e syslog - it is very simple way, but I need more ;) how I can just disable all lines like '!Flash: ' from mail diff output , but this lines can be stored in CVS config changes? ________________________________ From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion Sent: Thursday, August 21, 2008 10:13 PM To: Smirnoff Alexander Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] cisco syslog diff the other option is to write some custom pieces to not include or modify the command for dir to exclude things you don't want to include. dir | e syslog something like that. You may have to escape the |, you will need to mess with it a little. On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander wrote: If I remove this command (dir) I lost other important changer , like ios change. I mean about more intellectual rancid acknowledges behavior , then minor changes like syslog grow not cause email's. ________________________________ From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion Sent: Wednesday, August 20, 2008 12:11 AM To: Smirnoff Alexander Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] cisco syslog diff remove that command from what is checked in the rancid file under /bin/ 2008/8/19 Smirnoff Alexander Hello! How I can disable alerts on changing like this: Index: configs/172.17.200.64 =================================================================== retrieving revision 1.12 diff -U 4 -r1.12 172.17.200.64 @@ -41,10 +41,10 @@ !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog - !Flash: 7741440 bytes total (2416640 bytes free) + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog + !Flash: 7741440 bytes total (2416128 bytes free) ! !Flash: nvram: Directory of nvram:/ !Flash: nvram: 26 -rw- 6269 startup-config !Flash: nvram: 27 ---- 26 private-config When only syslog file size change? -- Regards, Alexandr Smirnov _______________________________________________ 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/20090811/de2696b4/attachment.html From rancid at gheek.net Tue Aug 11 20:34:20 2009 From: rancid at gheek.net (Lance Vermilion) Date: Tue, 11 Aug 2009 13:34:20 -0700 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> Message-ID: <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> You will need to look for the sub routine that has Flash in it. Do a search for that in the appropriate rancid file. -Lance On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander < asmirnoff at office.beeline.ru> wrote: > dir | e syslog ? it is very simple way, but I need more ;) > > how I can just disable all lines like ?!Flash: ? from mail diff output , > but this lines can be stored in CVS config changes? > > > ------------------------------ > > *From:* lavermil at gheek.net [mailto:lavermil at gheek.net] *On Behalf Of *Lance > Vermilion > *Sent:* Thursday, August 21, 2008 10:13 PM > > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] cisco syslog diff > > > > the other option is to write some custom pieces to not include or modify > the command for dir to exclude things you don't want to include. > > dir | e syslog > > something like that. You may have to escape the |, you will need to mess > with it a little. > > On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander > wrote: > > If I remove this command (dir) I lost other important changer , like ios > change. I mean about more intellectual rancid acknowledges behavior , then > minor changes like syslog grow not cause email's. > > > ------------------------------ > > *From:* lavermil at gheek.net [mailto:lavermil at gheek.net] *On Behalf Of *Lance > Vermilion > *Sent:* Wednesday, August 20, 2008 12:11 AM > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] cisco syslog diff > > > > remove that command from what is checked in the rancid file under home>/bin/ > > 2008/8/19 Smirnoff Alexander > > Hello! > > > > How I can disable alerts on changing like this: > > > > > > Index: configs/172.17.200.64 > > =================================================================== > > retrieving revision 1.12 > > diff -U 4 -r1.12 172.17.200.64 > > @@ -41,10 +41,10 @@ > > !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html > > !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info > > !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver > > !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text > > - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog > > - !Flash: 7741440 bytes total (2416640 bytes free) > > + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog > > + !Flash: 7741440 bytes total (2416128 bytes free) > > ! > > !Flash: nvram: Directory of nvram:/ > > !Flash: nvram: 26 -rw- 6269 > startup-config > > !Flash: nvram: 27 ---- 26 > private-config > > > > When only syslog file size change? > > > > -- > Regards, > Alexandr Smirnov > > > > > _______________________________________________ > 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/20090811/b526300a/attachment.html From asmirnoff at office.beeline.ru Wed Aug 12 09:00:38 2009 From: asmirnoff at office.beeline.ru (Smirnoff Alexander) Date: Wed, 12 Aug 2009 13:00:38 +0400 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> Message-ID: <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> Ok, I am just add | grep -v "Flash:" before >$TMP.diff in control_rancid and waiting for results ;) ________________________________ From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion Sent: Wednesday, August 12, 2009 12:34 AM To: Smirnoff Alexander Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] cisco syslog diff You will need to look for the sub routine that has Flash in it. Do a search for that in the appropriate rancid file. -Lance On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander wrote: dir | e syslog - it is very simple way, but I need more ;) how I can just disable all lines like '!Flash: ' from mail diff output , but this lines can be stored in CVS config changes? ________________________________ From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion Sent: Thursday, August 21, 2008 10:13 PM To: Smirnoff Alexander Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] cisco syslog diff the other option is to write some custom pieces to not include or modify the command for dir to exclude things you don't want to include. dir | e syslog something like that. You may have to escape the |, you will need to mess with it a little. On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander wrote: If I remove this command (dir) I lost other important changer , like ios change. I mean about more intellectual rancid acknowledges behavior , then minor changes like syslog grow not cause email's. ________________________________ From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion Sent: Wednesday, August 20, 2008 12:11 AM To: Smirnoff Alexander Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] cisco syslog diff remove that command from what is checked in the rancid file under /bin/ 2008/8/19 Smirnoff Alexander Hello! How I can disable alerts on changing like this: Index: configs/172.17.200.64 =================================================================== retrieving revision 1.12 diff -U 4 -r1.12 172.17.200.64 @@ -41,10 +41,10 @@ !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog - !Flash: 7741440 bytes total (2416640 bytes free) + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog + !Flash: 7741440 bytes total (2416128 bytes free) ! !Flash: nvram: Directory of nvram:/ !Flash: nvram: 26 -rw- 6269 startup-config !Flash: nvram: 27 ---- 26 private-config When only syslog file size change? -- Regards, Alexandr Smirnov _______________________________________________ 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/20090812/42f7a514/attachment.html From rancid at gheek.net Wed Aug 12 18:48:00 2009 From: rancid at gheek.net (Lance Vermilion) Date: Wed, 12 Aug 2009 11:48:00 -0700 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> Message-ID: <8423e7bb0908121148n75716e20ua870c1f454e4627f@mail.gmail.com> That will just remove it from the Diff portion it will not remove it from printing it. If you find the sub routine that processes the dir command you will see there is a line that will say Flash:. -Lance On Wed, Aug 12, 2009 at 2:00 AM, Smirnoff Alexander < asmirnoff at office.beeline.ru> wrote: > Ok, I am just add | grep -v "Flash:" before >$TMP.diff in control_rancid > and waiting for results ;) > > > > > ------------------------------ > > *From:* lavermil at gheek.net [mailto:lavermil at gheek.net] *On Behalf Of *Lance > Vermilion > *Sent:* Wednesday, August 12, 2009 12:34 AM > > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] cisco syslog diff > > > > You will need to look for the sub routine that has Flash in it. Do a search > for that in the appropriate rancid file. > > > > -Lance > > > > On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander < > asmirnoff at office.beeline.ru> wrote: > > dir | e syslog ? it is very simple way, but I need more ;) > > how I can just disable all lines like ?!Flash: ? from mail diff output , > but this lines can be stored in CVS config changes? > > > ------------------------------ > > *From:* lavermil at gheek.net [mailto:lavermil at gheek.net] *On Behalf Of *Lance > Vermilion > *Sent:* Thursday, August 21, 2008 10:13 PM > > > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] cisco syslog diff > > > > the other option is to write some custom pieces to not include or modify > the command for dir to exclude things you don't want to include. > > dir | e syslog > > something like that. You may have to escape the |, you will need to mess > with it a little. > > On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander > wrote: > > If I remove this command (dir) I lost other important changer , like ios > change. I mean about more intellectual rancid acknowledges behavior , then > minor changes like syslog grow not cause email's. > > > ------------------------------ > > *From:* lavermil at gheek.net [mailto:lavermil at gheek.net] *On Behalf Of *Lance > Vermilion > *Sent:* Wednesday, August 20, 2008 12:11 AM > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] cisco syslog diff > > > > remove that command from what is checked in the rancid file under home>/bin/ > > 2008/8/19 Smirnoff Alexander > > Hello! > > > > How I can disable alerts on changing like this: > > > > > > Index: configs/172.17.200.64 > > =================================================================== > > retrieving revision 1.12 > > diff -U 4 -r1.12 172.17.200.64 > > @@ -41,10 +41,10 @@ > > !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html > > !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info > > !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver > > !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text > > - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog > > - !Flash: 7741440 bytes total (2416640 bytes free) > > + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog > > + !Flash: 7741440 bytes total (2416128 bytes free) > > ! > > !Flash: nvram: Directory of nvram:/ > > !Flash: nvram: 26 -rw- 6269 > startup-config > > !Flash: nvram: 27 ---- 26 > private-config > > > > When only syslog file size change? > > > > -- > Regards, > Alexandr Smirnov > > > > > _______________________________________________ > 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/20090812/d1dc0c23/attachment.html From george at brightbox.co.uk Fri Aug 14 17:11:50 2009 From: george at brightbox.co.uk (George Hills) Date: Fri, 14 Aug 2009 18:11:50 +0100 Subject: [rancid] Dell Powerconnect switches - problem and suggestion Message-ID: <4A859AD6.2010705@brightbox.co.uk> Hi, My thanks to Jeremy Singletary for his drancid/dlogin scripts, and Nate Steffen for his updates and email help. I've had a couple of different problems trying to get RANCID working with some Dell Powerconnect switches recently. I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy amd64. My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s running 2.0.0.40. The 6248s had an easy problem - the dlogin script is sending "exit" and expecting to get out, but that only takes it out of enable mode. It then needs to send "quit" (*not* "exit" again) afterwards to get out. I bodged this by just adding a line: strowger at beast:~$ diff dlogin dlogin.gh 672a673 > dsend "quit\r" On the 5348 (where "exit" from enable mode logs you off...sigh...) I think there's a problem with the pager. My "more" prompts look like "More: , Quit: q, One line: " and dlogin freezes when it sees one. Other than that it works fine. I guess there's a problem with the regex but I can't work out what it is. Would be grateful for any suggestions. Cheers. -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From jeremys at rickyninja.net Sat Aug 15 02:45:05 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Fri, 14 Aug 2009 19:45:05 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A859AD6.2010705@brightbox.co.uk> References: <4A859AD6.2010705@brightbox.co.uk> Message-ID: <20090815024504.GC19841@pegasus.billn.net> Looks like there are some invisible characters showing up in the pager in newer Dells. Download this version of dlogin, and let us know if it resolves the issue. http://www.rickyninja.net/rancid/dlogin-dev Thanks, Jeremy On 08/14/09, George Hills said: > Hi, > > My thanks to Jeremy Singletary for his drancid/dlogin scripts, and Nate > Steffen for his updates and email help. > > I've had a couple of different problems trying to get RANCID working > with some Dell Powerconnect switches recently. > > I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy amd64. > > My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s running > 2.0.0.40. > > The 6248s had an easy problem - the dlogin script is sending "exit" and > expecting to get out, but that only takes it out of enable mode. It then > needs to send "quit" (*not* "exit" again) afterwards to get out. > > I bodged this by just adding a line: > > strowger at beast:~$ diff dlogin dlogin.gh > 672a673 > > dsend "quit\r" > > > On the 5348 (where "exit" from enable mode logs you off...sigh...) I > think there's a problem with the pager. My "more" prompts look like > > "More: , Quit: q, One line: " > > and dlogin freezes when it sees one. Other than that it works fine. I > guess there's a problem with the regex but I can't work out what it is. > Would be grateful for any suggestions. > > Cheers. > > -- > George Hills > Systems Administrator > Brightbox > http://www.brightbox.co.uk/ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From 2009 at tybox.net Sat Aug 15 03:39:33 2009 From: 2009 at tybox.net (Josh Rogers) Date: Fri, 14 Aug 2009 22:39:33 -0500 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <20090815024504.GC19841@pegasus.billn.net> References: <4A859AD6.2010705@brightbox.co.uk> <20090815024504.GC19841@pegasus.billn.net> Message-ID: <773ce9810908142039m6bc5857lc3e5e935efc210fe@mail.gmail.com> What steps are necessary to monitor Dell switches? Download drancid, dlogin and put them in /opt/local/libexec/rancid with other rancid executables, then what? Update router.db and specify a device as a 'dell' instead of 'cisco' or 'juniper' Is that basically it? On Fri, Aug 14, 2009 at 9:45 PM, Jeremy Singletary wrote: > Looks like there are some invisible characters showing up in the pager > in newer Dells. Download this version of dlogin, and let us know if it > resolves the issue. > > http://www.rickyninja.net/rancid/dlogin-dev > > Thanks, > Jeremy > > On 08/14/09, George Hills said: > > Hi, > > > > My thanks to Jeremy Singletary for his drancid/dlogin scripts, and Nate > > Steffen for his updates and email help. > > > > I've had a couple of different problems trying to get RANCID working > > with some Dell Powerconnect switches recently. > > > > I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy amd64. > > > > My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s running > > 2.0.0.40. > > > > The 6248s had an easy problem - the dlogin script is sending "exit" and > > expecting to get out, but that only takes it out of enable mode. It then > > needs to send "quit" (*not* "exit" again) afterwards to get out. > > > > I bodged this by just adding a line: > > > > strowger at beast:~$ diff dlogin dlogin.gh > > 672a673 > > > dsend "quit\r" > > > > > > On the 5348 (where "exit" from enable mode logs you off...sigh...) I > > think there's a problem with the pager. My "more" prompts look like > > > > "More: , Quit: q, One line: " > > > > and dlogin freezes when it sees one. Other than that it works fine. I > > guess there's a problem with the regex but I can't work out what it is. > > Would be grateful for any suggestions. > > > > Cheers. > > > > -- > > George Hills > > Systems Administrator > > Brightbox > > http://www.brightbox.co.uk/ > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090814/ed1af738/attachment.html From jeremys at rickyninja.net Sat Aug 15 04:23:09 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Fri, 14 Aug 2009 21:23:09 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <773ce9810908142039m6bc5857lc3e5e935efc210fe@mail.gmail.com> References: <4A859AD6.2010705@brightbox.co.uk> <20090815024504.GC19841@pegasus.billn.net> <773ce9810908142039m6bc5857lc3e5e935efc210fe@mail.gmail.com> Message-ID: <20090815042309.GD19841@pegasus.billn.net> You'll also need a modified rancid-fe that recognizes the dell string in router.db and calls drancid. Did you look into what John Heasley suggested previously about trying the SMC scripts? -jeremy On 08/14/09, Josh Rogers <2009 at tybox.net> said: > > What steps are necessary to monitor Dell switches? Download drancid, > dlogin and put them in /opt/local/libexec/rancid with other rancid > executables, then what? Update router.db and specify a device as a > 'dell' instead of 'cisco' or 'juniper' > Is that basically it? > > On Fri, Aug 14, 2009 at 9:45 PM, Jeremy Singletary > <[1]jeremys at rickyninja.net> wrote: > > Looks like there are some invisible characters showing up in the > pager > in newer Dells. Download this version of dlogin, and let us know > if it > resolves the issue. > [2]http://www.rickyninja.net/rancid/dlogin-dev > Thanks, > Jeremy > > On 08/14/09, George Hills <[3]george at brightbox.co.uk> said: > > Hi, > > > > My thanks to Jeremy Singletary for his drancid/dlogin scripts, and > Nate > > Steffen for his updates and email help. > > > > I've had a couple of different problems trying to get RANCID working > > with some Dell Powerconnect switches recently. > > > > I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy > amd64. > > > > My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s > running > > 2.0.0.40. > > > > The 6248s had an easy problem - the dlogin script is sending "exit" > and > > expecting to get out, but that only takes it out of enable mode. It > then > > needs to send "quit" (*not* "exit" again) afterwards to get out. > > > > I bodged this by just adding a line: > > > > strowger at beast:~$ diff dlogin [4]dlogin.gh > > 672a673 > > > dsend "quit\r" > > > > > > On the 5348 (where "exit" from enable mode logs you off...sigh...) I > > think there's a problem with the pager. My "more" prompts look like > > > > "More: , Quit: q, One line: " > > > > and dlogin freezes when it sees one. Other than that it works fine. > I > > guess there's a problem with the regex but I can't work out what it > is. > > Would be grateful for any suggestions. > > > > Cheers. > > > > -- > > George Hills > > Systems Administrator > > Brightbox > > [5]http://www.brightbox.co.uk/ > > > > _______________________________________________ > > Rancid-discuss mailing list > > [6]Rancid-discuss at shrubbery.net > > [7]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > [8]Rancid-discuss at shrubbery.net > [9]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > References > > 1. mailto:jeremys at rickyninja.net > 2. http://www.rickyninja.net/rancid/dlogin-dev > 3. mailto:george at brightbox.co.uk > 4. http://dlogin.gh/ > 5. http://www.brightbox.co.uk/ > 6. mailto:Rancid-discuss at shrubbery.net > 7. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > 8. mailto:Rancid-discuss at shrubbery.net > 9. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From 2009 at tybox.net Sat Aug 15 04:34:34 2009 From: 2009 at tybox.net (Josh Rogers) Date: Fri, 14 Aug 2009 23:34:34 -0500 Subject: [rancid] Re: Problems with Dell Extension In-Reply-To: <20090604132901.6528efc7@toskin.off.org> References: <773ce9810906031201p310870fcp3218fd0b9daf12e3@mail.gmail.com> <20090603151522.5f445c4a@toskin.off.org> <773ce9810906031541y2a7b4b88lf867d3539ded6af2@mail.gmail.com> <20090604132901.6528efc7@toskin.off.org> Message-ID: <773ce9810908142134u72fba10cg926bc021bacf66f1@mail.gmail.com> Using a semicolon as the deliminator caused running the dlogin script manually to work. Its still not working when called from rancid-run though. I did find something in the log file that reveals the problem: unknown router manufacturer for a1.aus: dell So... I'm guessing this is because I didn't install drancid/dlogin correctly. How do I let rancid-run know about the newly installed manufacturer (and corresponding scripts)? -Josh On Thu, Jun 4, 2009 at 3:29 PM, Austin Schutz wrote: > On Wed, 3 Jun 2009 17:41:39 -0500 > Temporary Mailbox <2009 at tybox.net> wrote: > > > I didn't realize that is how logind takes arguments. When I tested, > > it did not replace the , with a \n: > > > > TW-G-6024-1# show version,show running-config,show vlan > > % Unrecognized command > > > > So... is this exactly how rancid is calling dlogin? > > > > If so, I'm guessing I need to look at how to do a "s/,/\n/g" on the -c > > argument of dlogin ? > > > > -Josh > > > > On Wed, Jun 3, 2009 at 5:15 PM, Austin Schutz wrote: > > > > > On Wed, 3 Jun 2009 14:01:13 -0500 > > > Temporary Mailbox <2009 at tybox.net> wrote: > > > > > > > I'm attempting to set up the dell extension found at > > > > http://www.rickyninja.net/rancid/ > > > > > > > > Everything seems to work fine when logging in with dlogin: > > > > > > > > $ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u > > > > Engineer -p -c "show version" 10.13.8.1 > > > > > > I would try dlogin -c "show version,show running-config,show vlan" > > > > > My mistake: This should be: > > -c "show version;show running-config;show vlan" > > the separator is ';', not ','. > > Austin > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090814/9583366f/attachment.html From jeremys at rickyninja.net Sat Aug 15 04:44:40 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Fri, 14 Aug 2009 21:44:40 -0700 Subject: [rancid] Re: Problems with Dell Extension In-Reply-To: <773ce9810908142134u72fba10cg926bc021bacf66f1@mail.gmail.com> References: <773ce9810906031201p310870fcp3218fd0b9daf12e3@mail.gmail.com> <20090603151522.5f445c4a@toskin.off.org> <773ce9810906031541y2a7b4b88lf867d3539ded6af2@mail.gmail.com> <20090604132901.6528efc7@toskin.off.org> <773ce9810908142134u72fba10cg926bc021bacf66f1@mail.gmail.com> Message-ID: <20090815044439.GE19841@pegasus.billn.net> Your rancid-fe is missing the dell manufacturer. Edit rancid-fe and add the following line: elsif ($vendor =~ /^dell$/i) { exec('drancid', $router); } On 08/14/09, Josh Rogers <2009 at tybox.net> said: > > Using a semicolon as the deliminator caused running the dlogin script > manually to work. Its still not working when called from rancid-run > though. > I did find something in the log file that reveals the problem: > > unknown router manufacturer for a1.aus: dell > > So... I'm guessing this is because I didn't install drancid/dlogin > correctly. How do I let rancid-run know about the newly installed > manufacturer (and corresponding scripts)? > -Josh > > On Thu, Jun 4, 2009 at 3:29 PM, Austin Schutz <[1]tex at off.org> wrote: > > On Wed, 3 Jun 2009 17:41:39 -0500 > > Temporary Mailbox <[2]2009 at tybox.net> wrote: > > I didn't realize that is how logind takes arguments. When I tested, > > it did not replace the , with a \n: > > > > TW-G-6024-1# show version,show running-config,show vlan > > % Unrecognized command > > > > So... is this exactly how rancid is calling dlogin? > > > > If so, I'm guessing I need to look at how to do a "s/,/\n/g" on the > -c > > argument of dlogin ? > > > > -Josh > > > > On Wed, Jun 3, 2009 at 5:15 PM, Austin Schutz <[3]tex at off.org> > wrote: > > > > > On Wed, 3 Jun 2009 14:01:13 -0500 > > > Temporary Mailbox <[4]2009 at tybox.net> wrote: > > > > > > > I'm attempting to set up the dell extension found at > > > > [5]http://www.rickyninja.net/rancid/ > > > > > > > > Everything seems to work fine when logging in with dlogin: > > > > > > > > $ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u > > > > Engineer -p -c "show version" 10.13.8.1 > > > > > > I would try dlogin -c "show version,show running-config,show vlan" > > > > > My mistake: This should be: > > -c "show version;show running-config;show vlan" > > the separator is ';', not ','. > Austin > > References > > 1. mailto:tex at off.org > 2. mailto:2009 at tybox.net > 3. mailto:tex at off.org > 4. mailto:2009 at tybox.net > 5. http://www.rickyninja.net/rancid/ > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From george at brightbox.co.uk Sat Aug 15 12:03:49 2009 From: george at brightbox.co.uk (George Hills) Date: Sat, 15 Aug 2009 13:03:49 +0100 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A859AD6.2010705@brightbox.co.uk> References: <4A859AD6.2010705@brightbox.co.uk> Message-ID: <4A86A425.7030109@brightbox.co.uk> Jeremy Singletary wrote: > Looks like there are some invisible characters showing up in the pager > in newer Dells. Download this version of dlogin, and let us know if > it resolves the issue. > http://www.rickyninja.net/rancid/dlogin-dev It does indeed - a "dlogin -c "show run" $device" now completes succesfully. I can see it answering the "More" prompts in the output. drancid doesn't work though, do I need to make similar changes in that? Cheers. -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From 2009 at tybox.net Sat Aug 15 15:07:05 2009 From: 2009 at tybox.net (Josh Rogers) Date: Sat, 15 Aug 2009 10:07:05 -0500 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A86A425.7030109@brightbox.co.uk> References: <4A859AD6.2010705@brightbox.co.uk> <4A86A425.7030109@brightbox.co.uk> Message-ID: <773ce9810908150807m25e91904pdf29df8e79380841@mail.gmail.com> George, Does 'show vlan' work ok with this new prompt for you? other commands seem to work fine, but 'show vlan' hangs at the first prompt until timeout. My prompt is the same as yours. -Josh On Sat, Aug 15, 2009 at 7:03 AM, George Hills wrote: > Jeremy Singletary wrote: > > > Looks like there are some invisible characters showing up in the pager > > in newer Dells. Download this version of dlogin, and let us know if > > it resolves the issue. > > http://www.rickyninja.net/rancid/dlogin-dev > > It does indeed - a "dlogin -c "show run" $device" now completes > succesfully. I can see it answering the "More" prompts in the output. > > drancid doesn't work though, do I need to make similar changes in that? > > Cheers. > > -- > George Hills > Systems Administrator > Brightbox > http://www.brightbox.co.uk/ > > _______________________________________________ > 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/20090815/a63fceb0/attachment.html From 2009 at tybox.net Sat Aug 15 15:46:57 2009 From: 2009 at tybox.net (Josh Rogers) Date: Sat, 15 Aug 2009 10:46:57 -0500 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <20090815042309.GD19841@pegasus.billn.net> References: <4A859AD6.2010705@brightbox.co.uk> <20090815024504.GC19841@pegasus.billn.net> <773ce9810908142039m6bc5857lc3e5e935efc210fe@mail.gmail.com> <20090815042309.GD19841@pegasus.billn.net> Message-ID: <773ce9810908150846s1ae885bdq3c88193db6783b@mail.gmail.com> > > Did you look into what John Heasley suggested previously about trying > the SMC scripts? I did try, but had trouble getting them to work. They want to call hpuifilter, which doesn't connect for some reason, and I didn't get any further. I continued working on getting drancid/dlogin to work, and managed to get it to get past 'show vlan' more prompt hanging by removing the carrot ^ from the RE. Now, it completes the commands and shows it properly, but when it issues the final 'exit' command to disconnect, its picking up the "Connection closed by..." string created by the session closing and believes it did not close cleanly. On Fri, Aug 14, 2009 at 11:23 PM, Jeremy Singletary wrote: > You'll also need a modified rancid-fe that recognizes the dell string in > router.db and calls drancid. > > Did you look into what John Heasley suggested previously about trying > the SMC scripts? > > -jeremy > > On 08/14/09, Josh Rogers <2009 at tybox.net> said: > > > > What steps are necessary to monitor Dell switches? Download drancid, > > dlogin and put them in /opt/local/libexec/rancid with other rancid > > executables, then what? Update router.db and specify a device as a > > 'dell' instead of 'cisco' or 'juniper' > > Is that basically it? > > > > On Fri, Aug 14, 2009 at 9:45 PM, Jeremy Singletary > > <[1]jeremys at rickyninja.net> wrote: > > > > Looks like there are some invisible characters showing up in the > > pager > > in newer Dells. Download this version of dlogin, and let us know > > if it > > resolves the issue. > > [2]http://www.rickyninja.net/rancid/dlogin-dev > > Thanks, > > Jeremy > > > > On 08/14/09, George Hills <[3]george at brightbox.co.uk> said: > > > Hi, > > > > > > My thanks to Jeremy Singletary for his drancid/dlogin scripts, and > > Nate > > > Steffen for his updates and email help. > > > > > > I've had a couple of different problems trying to get RANCID working > > > with some Dell Powerconnect switches recently. > > > > > > I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy > > amd64. > > > > > > My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s > > running > > > 2.0.0.40. > > > > > > The 6248s had an easy problem - the dlogin script is sending "exit" > > and > > > expecting to get out, but that only takes it out of enable mode. It > > then > > > needs to send "quit" (*not* "exit" again) afterwards to get out. > > > > > > I bodged this by just adding a line: > > > > > > strowger at beast:~$ diff dlogin [4]dlogin.gh > > > 672a673 > > > > dsend "quit\r" > > > > > > > > > On the 5348 (where "exit" from enable mode logs you off...sigh...) I > > > think there's a problem with the pager. My "more" prompts look like > > > > > > "More: , Quit: q, One line: " > > > > > > and dlogin freezes when it sees one. Other than that it works fine. > > I > > > guess there's a problem with the regex but I can't work out what it > > is. > > > Would be grateful for any suggestions. > > > > > > Cheers. > > > > > > -- > > > George Hills > > > Systems Administrator > > > Brightbox > > > [5]http://www.brightbox.co.uk/ > > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > [6]Rancid-discuss at shrubbery.net > > > [7]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > _______________________________________________ > > Rancid-discuss mailing list > > [8]Rancid-discuss at shrubbery.net > > [9]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > References > > > > 1. mailto:jeremys at rickyninja.net > > 2. http://www.rickyninja.net/rancid/dlogin-dev > > 3. mailto:george at brightbox.co.uk > > 4. http://dlogin.gh/ > > 5. http://www.brightbox.co.uk/ > > 6. mailto:Rancid-discuss at shrubbery.net > > 7. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > 8. mailto:Rancid-discuss at shrubbery.net > > 9. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090815/f030f701/attachment.html From george at brightbox.co.uk Sat Aug 15 17:58:37 2009 From: george at brightbox.co.uk (George Hills) Date: Sat, 15 Aug 2009 18:58:37 +0100 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A86A425.7030109@brightbox.co.uk> References: <4A859AD6.2010705@brightbox.co.uk> <4A86A425.7030109@brightbox.co.uk> Message-ID: <4A86F74D.8020801@brightbox.co.uk> Hi, > Does 'show vlan' work ok with this new prompt for you? other commands > seem to work fine, but 'show vlan' hangs at the first prompt until > timeout. My prompt is the same as yours. Yes, "show vlan" works fine, but then I only have a handful of VLANs so the output isn't long enough to reach a "More" prompt...! If I do dlogin -c "show version ; show vlan ; show run" for one of the affected devices, it works fine - but running drancid against it is failing. Cheers -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From jeremys at rickyninja.net Sat Aug 15 20:10:29 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Sat, 15 Aug 2009 13:10:29 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A86A425.7030109@brightbox.co.uk> References: <4A859AD6.2010705@brightbox.co.uk> <4A86A425.7030109@brightbox.co.uk> Message-ID: <20090815201029.GF19841@pegasus.billn.net> It seems like the exit that gets sent is not showing up in the dlogin output. drancid looks for the prompt followed by the word exit to set the clean_run variable. It looks like this in my output: #eConnection closed by foreign host. the xit is missing between the e and Connection. This is my best guess at the moment. I'll let you know if I get any closer to fixing it. On 08/15/09, George Hills said: > Jeremy Singletary wrote: > > > Looks like there are some invisible characters showing up in the pager > > in newer Dells. Download this version of dlogin, and let us know if > > it resolves the issue. > > http://www.rickyninja.net/rancid/dlogin-dev > > It does indeed - a "dlogin -c "show run" $device" now completes > succesfully. I can see it answering the "More" prompts in the output. > > drancid doesn't work though, do I need to make similar changes in that? > > Cheers. > > -- > George Hills > Systems Administrator > Brightbox > http://www.brightbox.co.uk/ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From bhnoronha at gmail.com Fri Aug 14 20:34:27 2009 From: bhnoronha at gmail.com (Bruno Noronha) Date: Fri, 14 Aug 2009 17:34:27 -0300 Subject: [rancid] RADIUS with RANCID Message-ID: Hi all, I'm in trouble with RADIUS and RANCID. I did the right configurations but when I try to connect to a 6513 Cisco switch, the connection is established but it falls right after. I used clogin to test the configuration, having success with a 6006 Cisco switch that does not use RADIUS. I appreciate any help. regards, Bruno -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090814/f7b2b238/attachment.html From bhnoronha at gmail.com Sun Aug 16 14:48:12 2009 From: bhnoronha at gmail.com (Bruno Noronha) Date: Sun, 16 Aug 2009 11:48:12 -0300 Subject: [rancid] RADIUS with RANCID In-Reply-To: References: Message-ID: Hi all, I'm in trouble with RADIUS and RANCID. I did the right configurations but when I try to connect to a 6513 Cisco switch, the connection is established but it falls right after (time out). I used clogin to test the configuration, having success with a 6006 Cisco switch that does not use RADIUS. I appreciate any help. regards, Bruno -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090816/5a3ca39a/attachment.html From rancid at gheek.net Sun Aug 16 17:35:00 2009 From: rancid at gheek.net (Lance Vermilion) Date: Sun, 16 Aug 2009 10:35:00 -0700 Subject: [rancid] Re: RADIUS with RANCID In-Reply-To: References: Message-ID: <8423e7bb0908161035j79b8e55flb3c31e315d315dd@mail.gmail.com> Make sure clogin will work on the 6513. Are they both using CatOS? I would think now a days yours 6513 would be running IOS (aka hybrid) or modular IOS. 2009/8/16 Bruno Noronha > Hi all, > > I'm in trouble with RADIUS and RANCID. I did the right > configurations but when I try to connect to a 6513 Cisco switch, the > connection is established but it falls right after (time out). > I used clogin to test the configuration, having success with a > 6006 Cisco switch that does not use RADIUS. > I appreciate any help. > > regards, > > Bruno > > > > > _______________________________________________ > 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/20090816/3c6627a5/attachment.html From jeremys at rickyninja.net Mon Aug 17 03:52:11 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Sun, 16 Aug 2009 20:52:11 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <20090815201029.GF19841@pegasus.billn.net> References: <4A859AD6.2010705@brightbox.co.uk> <4A86A425.7030109@brightbox.co.uk> <20090815201029.GF19841@pegasus.billn.net> Message-ID: <20090817035211.GG19841@pegasus.billn.net> I've made another change that should fix this. Download http://www.rickyninja.net/rancid/dlogin-dev again, and let me know if it works for you. -jeremy From me at ale.cx Sun Aug 16 08:28:49 2009 From: me at ale.cx (alex) Date: Sun, 16 Aug 2009 09:28:49 +0100 Subject: [rancid] Re: RADIUS with RANCID In-Reply-To: References: Message-ID: <200908160928.49992.me@ale.cx> On Friday 14 August 2009 21:34:27 Bruno Noronha wrote: > I'm in trouble with RADIUS and RANCID. I did the right > configurations but when I try to connect to a 6513 Cisco switch, the > connection is established but it falls right after. What happens? Does it appear to successfully log in, and then time out? alexd From george at brightbox.co.uk Mon Aug 17 08:53:18 2009 From: george at brightbox.co.uk (George Hills) Date: Mon, 17 Aug 2009 09:53:18 +0100 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion Message-ID: <4A891A7E.3040202@brightbox.co.uk> Hi, Thank you for spending so much time on this. It's much appreciated. > I've made another change that should fix this. > > Download http://www.rickyninja.net/rancid/dlogin-dev again, and let me > know if it works for you. With this latest change, it is good for the 5324s. It fails on the 6248s now though. I'm not quite sure exactly what's going on, but if I do a dlogin -c "show run" it hangs forever at the first "More" prompt. rancid-run is producing output like the below in the log, for 6248s. All well for 5324s though: Cheers starting: Mon Aug 17 09:33:55 BST 2009 cvs add: Re-adding file `SWITCHNAME' after dead revision 1.3. cvs add: use `cvs commit' to add this file permanently /var/lib/rancid/CVS/switches/configs/SWITCHNAME,v <-- SWITCHNAME new revision: 1.4; previous revision: 1.3 Added SWITCHNAME Trying to get all of the configs. opened network stream from SWITCHNAME if () at /usr/lib/rancid/bin/drancid line 267. FOUND PROMPT: switch3.cl0# FOUND PROMPT: switch3.cl0# can't read "in_proc": no such variable while executing "if { $in_proc} { return 1 } else { continue }" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ ^M *]*#} { send_user -- "$expect_out(buffer)" } -re {^[^ ^M *]*#} { send_user -- "$expect_out(buffer)" ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } ..." (procedure "processCommandOutput" line 2) invoked from within "processCommandOutput $prompt $reprompt" 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 146) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out the prompt. # autoenabl..." -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From bhnoronha at gmail.com Mon Aug 17 17:03:10 2009 From: bhnoronha at gmail.com (Bruno Noronha) Date: Mon, 17 Aug 2009 14:03:10 -0300 Subject: [rancid] Re: RADIUS with RANCID In-Reply-To: References: <200908160928.49992.me@ale.cx> Message-ID: I solved the problem. I did not put "1" in the end of autoenable line. And now I have the following error: Getting missed routers: round 1. X.X.X.X: missed cmd(s): write term all,show port ifindex,show module,dir sup-$ ... ... ... X.X.X.X: End of run not found How can it happen? Does it really mean that these commands weren't found in the Catalyst? regards, Bruno 2009/8/17 Bruno Noronha > Lance, > > the RADIUS authentication process sends priv15. I don't need to > enable after login. So, I have inserted "add autoenable catalyst_name". But, > that's what happens: > > User Access Verification > > Username: cisco > Password: > Fala comigo!! > > DC_BHE_6513# > > Error: TIMEOUT reached > > As you can see, privileges are ok. I realized that it does not matter if I > use autoenable or not, the result is the same. > > Alex, > > as you can see above, it appears to work, but I receive time > out... > > regards, > > Bruno > > 2009/8/16 alex > > On Friday 14 August 2009 21:34:27 Bruno Noronha wrote: >> >> > I'm in trouble with RADIUS and RANCID. I did the right >> > configurations but when I try to connect to a 6513 Cisco switch, the >> > connection is established but it falls right after. >> >> What happens? Does it appear to successfully log in, and then time out? >> >> alexd >> >> _______________________________________________ >> 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/20090817/9ab66653/attachment.html From rancid at gheek.net Mon Aug 17 17:33:24 2009 From: rancid at gheek.net (Lance Vermilion) Date: Mon, 17 Aug 2009 10:33:24 -0700 Subject: [rancid] Re: RADIUS with RANCID In-Reply-To: References: <200908160928.49992.me@ale.cx> Message-ID: <8423e7bb0908171033u6d3cce22wc38b65c31d75f396@mail.gmail.com> The most import one to address first is the End of run not found. run the following and that should get you more detailed info: rancid -d -Lance 2009/8/17 Bruno Noronha > I solved the problem. I did not put "1" in the end of autoenable line. > And now I have the following error: > > Getting missed routers: round 1. > X.X.X.X: missed cmd(s): write term all,show port ifindex,show module,dir > sup-$ ... ... ... > X.X.X.X: End of run not found > > How can it happen? Does it really mean that these commands weren't found in > the Catalyst? > > regards, > > Bruno > > > > 2009/8/17 Bruno Noronha > >> Lance, >> >> the RADIUS authentication process sends priv15. I don't need to >> enable after login. So, I have inserted "add autoenable catalyst_name". But, >> that's what happens: >> >> User Access Verification >> >> Username: cisco >> Password: >> Fala comigo!! >> >> DC_BHE_6513# >> >> Error: TIMEOUT reached >> >> As you can see, privileges are ok. I realized that it does not matter if I >> use autoenable or not, the result is the same. >> >> Alex, >> >> as you can see above, it appears to work, but I receive time >> out... >> >> regards, >> >> Bruno >> >> 2009/8/16 alex >> >> On Friday 14 August 2009 21:34:27 Bruno Noronha wrote: >>> >>> > I'm in trouble with RADIUS and RANCID. I did the right >>> > configurations but when I try to connect to a 6513 Cisco switch, the >>> > connection is established but it falls right after. >>> >>> What happens? Does it appear to successfully log in, and then time out? >>> >>> alexd >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> >> >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090817/189a5fd1/attachment.html From heas at shrubbery.net Mon Aug 17 19:52:39 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 17 Aug 2009 12:52:39 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <773ce9810908150846s1ae885bdq3c88193db6783b@mail.gmail.com> References: <4A859AD6.2010705@brightbox.co.uk> <20090815024504.GC19841@pegasus.billn.net> <773ce9810908142039m6bc5857lc3e5e935efc210fe@mail.gmail.com> <20090815042309.GD19841@pegasus.billn.net> <773ce9810908150846s1ae885bdq3c88193db6783b@mail.gmail.com> Message-ID: <20090817195239.GD21411@shrubbery.net> Sat, Aug 15, 2009 at 10:46:57AM -0500, Josh Rogers: > > > > Did you look into what John Heasley suggested previously about trying > > the SMC scripts? > > I did try, but had trouble getting them to work. They want to call > hpuifilter, which doesn't connect for some reason, and I didn't get any > further. what do you mean by 'doent't connect for some reason'? > I continued working on getting drancid/dlogin to work, and managed to get it > to get past 'show vlan' more prompt hanging by removing the carrot ^ from > the RE. removing the anchor is a mistake. i'd guess it doesnt match because there are probably control characters before the prompt. > Now, it completes the commands and shows it properly, but when it > issues the final 'exit' command to disconnect, its picking up the > "Connection closed by..." string created by the session closing and believes > it did not close cleanly. > > > > On Fri, Aug 14, 2009 at 11:23 PM, Jeremy Singletary > wrote: > > > You'll also need a modified rancid-fe that recognizes the dell string in > > router.db and calls drancid. > > > > Did you look into what John Heasley suggested previously about trying > > the SMC scripts? > > > > -jeremy > > > > On 08/14/09, Josh Rogers <2009 at tybox.net> said: > > > > > > What steps are necessary to monitor Dell switches? Download drancid, > > > dlogin and put them in /opt/local/libexec/rancid with other rancid > > > executables, then what? Update router.db and specify a device as a > > > 'dell' instead of 'cisco' or 'juniper' > > > Is that basically it? > > > > > > On Fri, Aug 14, 2009 at 9:45 PM, Jeremy Singletary > > > <[1]jeremys at rickyninja.net> wrote: > > > > > > Looks like there are some invisible characters showing up in the > > > pager > > > in newer Dells. Download this version of dlogin, and let us know > > > if it > > > resolves the issue. > > > [2]http://www.rickyninja.net/rancid/dlogin-dev > > > Thanks, > > > Jeremy > > > > > > On 08/14/09, George Hills <[3]george at brightbox.co.uk> said: > > > > Hi, > > > > > > > > My thanks to Jeremy Singletary for his drancid/dlogin scripts, and > > > Nate > > > > Steffen for his updates and email help. > > > > > > > > I've had a couple of different problems trying to get RANCID working > > > > with some Dell Powerconnect switches recently. > > > > > > > > I'm using rancid 2.3.2a7 from the Ubuntu package on Ubuntu Hardy > > > amd64. > > > > > > > > My Powerconnects are 6248s running 2.0.1.2 and 2.2.0.3 and 5324s > > > running > > > > 2.0.0.40. > > > > > > > > The 6248s had an easy problem - the dlogin script is sending "exit" > > > and > > > > expecting to get out, but that only takes it out of enable mode. It > > > then > > > > needs to send "quit" (*not* "exit" again) afterwards to get out. > > > > > > > > I bodged this by just adding a line: > > > > > > > > strowger at beast:~$ diff dlogin [4]dlogin.gh > > > > 672a673 > > > > > dsend "quit\r" > > > > > > > > > > > > On the 5348 (where "exit" from enable mode logs you off...sigh...) I > > > > think there's a problem with the pager. My "more" prompts look like > > > > > > > > "More: , Quit: q, One line: " > > > > > > > > and dlogin freezes when it sees one. Other than that it works fine. > > > I > > > > guess there's a problem with the regex but I can't work out what it > > > is. > > > > Would be grateful for any suggestions. > > > > > > > > Cheers. > > > > > > > > -- > > > > George Hills > > > > Systems Administrator > > > > Brightbox > > > > [5]http://www.brightbox.co.uk/ > > > > > > > > _______________________________________________ > > > > Rancid-discuss mailing list > > > > [6]Rancid-discuss at shrubbery.net > > > > [7]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > > > Rancid-discuss mailing list > > > [8]Rancid-discuss at shrubbery.net > > > [9]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > References > > > > > > 1. mailto:jeremys at rickyninja.net > > > 2. http://www.rickyninja.net/rancid/dlogin-dev > > > 3. mailto:george at brightbox.co.uk > > > 4. http://dlogin.gh/ > > > 5. http://www.brightbox.co.uk/ > > > 6. mailto:Rancid-discuss at shrubbery.net > > > 7. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > 8. mailto:Rancid-discuss at shrubbery.net > > > 9. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From bmahaffey at pelco.com Mon Aug 17 19:54:46 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Mon, 17 Aug 2009 12:54:46 -0700 Subject: [rancid] Hlogin & Timeout Message-ID: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> Hello, When trying to use hlogin I get timeouts when trying to login to the enable prompt. I thought I was running version 2.3.2a10 but I guess my upgrade didn't work as expected. -bash-3.2$ hlogin HP5308-B6-1.pelco.org hp5308-b6-1.pelco.org spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org Switch - DO NOT LOGIN. user at hp5308-b6-1.pelco.org's password: ProCurve J4819A Switch 5308xl Software revision E.11.03 Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continueHP5308-B6-1> Error: TIMEOUT reached HLOGIN Version #! /usr/bin/expect -- ## ## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $ ## ## rancid 2.3.2a9 I found a patch from a google search which didn't work for me. --- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600 +++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600 @@ -666,7 +671,9 @@ # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" == "" } { - set u_prompt "(Username|login|user name):" + #added "Name" for 5406zl + #which has the prompt "Please Enter Login Name:" + set u_prompt "(Name|Username|login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] } Thank you, Brian Mahaffey Sr. Network Engineer Pelco (559) 292.1981 ext 5323 (559) 840.5686 Mobile AIM/GTALK/MSN: bmahaffey at gmail.com - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090817/9cc43869/attachment.html From heas at shrubbery.net Mon Aug 17 20:31:45 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 17 Aug 2009 13:31:45 -0700 Subject: [rancid] Re: Hlogin & Timeout In-Reply-To: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> Message-ID: <20090817203145.GE21411@shrubbery.net> Mon, Aug 17, 2009 at 12:54:46PM -0700, Mahaffey, Brian: > Hello, > > > > When trying to use hlogin I get timeouts when trying to login to the > enable prompt. I thought I was running version 2.3.2a10 but I guess my > upgrade didn't work as expected. Do you use AAA? Is your AAA providing this prompt? > -bash-3.2$ hlogin HP5308-B6-1.pelco.org > > hp5308-b6-1.pelco.org > > spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org > > Switch - DO NOT LOGIN. > > user at hp5308-b6-1.pelco.org's password: > > ProCurve J4819A Switch 5308xl > > Software revision E.11.03 > > > > Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved. > > > > RESTRICTED RIGHTS LEGEND > > > > Use, duplication, or disclosure by the Government is subject to > restrictions > > as set forth in subdivision (b) (3) (ii) of the Rights in Technical > Data and > > Computer Software clause at 52.227-7013. > > > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > > > Press any key to continueHP5308-B6-1> > > Error: TIMEOUT reached This looks like it logged-in just fine but could not find the prompt. autoenable in your cloginrc perhaps. > HLOGIN Version > > #! /usr/bin/expect -- > > ## > > ## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $ > > ## > > ## rancid 2.3.2a9 > > > > I found a patch from a google search which didn't work for me. > > > > --- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600 > > +++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600 > > @@ -666,7 +671,9 @@ > > # Figure out prompts > > set u_prompt [find userprompt $router] > > if { "$u_prompt" == "" } { > > - set u_prompt "(Username|login|user name):" > > + #added "Name" for 5406zl > > + #which has the prompt "Please Enter Login Name:" > > + set u_prompt "(Name|Username|login|user name):" > > } else { > > set u_prompt [join [lindex $u_prompt 0] ""] > > } > > > > > > Thank you, > > > > Brian Mahaffey > Sr. Network Engineer > Pelco > > (559) 292.1981 ext 5323 > > (559) 840.5686 Mobile > AIM/GTALK/MSN: bmahaffey at gmail.com From TSchlottog at peabodyenergy.com Mon Aug 17 20:10:20 2009 From: TSchlottog at peabodyenergy.com (Schlottog, Tighe) Date: Mon, 17 Aug 2009 15:10:20 -0500 Subject: [rancid] Re: Hlogin & Timeout In-Reply-To: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> Message-ID: <1EFCE51DB745AC4B820D8FCEB7749F6C268A2011@STLPXCMS01.us.root.peabodyenergy.com> Hey there, In your .cloginrc file do you have autoenable set to 1 by chance? It looks like you are getting to the operator level prompt but are not into the full manager level prompt. There is also a wonderful issue with the 4100 series that the switch does not seem to handle the privalege elevation handed too it by the Radius server, so we've had to pull the individual switches out via configuration like this: add user xx.xx.xx.xx rancid add password xx.xx.xx.xx {XXXXXXX} {XXXXXXX} add autoenable xx.xx.xx.xx 0 add userprompt xx.xx.xx.xx {"Please Enter Login Name:"} add passprompt xx.xx.xx.xx {"Please Enter Password:"} It looks like you are timing out while waiting on the # prompt to appear. Tighe -- Tighe Schlottog Peabody Energy From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mahaffey, Brian Sent: Monday, August 17, 2009 2:55 PM To: Rancid-discuss at shrubbery.net Subject: [rancid] Hlogin & Timeout Hello, When trying to use hlogin I get timeouts when trying to login to the enable prompt. I thought I was running version 2.3.2a10 but I guess my upgrade didn't work as expected. -bash-3.2$ hlogin HP5308-B6-1.pelco.org hp5308-b6-1.pelco.org spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org Switch - DO NOT LOGIN. user at hp5308-b6-1.pelco.org's password: ProCurve J4819A Switch 5308xl Software revision E.11.03 Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continueHP5308-B6-1> Error: TIMEOUT reached HLOGIN Version #! /usr/bin/expect -- ## ## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $ ## ## rancid 2.3.2a9 I found a patch from a google search which didn't work for me. --- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600 +++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600 @@ -666,7 +671,9 @@ # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" == "" } { - set u_prompt "(Username|login|user name):" + #added "Name" for 5406zl + #which has the prompt "Please Enter Login Name:" + set u_prompt "(Name|Username|login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] } Thank you, Brian Mahaffey Sr. Network Engineer Pelco (559) 292.1981 ext 5323 (559) 840.5686 Mobile AIM/GTALK/MSN: bmahaffey at gmail.com - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ ----------------------------------------- E-mail Disclaimer: The information contained in this e-mail, and in any accompanying documents, may constitute confidential and/or legally privileged information. The information is intended only for use by the designated recipient. If you are not the intended recipient (or responsible for the delivery of the message to the intended recipient), you are hereby notified that any dissemination, distribution, copying, or other use of, or taking of any action in reliance on this e-mail is strictly prohibited. If you have received this email communication in error, please notify the sender immediately and delete the message from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090817/a76ff797/attachment.html From jeremys at rickyninja.net Tue Aug 18 03:23:30 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Mon, 17 Aug 2009 20:23:30 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A891A7E.3040202@brightbox.co.uk> References: <4A891A7E.3040202@brightbox.co.uk> Message-ID: <20090818032330.GH19841@pegasus.billn.net> I think I broke the variable scope for $in_proc when I created a new procedure to eliminate some duplicate code. It's hard to say for certain because I am unable to reproduce the problem on my side. Grab dlogin-dev again and let me know how it goes. If this doesn't fix it, any chance I can get access to one of the devices in question with a barebones config? -jeremy From george at brightbox.co.uk Tue Aug 18 09:16:37 2009 From: george at brightbox.co.uk (George Hills) Date: Tue, 18 Aug 2009 10:16:37 +0100 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion Message-ID: <4A8A7175.5060402@brightbox.co.uk> Hi, > I think I broke the variable scope for $in_proc when I created a new > procedure to eliminate some duplicate code. It's hard to say for > certain because I am unable to reproduce the problem on my side. Grab > dlogin-dev again and let me know how it goes. This one is exactly the same as the last. Thanks for trying. Right. I might have been wasting your time by not reading your code. The "old" dlogin used to have separate checks for different forms of the "More" prompt I think? The new one looks to just have a check for "More:"? My prompt on the 6248 looks like "--More-- or (q)uit". Without really understanding what it does, I've put the following in and now it runs succesfully for both types of switch - though still with the "needs an extra 'quit'" issue on the 6248. -re "^--More-- \[^\n\r]*" { send_user -- "$expect_out(buffer)" dsend " " exp_continue } > If this doesn't fix it, > any chance I can get access to one of the devices in question with a > barebones config? Just now my "dev" devices are being used for another project, but in a few weeks time that ought to be possible if still wanted. Cheers -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From george at brightbox.co.uk Tue Aug 18 09:23:07 2009 From: george at brightbox.co.uk (George Hills) Date: Tue, 18 Aug 2009 10:23:07 +0100 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion Message-ID: <4A8A72FB.4020003@brightbox.co.uk> One more thing: Without really understanding what it does, I've put the following in and now it runs succesfully for both types of switch - though still with the "needs an extra 'quit'" issue on the 6248. -re "^--More-- \[^\n\r]*" { send_user -- "$expect_out(buffer)" dsend " " exp_continue } One set of 6248 software prompts are ^-- the other are ^ -- (ie first character is space). aaargh. -- George Hills Systems Administrator Brightbox http://www.brightbox.co.uk/ From twelcome at tenet.ac.za Tue Aug 18 16:12:02 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Tue, 18 Aug 2009 18:12:02 +0200 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <8423e7bb0908121148n75716e20ua870c1f454e4627f@mail.gmail.com> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> <8423e7bb0908121148n75716e20ua870c1f454e4627f@mail.gmail.com> Message-ID: <4A8AD2D2.8000005@tenet.ac.za> Hi I have the same problem, after an IOS upgrade on a 7609 router, resulting in annoying 5-minutely diff mails, so I made the following adjustment to the ShowLash() subroutine in bin/rancid: --- while () { tr/\015//d; last if (/^$prompt/); ----> last if (/Flash/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if ($type =~ /^(12[40]|7)/); return(-1) if (/command authorization failed/i); return(1) if /^\s*\^\s*$/; return(1) if /(Invalid input detected|Type help or )/; # the pager can not be disabled per-session on the PIX s/^<-+ More -+>\s*//; /\s+vlan\.dat$/ && next; ProcessHistory("FLASH","","","!Flash: $_"); } --- Is this the correct way to do this? Will this result in a loss of information that I might need to determine IOS version changes between upgrades? Thanks, Traiano Lance Vermilion wrote: > That will just remove it from the Diff portion it will not remove it > from printing it. If you find the sub routine that processes the dir > command you will see there is a line that will say Flash:. > > -Lance > > On Wed, Aug 12, 2009 at 2:00 AM, Smirnoff Alexander > > wrote: > > Ok, I am just add | grep -v "Flash:" before >$TMP.diff in > control_rancid and waiting for results ;) > > ------------------------------------------------------------------------ > > *From:* lavermil at gheek.net > [mailto:lavermil at gheek.net ] *On Behalf > Of *Lance Vermilion > *Sent:* Wednesday, August 12, 2009 12:34 AM > > > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > > *Subject:* Re: [rancid] cisco syslog diff > > You will need to look for the sub routine that has Flash in it. Do > a search for that in the appropriate rancid file. > > -Lance > > On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander > > > wrote: > > dir | e syslog ? it is very simple way, but I need more ;) > > how I can just disable all lines like ?!Flash: ? from mail diff > output , but this lines can be stored in CVS config changes? > > ------------------------------------------------------------------------ > > *From:* lavermil at gheek.net > [mailto:lavermil at gheek.net ] *On Behalf > Of *Lance Vermilion > *Sent:* Thursday, August 21, 2008 10:13 PM > > > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > > *Subject:* Re: [rancid] cisco syslog diff > > the other option is to write some custom pieces to not include or > modify the command for dir to exclude things you don't want to > include. > > dir | e syslog > > something like that. You may have to escape the |, you will need > to mess with it a little. > > On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander > > wrote: > > If I remove this command (dir) I lost other important changer , > like ios change. I mean about more intellectual rancid > acknowledges behavior , then minor changes like syslog grow not > cause email's. > > ------------------------------------------------------------------------ > > *From:* lavermil at gheek.net > [mailto:lavermil at gheek.net ] *On Behalf > Of *Lance Vermilion > *Sent:* Wednesday, August 20, 2008 12:11 AM > *To:* Smirnoff Alexander > *Cc:* rancid-discuss at shrubbery.net > > *Subject:* Re: [rancid] cisco syslog diff > > remove that command from what is checked in the rancid file under > /bin/ > > 2008/8/19 Smirnoff Alexander > > > Hello! > > How I can disable alerts on changing like this: > > Index: configs/172.17.200.64 > > =================================================================== > > retrieving revision 1.12 > > diff -U 4 -r1.12 172.17.200.64 > > @@ -41,10 +41,10 @@ > > !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html > > !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info > > !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver > > !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text > > - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog > > - !Flash: 7741440 bytes total (2416640 bytes free) > > + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog > > + !Flash: 7741440 bytes total (2416128 bytes free) > > ! > > !Flash: nvram: Directory of nvram:/ > > !Flash: nvram: 26 -rw- 6269 startup-config > > !Flash: nvram: 27 ---- 26 private-config > > When only syslog file size change? > > -- > Regards, > Alexandr Smirnov > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From bmahaffey at pelco.com Tue Aug 18 16:21:21 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Tue, 18 Aug 2009 09:21:21 -0700 Subject: [rancid] Re: Hlogin & Timeout In-Reply-To: <1EFCE51DB745AC4B820D8FCEB7749F6C268A2011@STLPXCMS01.us.root.peabodyenergy.com> References: <4BBAF403456ED74981E7164ED3A4C2240161A921@CA-EVS02.pelco.org> <1EFCE51DB745AC4B820D8FCEB7749F6C268A2011@STLPXCMS01.us.root.peabodyenergy.com> Message-ID: <4BBAF403456ED74981E7164ED3A4C2240161A9B6@CA-EVS02.pelco.org> Looks like I over looked the .cloginrc file. I have our Cisco Devices using the following ## START CLOGINRC ## CISCO INTERNAL DEVICES Add user *.pelco.org user Add password *.pelco.org password Add autoenable *.pelco.org 0 Add method *.pelco.org ssh So I tried our HP devices as follows ## HP INTERNAL DEVICES Add user HP* user Add password HP* password manager Add autoenable HP* 0 Add method HP* ssh ## END CLOGINRC I would assume since I was trying to login to the switch via hostname HP5308-b6-1.pelco.org when the system would do a lookup for this device in the .cloginrc file it would match the first configuration for the Cisco Devices via the .pelco.org? So I modified the HP devices configuration in the .cloginrc file to look at the IP address of the device and tested Hlogin 10.10.10.1 Which Worked. I stripped the .pelco.org from the hlogin command with the HP* in the .cloginrc file (See above) and that also worked. Hlogin hp5308-b6-1 Looks like I need to figure out a better way to call devices in the .cloginrc file. Thanks everyone for the input. From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schlottog, Tighe Sent: Monday, August 17, 2009 1:10 PM To: Rancid-discuss at shrubbery.net Subject: [rancid] Re: Hlogin & Timeout Hey there, In your .cloginrc file do you have autoenable set to 1 by chance? It looks like you are getting to the operator level prompt but are not into the full manager level prompt. There is also a wonderful issue with the 4100 series that the switch does not seem to handle the privalege elevation handed too it by the Radius server, so we've had to pull the individual switches out via configuration like this: add user xx.xx.xx.xx rancid add password xx.xx.xx.xx {XXXXXXX} {XXXXXXX} add autoenable xx.xx.xx.xx 0 add userprompt xx.xx.xx.xx {"Please Enter Login Name:"} add passprompt xx.xx.xx.xx {"Please Enter Password:"} It looks like you are timing out while waiting on the # prompt to appear. Tighe -- Tighe Schlottog Peabody Energy From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mahaffey, Brian Sent: Monday, August 17, 2009 2:55 PM To: Rancid-discuss at shrubbery.net Subject: [rancid] Hlogin & Timeout Hello, When trying to use hlogin I get timeouts when trying to login to the enable prompt. I thought I was running version 2.3.2a10 but I guess my upgrade didn't work as expected. -bash-3.2$ hlogin HP5308-B6-1.pelco.org hp5308-b6-1.pelco.org spawn hpuifilter -- ssh -c 3des -x -l user hp5308-b6-1.pelco.org Switch - DO NOT LOGIN. user at hp5308-b6-1.pelco.org's password: ProCurve J4819A Switch 5308xl Software revision E.11.03 Copyright (C) 1991-2008 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continueHP5308-B6-1> Error: TIMEOUT reached HLOGIN Version #! /usr/bin/expect -- ## ## $Id: hlogin.in,v 1.58 2008/11/12 00:59:04 heas Exp $ ## ## rancid 2.3.2a9 I found a patch from a google search which didn't work for me. --- bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600 +++ bin/hlogin 2009-02-04 00:07:52.000000000 -0600 @@ -666,7 +671,9 @@ # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" == "" } { - set u_prompt "(Username|login|user name):" + #added "Name" for 5406zl + #which has the prompt "Please Enter Login Name:" + set u_prompt "(Name|Username|login|user name):" } else { set u_prompt [join [lindex $u_prompt 0] ""] } Thank you, Brian Mahaffey Sr. Network Engineer Pelco (559) 292.1981 ext 5323 (559) 840.5686 Mobile AIM/GTALK/MSN: bmahaffey at gmail.com - ------------------------------------------------------------------------ ------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------ ------ ________________________________ E-mail Disclaimer: The information contained in this e-mail, and in any accompanying documents, may constitute confidential and/or legally privileged information. The information is intended only for use by the designated recipient. If you are not the intended recipient (or responsible for the delivery of the message to the intended recipient), you are hereby notified that any dissemination, distribution, copying, or other use of, or taking of any action in reliance on this e-mail is strictly prohibited. If you have received this email communication in error, please notify the sender immediately and delete the message from your system. - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090818/5b1c5baf/attachment.html From jeremys at rickyninja.net Tue Aug 18 16:45:42 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Tue, 18 Aug 2009 09:45:42 -0700 Subject: [rancid] Re: Dell Powerconnect switches - problem and suggestion In-Reply-To: <4A8A7175.5060402@brightbox.co.uk> References: <4A8A7175.5060402@brightbox.co.uk> Message-ID: <20090818164542.GI19841@pegasus.billn.net> I've only seen one version of a more prompt in the Dells I've had access to. I removed the check for the other more prompts thinking they were left over from clogin and only applicable for Cisco devices. It's ok though, this is why I've had you downloading the dev code that isn't linked on rickyninja.net. Sounds like you've got it mostly working for the time being. Let me know when the dev devices become available, and you can email me directly so only I'll have the login info. Then I'll work on the quit issue, and anything else we notice along the way. -jeremy On 08/18/09, George Hills said: > Hi, > > > I think I broke the variable scope for $in_proc when I created a new > > procedure to eliminate some duplicate code. It's hard to say for > > certain because I am unable to reproduce the problem on my side. Grab > > dlogin-dev again and let me know how it goes. > > This one is exactly the same as the last. Thanks for trying. > > Right. I might have been wasting your time by not reading your code. > > The "old" dlogin used to have separate checks for different forms of the > "More" prompt I think? The new one looks to just have a check for > "More:"? My prompt on the 6248 looks like "--More-- or (q)uit". > > Without really understanding what it does, I've put the following in and > now it runs succesfully for both types of switch - though still with the > "needs an extra 'quit'" issue on the 6248. > > -re "^--More-- \[^\n\r]*" { > send_user -- "$expect_out(buffer)" > dsend " " > exp_continue > } > > > If this doesn't fix it, > > any chance I can get access to one of the devices in question with a > > barebones config? > > Just now my "dev" devices are being used for another project, but in a > few weeks time that ought to be possible if still wanted. > > Cheers > -- > George Hills > Systems Administrator > Brightbox > http://www.brightbox.co.uk/ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Tue Aug 18 16:56:50 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 18 Aug 2009 09:56:50 -0700 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <4A8AD2D2.8000005@tenet.ac.za> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> <8423e7bb0908121148n75716e20ua870c1f454e4627f@mail.gmail.com> <4A8AD2D2.8000005@tenet.ac.za> Message-ID: <20090818165650.GF22943@shrubbery.net> Tue, Aug 18, 2009 at 06:12:02PM +0200, Traiano Welcome: > Hi > > I have the same problem, after an IOS upgrade on a 7609 router, > resulting in annoying 5-minutely diff mails, so I made the following > adjustment to the ShowLash() subroutine in bin/rancid: isnt there some config knob that is causing the file to be created in the first place? > --- > while () { > tr/\015//d; > last if (/^$prompt/); > ----> last if (/Flash/); > next if (/^(\s*|\s*$cmd\s*)$/); > return(1) if ($type =~ /^(12[40]|7)/); > return(-1) if (/command authorization failed/i); > return(1) if /^\s*\^\s*$/; > return(1) if /(Invalid input detected|Type help or )/; > # the pager can not be disabled per-session on the PIX > s/^<-+ More -+>\s*//; > /\s+vlan\.dat$/ && next; > ProcessHistory("FLASH","","","!Flash: $_"); > } > --- > > Is this the correct way to do this? Will this result in a loss of > information that I might need to determine IOS version changes between > upgrades? > > Thanks, > Traiano > > > > > > > > > Lance Vermilion wrote: > > That will just remove it from the Diff portion it will not remove it > > from printing it. If you find the sub routine that processes the dir > > command you will see there is a line that will say Flash:. > > > > -Lance > > > > On Wed, Aug 12, 2009 at 2:00 AM, Smirnoff Alexander > > > wrote: > > > > Ok, I am just add | grep -v "Flash:" before >$TMP.diff in > > control_rancid and waiting for results ;) > > > > ------------------------------------------------------------------------ > > > > *From:* lavermil at gheek.net > > [mailto:lavermil at gheek.net ] *On Behalf > > Of *Lance Vermilion > > *Sent:* Wednesday, August 12, 2009 12:34 AM > > > > > > *To:* Smirnoff Alexander > > *Cc:* rancid-discuss at shrubbery.net > > > > *Subject:* Re: [rancid] cisco syslog diff > > > > You will need to look for the sub routine that has Flash in it. Do > > a search for that in the appropriate rancid file. > > > > -Lance > > > > On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander > > > > > wrote: > > > > dir | e syslog ? it is very simple way, but I need more ;) > > > > how I can just disable all lines like ?!Flash: ? from mail diff > > output , but this lines can be stored in CVS config changes? > > > > ------------------------------------------------------------------------ > > > > *From:* lavermil at gheek.net > > [mailto:lavermil at gheek.net ] *On Behalf > > Of *Lance Vermilion > > *Sent:* Thursday, August 21, 2008 10:13 PM > > > > > > *To:* Smirnoff Alexander > > *Cc:* rancid-discuss at shrubbery.net > > > > *Subject:* Re: [rancid] cisco syslog diff > > > > the other option is to write some custom pieces to not include or > > modify the command for dir to exclude things you don't want to > > include. > > > > dir | e syslog > > > > something like that. You may have to escape the |, you will need > > to mess with it a little. > > > > On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander > > > wrote: > > > > If I remove this command (dir) I lost other important changer , > > like ios change. I mean about more intellectual rancid > > acknowledges behavior , then minor changes like syslog grow not > > cause email's. > > > > ------------------------------------------------------------------------ > > > > *From:* lavermil at gheek.net > > [mailto:lavermil at gheek.net ] *On Behalf > > Of *Lance Vermilion > > *Sent:* Wednesday, August 20, 2008 12:11 AM > > *To:* Smirnoff Alexander > > *Cc:* rancid-discuss at shrubbery.net > > > > *Subject:* Re: [rancid] cisco syslog diff > > > > remove that command from what is checked in the rancid file under > > /bin/ > > > > 2008/8/19 Smirnoff Alexander > > > > > > Hello! > > > > How I can disable alerts on changing like this: > > > > Index: configs/172.17.200.64 > > > > =================================================================== > > > > retrieving revision 1.12 > > > > diff -U 4 -r1.12 172.17.200.64 > > > > @@ -41,10 +41,10 @@ > > > > !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html > > > > !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info > > > > !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver > > > > !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text > > > > - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog > > > > - !Flash: 7741440 bytes total (2416640 bytes free) > > > > + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog > > > > + !Flash: 7741440 bytes total (2416128 bytes free) > > > > ! > > > > !Flash: nvram: Directory of nvram:/ > > > > !Flash: nvram: 26 -rw- 6269 startup-config > > > > !Flash: nvram: 27 ---- 26 private-config > > > > When only syslog file size change? > > > > -- > > Regards, > > Alexandr Smirnov From mathiruban at sltnet.lk Wed Aug 19 04:36:19 2009 From: mathiruban at sltnet.lk (Mathiruban) Date: Wed, 19 Aug 2009 10:06:19 +0530 Subject: [rancid] Error in configure Message-ID: <0874FC96156447D980E284496DB32C46@mathiruban> Dear Team, When I prepare the Rancid package for compiling with the configure command on Fedora10. # ./configure --prfix=/usr/local/rancid/ I am getting this error message. configure:error:no acceptable C compiler found in $PATH. Pls help me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090819/833eaf95/attachment.html From Sean.Rolinson at alloptions.nl Wed Aug 19 06:15:14 2009 From: Sean.Rolinson at alloptions.nl (Sean Rolinson) Date: Wed, 19 Aug 2009 08:15:14 +0200 Subject: [rancid] Re: Error in configure Message-ID: <94337A8C30958B45AEB07E6F4D899BD363BEFC748A@AOIEXMB01.AOI.LAN> Mathiruban, It appears you don't have a C compiler installed. If you have internet access from the server, try "yum install gcc" as root. This will install the GCC C Compiler. Then re-try the configure script. Regards, Sean ________________________________ From: rancid-discuss-bounces at shrubbery.net To: rancid-discuss at shrubbery.net Cc: R Mathiruban Sent: Wed Aug 19 06:36:19 2009 Subject: [rancid] Error in configure Dear Team, When I prepare the Rancid package for compiling with the configure command on Fedora10. # ./configure --prfix=/usr/local/rancid/ I am getting this error message. configure:error:no acceptable C compiler found in $PATH. Pls help me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090819/e7bf7544/attachment.html From mathiruban at sltnet.lk Wed Aug 19 11:57:55 2009 From: mathiruban at sltnet.lk (Mathiruban) Date: Wed, 19 Aug 2009 17:27:55 +0530 Subject: [rancid] Re: Error in configure Message-ID: <6D48C5DD20244E13B4027947481C5E16@mathiruban> Hi Sean, Again I have a problem when create the /usr/local/var/networking directory and its associated database and network device list files. [rancid at rancid ~]$ /usr/local/rancid/bin/rancid-cvs /usr/local/rancid/bin/rancid-cvs: line 98: cvs: command not found Pls advise me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Mathiruban To: Sean Rolinson ; rancid-discuss at shrubbery.net Sent: Wednesday, August 19, 2009 12:14 PM Subject: Re: [rancid] Error in configure Hi Sean, Thanks a lot. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Sean Rolinson To: 'mathiruban at sltnet.lk' ; 'rancid-discuss at shrubbery.net' Sent: Wednesday, August 19, 2009 11:45 AM Subject: Re: [rancid] Error in configure Mathiruban, It appears you don't have a C compiler installed. If you have internet access from the server, try "yum install gcc" as root. This will install the GCC C Compiler. Then re-try the configure script. Regards, Sean ---------------------------------------------------------------------------- From: rancid-discuss-bounces at shrubbery.net To: rancid-discuss at shrubbery.net Cc: R Mathiruban Sent: Wed Aug 19 06:36:19 2009 Subject: [rancid] Error in configure Dear Team, When I prepare the Rancid package for compiling with the configure command on Fedora10. # ./configure --prfix=/usr/local/rancid/ I am getting this error message. configure:error:no acceptable C compiler found in $PATH. Pls help me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090819/c27028f8/attachment.html From rwest at zyedge.com Wed Aug 19 17:14:12 2009 From: rwest at zyedge.com (Ryan West) Date: Wed, 19 Aug 2009 13:14:12 -0400 Subject: [rancid] Re: Error in configure In-Reply-To: <6D48C5DD20244E13B4027947481C5E16@mathiruban> References: <6D48C5DD20244E13B4027947481C5E16@mathiruban> Message-ID: <6E21B2BDEF6E714EA0B5BA8D5D0E1401248E2698A1@zy-ex1.zyedge.local> ?yum install cvs? http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid I would start here and if you?re still having problems getting it installed, try back then. -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mathiruban Sent: Wednesday, August 19, 2009 7:58 AM To: Mathiruban; Sean Rolinson; rancid-discuss at shrubbery.net Subject: [rancid] Re: Error in configure Hi Sean, Again I have a problem when create the /usr/local/var/networking directory and its associated database and network device list files. [rancid at rancid ~]$ /usr/local/rancid/bin/rancid-cvs /usr/local/rancid/bin/rancid-cvs: line 98: cvs: command not found Pls advise me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Mathiruban To: Sean Rolinson ; rancid-discuss at shrubbery.net Sent: Wednesday, August 19, 2009 12:14 PM Subject: Re: [rancid] Error in configure Hi Sean, Thanks a lot. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Sean Rolinson To: 'mathiruban at sltnet.lk' ; 'rancid-discuss at shrubbery.net' Sent: Wednesday, August 19, 2009 11:45 AM Subject: Re: [rancid] Error in configure Mathiruban, It appears you don't have a C compiler installed. If you have internet access from the server, try "yum install gcc" as root. This will install the GCC C Compiler. Then re-try the configure script. Regards, Sean ________________________________ From: rancid-discuss-bounces at shrubbery.net To: rancid-discuss at shrubbery.net Cc: R Mathiruban Sent: Wed Aug 19 06:36:19 2009 Subject: [rancid] Error in configure Dear Team, When I prepare the Rancid package for compiling with the configure command on Fedora10. # ./configure --prfix=/usr/local/rancid/ I am getting this error message. configure:error:no acceptable C compiler found in $PATH. Pls help me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090819/17acdeb0/attachment.html From bmahaffey at pelco.com Wed Aug 19 17:08:41 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Wed, 19 Aug 2009 10:08:41 -0700 Subject: [rancid] Re: Error in configure In-Reply-To: <6D48C5DD20244E13B4027947481C5E16@mathiruban> References: <6D48C5DD20244E13B4027947481C5E16@mathiruban> Message-ID: <4BBAF403456ED74981E7164ED3A4C2240161AAEE@CA-EVS02.pelco.org> You are missing dependencies on your installation. CVS You should try this website to get Rancid installed and the dependencies checked. http://www.siliconhotrod.com/?q=node/2 Be aware that this is only for Rancid and does not cover CVSWEB, SVN, or SSH. Here is another guide to install Rancid manually. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mathiruban Sent: Wednesday, August 19, 2009 4:58 AM To: Mathiruban; Sean Rolinson; rancid-discuss at shrubbery.net Subject: [rancid] Re: Error in configure Hi Sean, Again I have a problem when create the /usr/local/var/networking directory and its associated database and network device list files. [rancid at rancid ~]$ /usr/local/rancid/bin/rancid-cvs /usr/local/rancid/bin/rancid-cvs: line 98: cvs: command not found Pls advise me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Mathiruban To: Sean Rolinson ; rancid-discuss at shrubbery.net Sent: Wednesday, August 19, 2009 12:14 PM Subject: Re: [rancid] Error in configure Hi Sean, Thanks a lot. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk ----- Original Message ----- From: Sean Rolinson To: 'mathiruban at sltnet.lk' ; 'rancid-discuss at shrubbery.net' Sent: Wednesday, August 19, 2009 11:45 AM Subject: Re: [rancid] Error in configure Mathiruban, It appears you don't have a C compiler installed. If you have internet access from the server, try "yum install gcc" as root. This will install the GCC C Compiler. Then re-try the configure script. Regards, Sean ________________________________ From: rancid-discuss-bounces at shrubbery.net To: rancid-discuss at shrubbery.net Cc: R Mathiruban Sent: Wed Aug 19 06:36:19 2009 Subject: [rancid] Error in configure Dear Team, When I prepare the Rancid package for compiling with the configure command on Fedora10. # ./configure --prfix=/usr/local/rancid/ I am getting this error message. configure:error:no acceptable C compiler found in $PATH. Pls help me. Thx & Rgds, R. Mathiruban Assistant Engineer, Network Management Centre / Internet Sri Lanka Telecom. T : +94112543085 / 86 F : +94112391324 E : nwadmin at sltnet.lk - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090819/b8e24050/attachment.html From booloo at ucsc.edu Thu Aug 20 18:20:25 2009 From: booloo at ucsc.edu (Mark Boolootian) Date: Thu, 20 Aug 2009 11:20:25 -0700 Subject: [rancid] trouble with HP 2650 Message-ID: <20090820182025.GA49413@root.ucsc.edu> I'm running rancid-devel-2.3.2a10 (port build on FreeBSD 7.0) and am not having luck with an HP 2650. When I hlogin to the device, I end up watching the clock updating - but no prompt. I have to CTRL-C to exit. Any thoughts on where I'm going wrong? From booloo at ucsc.edu Thu Aug 20 18:52:11 2009 From: booloo at ucsc.edu (Mark Boolootian) Date: Thu, 20 Aug 2009 11:52:11 -0700 Subject: [rancid] Re: trouble with HP 2650 In-Reply-To: <1EFCE51DB745AC4B820D8FCEB7749F6C26A63682@STLPXCMS01.us.root.peabodyenergy.com> References: <20090820182025.GA49413@root.ucsc.edu> <1EFCE51DB745AC4B820D8FCEB7749F6C26A63682@STLPXCMS01.us.root.peabodyenergy.com> Message-ID: <20090820185211.GA49974@root.ucsc.edu> > Your default login is menu, not the CLI. Dumb me - many thanks for pointing that out Tighe. From TSchlottog at peabodyenergy.com Thu Aug 20 18:46:26 2009 From: TSchlottog at peabodyenergy.com (Schlottog, Tighe) Date: Thu, 20 Aug 2009 13:46:26 -0500 Subject: [rancid] Re: trouble with HP 2650 In-Reply-To: <20090820182025.GA49413@root.ucsc.edu> References: <20090820182025.GA49413@root.ucsc.edu> Message-ID: <1EFCE51DB745AC4B820D8FCEB7749F6C26A63682@STLPXCMS01.us.root.peabodyenergy.com> Your default login is menu, not the CLI. Telnet or ssh into the switch, you'll be presented with a menu, select option 8 (Run Setup) then move around to the Logon Default and change the option to say CLI. Save your setup and you're good to go. -- Tighe Schlottog Peabody Energy W: 314.342.7868 C: 618.580.8166 -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mark Boolootian Sent: Thursday, August 20, 2009 1:20 PM To: rancid-discuss at shrubbery.net Subject: [rancid] trouble with HP 2650 I'm running rancid-devel-2.3.2a10 (port build on FreeBSD 7.0) and am not having luck with an HP 2650. When I hlogin to the device, I end up watching the clock updating - but no prompt. I have to CTRL-C to exit. Any thoughts on where I'm going wrong? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss ----------------------------------------- E-mail Disclaimer: The information contained in this e-mail, and in any accompanying documents, may constitute confidential and/or legally privileged information. The information is intended only for use by the designated recipient. If you are not the intended recipient (or responsible for the delivery of the message to the intended recipient), you are hereby notified that any dissemination, distribution, copying, or other use of, or taking of any action in reliance on this e-mail is strictly prohibited. If you have received this email communication in error, please notify the sender immediately and delete the message from your system. From mathiruban at gmail.com Fri Aug 21 03:08:33 2009 From: mathiruban at gmail.com (Mathiruban Rajagopal) Date: Fri, 21 Aug 2009 08:38:33 +0530 Subject: [rancid] Rancid configure error Message-ID: <136e115c0908202008l50caf50ep58d5cce3dfc1eb2d@mail.gmail.com> Dear Team, I am configuring Rancid on HP DL380 server. When I used rancid-cvs command to create the /usr/local/var/networking/ directory and its associated database and network device list files, I am getting an error that cvs command not found. *[rancid at rancid ~]$ /usr/local/rancid/bin/rancid-cvs */usr/local/rancid/bin/rancid-cvs: line 98: cvs: command not found When I checked the log, it say " there is no version here; do 'cvs checkout' first" *[root at rancid logs]# more networking.20090820.090101 *starting: Thu Aug 20 09:01:01 IST 2009 cvs status: cannot open CVS/Entries for reading: No such file or directory cvs status: use `cvs add' to create an entry for 203.94.64.246 cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs added missing router 203.94.64.246 Trying to get all of the configs. All routers sucessfully completed. cvs diff: in directory .: cvs [diff aborted]: there is no version here; run 'cvs checkout' first cvs commit: in directory .: cvs [commit aborted]: there is no version here; run 'cvs checkout' first Pls help me. Thx & Rgds, Mathy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090821/a31f8851/attachment.html From ml at kenweb.org Fri Aug 21 08:49:58 2009 From: ml at kenweb.org (ML) Date: Fri, 21 Aug 2009 04:49:58 -0400 Subject: [rancid] Upgrading RANCID to latest release Message-ID: <4A8E5FB6.5080004@kenweb.org> I'm currently using 2.3.2a7. I've run into a few issues wherein configs won't be pulled because "write term" won't finish and "show vlan-switch" doesn't work either. I read that the "show vlan-switch" issue is fixed in a later release. Since my version was released in 2006 I think I should upgrade. Where do I get the latest release of RANCID? Shrubbery.net? I was under the impression development had stopped on RANCID. Is this true? Is there a more recent community supported release out there? I inherited a RANCID system from a co-worker so I'm not sure how I might go about upgrading if I wanted to. Can I just compile the latest clogin (Cisco only shop here) and copy over the older clogin with it? I don't want to upset the delicate balance I have going with the PHP fronted to a MySQL database that stores the device information I use to generate cloginrc Thanks From lcaron at unix-scripts.info Sat Aug 22 10:14:20 2009 From: lcaron at unix-scripts.info (Laurent CARON) Date: Sat, 22 Aug 2009 12:14:20 +0200 Subject: [rancid] 3com 5500 device support Message-ID: <4A8FC4FC.7050405@unix-scripts.info> Hi, I've seen the recent thread of Jun. 12 (Added 3com BLS switches (2948) and corrected script for fortigate 80, and OpenSuSE spec file) about 3com device support. I'd like to know if supporting 3com devices in the official rancid distribution is planned or not. Thanks Laurent From jethro.binks at strath.ac.uk Sat Aug 22 11:14:33 2009 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Sat, 22 Aug 2009 12:14:33 +0100 (BST) Subject: [rancid] Re: 3com 5500 device support In-Reply-To: <4A8FC4FC.7050405@unix-scripts.info> References: <4A8FC4FC.7050405@unix-scripts.info> Message-ID: On Sat, 22 Aug 2009, Laurent CARON wrote: > I've seen the recent thread of Jun. 12 (Added 3com BLS switches (2948) > and corrected script for fortigate 80, and OpenSuSE spec file) about > 3com device support. > > I'd like to know if supporting 3com devices in the official rancid > distribution is planned or not. Officially, I do not know. But I knocked up some modules specifically for 5500s, of which we have a good number, and they work reasonably well. I have just uploaded what you need to try it out, see: http://sites.google.com/site/jrbinks/code/rancid/h3c and let me know how you get on. Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK From lcaron at unix-scripts.info Sun Aug 23 14:19:49 2009 From: lcaron at unix-scripts.info (Laurent CARON) Date: Sun, 23 Aug 2009 16:19:49 +0200 Subject: [rancid] Re: 3com 5500 device support In-Reply-To: References: <4A8FC4FC.7050405@unix-scripts.info> Message-ID: <4A915005.5010903@unix-scripts.info> On 22/08/2009 13:14, Jethro R Binks wrote: > On Sat, 22 Aug 2009, Laurent CARON wrote: > >> I've seen the recent thread of Jun. 12 (Added 3com BLS switches (2948) >> and corrected script for fortigate 80, and OpenSuSE spec file) about >> 3com device support. >> >> I'd like to know if supporting 3com devices in the official rancid >> distribution is planned or not. > > Officially, I do not know. But I knocked up some modules specifically for > 5500s, of which we have a good number, and they work reasonably well. > > I have just uploaded what you need to try it out, see: > > http://sites.google.com/site/jrbinks/code/rancid/h3c > > and let me know how you get on. Hi, Tried it on both 4500 and 5500 series switches and it seems to somehow fail. I get the following error in the logs: Getting missed routers: round 3. can not find channel named "exp6" while executing "close" ("foreach" body line 129) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/lib/rancid/bin/h3clogin" line 657) routername.domain.com h3clogin error: Error: TIMEOUT reached routername.domain.com: missed cmd(s): display domain,display ftm topology-database,display current-configuration,display password-control super,display cluster,display device manuinfo,display xrn-fabric,display password-control,display fan,display poe temperature-protection,display mirror all,display lacp sys,display fib,display poe powersupply,display device,display version,display link-aggregation verbose,display ssh server status,display vlan all,display link-aggregation summary,display power,display boot-loader,display local-user routername.domain.com: End of run not found ! Whenever using bin/h3clogin routername.domainname.com I can get the switch prompt fine. Do you have a clue about what might be wrong here ? Thanks From twelcome at tenet.ac.za Mon Aug 24 10:22:23 2009 From: twelcome at tenet.ac.za (Traiano Welcome) Date: Mon, 24 Aug 2009 12:22:23 +0200 Subject: [rancid] Re: cisco syslog diff In-Reply-To: <20090818165650.GF22943@shrubbery.net> References: <986544234AB0A44BADE40DF502E2012A0199606A@SPBMAIL.spb.sovintel.net> <8423e7bb0808191311p53b92cf3xd770747146f2bcbe@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A019961AB@SPBMAIL.spb.sovintel.net> <8423e7bb0808211112m716d424fsb46a9ea3ad4cbceb@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB1E5@SPBMAIL.spb.sovintel.net> <8423e7bb0908111334i5abbaf68ob6ad3ade828b9bc7@mail.gmail.com> <986544234AB0A44BADE40DF502E2012A022CB2AA@SPBMAIL.spb.sovintel.net> <8423e7bb0908121148n75716e20ua870c1f454e4627f@mail.gmail.com> <4A8AD2D2.8000005@tenet.ac.za> <20090818165650.GF22943@shrubbery.net> Message-ID: <4A9269DF.2000005@tenet.ac.za> john heasley wrote: > Tue, Aug 18, 2009 at 06:12:02PM +0200, Traiano Welcome: > >> Hi >> >> I have the same problem, after an IOS upgrade on a 7609 router, >> resulting in annoying 5-minutely diff mails, so I made the following >> adjustment to the ShowLash() subroutine in bin/rancid: >> > > isnt there some config knob that is causing the file to be created in > the first place? > > I've been trying to find out if this might be the case. My suspicion is that this should be fixed on the cisco IOS, but I have not yet been able to pinpoint the correct knob ... >> --- >> while () { >> tr/\015//d; >> last if (/^$prompt/); >> ----> last if (/Flash/); >> next if (/^(\s*|\s*$cmd\s*)$/); >> return(1) if ($type =~ /^(12[40]|7)/); >> return(-1) if (/command authorization failed/i); >> return(1) if /^\s*\^\s*$/; >> return(1) if /(Invalid input detected|Type help or )/; >> # the pager can not be disabled per-session on the PIX >> s/^<-+ More -+>\s*//; >> /\s+vlan\.dat$/ && next; >> ProcessHistory("FLASH","","","!Flash: $_"); >> } >> --- >> >> Is this the correct way to do this? Will this result in a loss of >> information that I might need to determine IOS version changes between >> upgrades? >> >> Thanks, >> Traiano >> >> >> >> >> >> >> >> >> Lance Vermilion wrote: >> >>> That will just remove it from the Diff portion it will not remove it >>> from printing it. If you find the sub routine that processes the dir >>> command you will see there is a line that will say Flash:. >>> >>> -Lance >>> >>> On Wed, Aug 12, 2009 at 2:00 AM, Smirnoff Alexander >>> > wrote: >>> >>> Ok, I am just add | grep -v "Flash:" before >$TMP.diff in >>> control_rancid and waiting for results ;) >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* lavermil at gheek.net >>> [mailto:lavermil at gheek.net ] *On Behalf >>> Of *Lance Vermilion >>> *Sent:* Wednesday, August 12, 2009 12:34 AM >>> >>> >>> *To:* Smirnoff Alexander >>> *Cc:* rancid-discuss at shrubbery.net >>> >>> *Subject:* Re: [rancid] cisco syslog diff >>> >>> You will need to look for the sub routine that has Flash in it. Do >>> a search for that in the appropriate rancid file. >>> >>> -Lance >>> >>> On Mon, Aug 10, 2009 at 11:36 PM, Smirnoff Alexander >>> > >>> wrote: >>> >>> dir | e syslog ? it is very simple way, but I need more ;) >>> >>> how I can just disable all lines like ?!Flash: ? from mail diff >>> output , but this lines can be stored in CVS config changes? >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* lavermil at gheek.net >>> [mailto:lavermil at gheek.net ] *On Behalf >>> Of *Lance Vermilion >>> *Sent:* Thursday, August 21, 2008 10:13 PM >>> >>> >>> *To:* Smirnoff Alexander >>> *Cc:* rancid-discuss at shrubbery.net >>> >>> *Subject:* Re: [rancid] cisco syslog diff >>> >>> the other option is to write some custom pieces to not include or >>> modify the command for dir to exclude things you don't want to >>> include. >>> >>> dir | e syslog >>> >>> something like that. You may have to escape the |, you will need >>> to mess with it a little. >>> >>> On Wed, Aug 20, 2008 at 11:19 PM, Smirnoff Alexander >>> > wrote: >>> >>> If I remove this command (dir) I lost other important changer , >>> like ios change. I mean about more intellectual rancid >>> acknowledges behavior , then minor changes like syslog grow not >>> cause email's. >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* lavermil at gheek.net >>> [mailto:lavermil at gheek.net ] *On Behalf >>> Of *Lance Vermilion >>> *Sent:* Wednesday, August 20, 2008 12:11 AM >>> *To:* Smirnoff Alexander >>> *Cc:* rancid-discuss at shrubbery.net >>> >>> *Subject:* Re: [rancid] cisco syslog diff >>> >>> remove that command from what is checked in the rancid file under >>> /bin/ >>> >>> 2008/8/19 Smirnoff Alexander >> > >>> >>> Hello! >>> >>> How I can disable alerts on changing like this: >>> >>> Index: configs/172.17.200.64 >>> >>> =================================================================== >>> >>> retrieving revision 1.12 >>> >>> diff -U 4 -r1.12 172.17.200.64 >>> >>> @@ -41,10 +41,10 @@ >>> >>> !Flash: 7 drwx 4032 Feb 02 2005 05:17:01 +03:00 html >>> >>> !Flash: 21 -rwx 109 Feb 02 2005 05:09:06 +03:00 info >>> >>> !Flash: 22 -rwx 109 Feb 02 2005 05:18:09 +03:00 info.ver >>> >>> !Flash: 362 -rwx 6269 Aug 18 2008 10:50:57 +04:00 config.text >>> >>> - !Flash: 363 -rwx 662228 Aug 19 2008 10:04:07 +04:00 syslog >>> >>> - !Flash: 7741440 bytes total (2416640 bytes free) >>> >>> + !Flash: 363 -rwx 662626 Aug 19 2008 11:48:59 +04:00 syslog >>> >>> + !Flash: 7741440 bytes total (2416128 bytes free) >>> >>> ! >>> >>> !Flash: nvram: Directory of nvram:/ >>> >>> !Flash: nvram: 26 -rw- 6269 startup-config >>> >>> !Flash: nvram: 27 ---- 26 private-config >>> >>> When only syslog file size change? >>> >>> -- >>> Regards, >>> Alexandr Smirnov >>> From mstefani at redhat.com Mon Aug 24 12:11:05 2009 From: mstefani at redhat.com (Michael Stefaniuc) Date: Mon, 24 Aug 2009 14:11:05 +0200 Subject: [rancid] Re: CatOS (UNCLASSIFIED) In-Reply-To: References: Message-ID: <4A928359.80604@redhat.com> Hello Don, Roeun, Don T Mr CTR USA HRC wrote: > Classification: _* UNCLASSIFIED*_** > Caveats: NONE > > > Is there a way to backup non-default configurations only on CatOS switches? > > I think what?s happening is that when users connect & disconnect ports, > it changes a few variable metrics such as STP cost & prints them in > ?show running-config all? or ?write term all?. This causes cvsweb to > see it as a change. I would like it to diff ?show running-config? or > just ?write term? instead. Are there any changes that I can make? not sure if somebody replied to you but attached is a patch that deals with the problem differently. It kills the spantree portcost lines from the CatOS config. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Consulting Communications Engineer Fax.: +49-711-96437-111 -------------------------------------------------------------------- Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach Handelsregister: Amtsgericht Muenchen HRB 153243 Gesch?ftsf?hrer: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid-2.3.2a6-kill-portcost.diff Type: text/x-patch Size: 445 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090824/6a151d25/attachment.bin From bmahaffey at pelco.com Tue Aug 25 16:22:51 2009 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Tue, 25 Aug 2009 09:22:51 -0700 Subject: [rancid] Re: Rancid configure error In-Reply-To: <136e115c0908202008l50caf50ep58d5cce3dfc1eb2d@mail.gmail.com> References: <136e115c0908202008l50caf50ep58d5cce3dfc1eb2d@mail.gmail.com> Message-ID: <4BBAF403456ED74981E7164ED3A4C2240161AF1F@CA-EVS02.pelco.org> You are missing dependencies on your installation. CVS You should try this website to get Rancid installed and the dependencies checked. http://www.siliconhotrod.com/?q=node/2 From siliconhotrom.com no it isn?t my website, I am not intelligent enough to code. Yum install perl bash expect gzip tar automake wget cvs I would go step by step on the rancid installation guide, if something doesn?t work, go back over the guide. Don?t skim through it as you will have problems. Be aware that this is only for Rancid and does not cover CVSWEB, SVN, or SSH. Here is another guide to install Rancid manually. http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mathiruban Rajagopal Sent: Thursday, August 20, 2009 8:09 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Rancid configure error Dear Team, I am configuring Rancid on HP DL380 server. When I used rancid-cvs command to create the /usr/local/var/networking/ directory and its associated database and network device list files, I am getting an error that cvs command not found. [rancid at rancid ~]$ /usr/local/rancid/bin/rancid-cvs /usr/local/rancid/bin/rancid-cvs: line 98: cvs: command not found When I checked the log, it say " there is no version here; do 'cvs checkout' first" [root at rancid logs]# more networking.20090820.090101 starting: Thu Aug 20 09:01:01 IST 2009 cvs status: cannot open CVS/Entries for reading: No such file or directory cvs status: use `cvs add' to create an entry for 203.94.64.246 cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs added missing router 203.94.64.246 Trying to get all of the configs. All routers sucessfully completed. cvs diff: in directory .: cvs [diff aborted]: there is no version here; run 'cvs checkout' first cvs commit: in directory .: cvs [commit aborted]: there is no version here; run 'cvs checkout' first Pls help me. Thx & Rgds, Mathy - ------------------------------------------------------------------------------ Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. - ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090825/d986ffc2/attachment.html From sreekanth.krishna at gmail.com Tue Aug 25 17:11:05 2009 From: sreekanth.krishna at gmail.com (Sreekanth K) Date: Tue, 25 Aug 2009 22:41:05 +0530 Subject: [rancid] Netapp Netcache and Bluecoat SG proxy Message-ID: <32c3e1da0908251011x416cb319x2ca14c95206c8e2d@mail.gmail.com> Dear All, Is anyone in the rancid community doing the backing up the Netcache and Bluecoat appliances ? -- Best Regards K Sreekanth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090825/3613fc23/attachment.html From bryan at amrllc.net Tue Aug 25 21:01:43 2009 From: bryan at amrllc.net (Bryan Fuselier) Date: Tue, 25 Aug 2009 16:01:43 -0500 Subject: [rancid] Alcatel 7450 Message-ID: <8bae9f60908251401v337fe5bfwdc96ec77654001ae@mail.gmail.com> I have an Alcatel Lucent ESS 7450 with a standard prompt of: "*B:LFTHEDSW1# " (space at the end) When I perform the command: clogin -c "environment no more; admin display-config" 10.128.1.2 the script logs in, inputs the password and actually shows the prompt, but becomes un-responsive until I get "Error: TIMEOUT reached" and the script exits I can't figure out why it won't work since # is a common cisco prompt. The switch only allows ssh and here is the entry for this device in .cloginrc: add noenable 10.128.1.2 1 add method 10.128.1.2 {ssh} add user 10.128.1.2 admin add password 10.128.1.2 {password} add passprompt 10.128.1.2 {"password: "} Can I modify a copy of clogin somehow to make this automated login work? Thank you in advance. Bryan F. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20090825/ae32a83c/attachment.html From dpz at berkeley.edu Thu Aug 27 17:11:28 2009 From: dpz at berkeley.edu (David Paul Zimmerman) Date: Thu, 27 Aug 2009 10:11:28 -0700 Subject: [rancid] FreeBSD 7.2 & rancid/expect/tcl ports Message-ID: <42C9996A-C4DA-441A-8924-E4F6BC0E7FC2@berkeley.edu> Hi, Sometimes I wish I was able to refer to a message that would get me out of a jam, so I thought I'd share the results of an upgrade I've just finished to my RANCID servers: FreeBSD 7.2-RELEASE-p3 rancid-2.3.2 Really Awesome New Cisco confIg Differ expect-nox11-5.44.1.11_1 A sophisticated scripter based on tcl/tk tcl-8.4.19_3,1 Tool Command Language All seems to be working well, no RANCID hangs since the upgrade on August 10th. dp