From fergus.roche at loudeye.com Wed May 1 16:13:04 2002 From: fergus.roche at loudeye.com (Fergus Roche) Date: 01 May 2002 09:13:04 -0700 Subject: blogin Timeout In-Reply-To: <20020430221849.K20617@shrubbery.net> References: <1020195721.3982.50.camel@chub.int.loudeye.com> <20020430221234.J20617@shrubbery.net> <20020430221849.K20617@shrubbery.net> Message-ID: <1020269584.10552.48.camel@chub.int.loudeye.com> On Tue, 2002-04-30 at 15:18, john heasley wrote: > Tue, Apr 30, 2002 at 10:12:34PM +0000, john heasley: > > > > please try attached. set for rancid-2.2.1 maint rel RSN. > > actually, scratch that comment. you probably want this version; but, > i think the problem is really the case of "Login". the user prompt > its looking for is the regex "(Username|login|user name):". if you > add to .cloginrc: > > add userprompt bay-nr1 {Login:} > > i think this will work. > > i'm interested to know if the case has changed or if we've made a mistake > somewhere along the line and inadvertently changed the regex. > Arrgh..Thanks for the help.I was using add userprompt bay-nr1 {"Login:"} {Login:} works. I also had to add autoenable bay-nr1 1 Once logged in, the older software version on my Accelar does not support most of the commands used in blogin and brancid - I substituted send "config cli more false\r" for send "more off\r" in blogin, and in brancid, bcc is not available and "show config -all" becomes "show config verbose" Unfortunately my troubles do not end there and I am experiencing the premature session termination described by Andrew Partan on Tue, 12 Mar 2002. The .raw file produced by brancid -d shows the output being terminated within 10-20 lines of where it should end. If there is a solution for this I'd love to hear about it. Thanks again, Fergus Roche Loudeye Technlogies From andrew.reynolds at nspower.ca Wed May 1 18:30:23 2002 From: andrew.reynolds at nspower.ca (andrew.reynolds at nspower.ca) Date: Wed, 1 May 2002 15:30:23 -0300 Subject: blogin Timeout Message-ID: I'd also be interested in knowing if anyone has gotten this to work on a Nortel Passport (Accelar) 8600, with firmware 3.0.2. I can use blogin to run commands, but even after updating brancid to use the correct commands to turn off cli paging and to dump the config, I don't seem to be able to retrieve the config automatically. -- Andrew Reynolds, CCNA Senior Network Analyst Nova Scotia Power andrew.reynolds at nspower.ca (902)428-6508 I'm having problems logging into a Nortel (Accelar 1200) - blogin hangs and times out. I have had the same problem with 2.2b8 and 2.2 on 2 different machines. I am using expect-5.32.2-65, tcl/tk-8.3.3-65 on RH7.2 (2.4.9-31), but have also tried expect-5.24 on mandrake (2.2.14-15) I have tried various combinations of entries in .cloginrc, but always with the same result. Any help would be much appreciated. Thanks, Fergus Roche Loudeye Technologies From heas at shrubbery.net Thu May 2 01:32:46 2002 From: heas at shrubbery.net ('john heasley') Date: Thu, 2 May 2002 01:32:46 +0000 Subject: rancid & Procurve 2524 In-Reply-To: <1D23DFB85346D3118CA400A0C9E9872201985A4C@ALHMAILSRV>; from jmartine@alhsys.com on Wed, Apr 10, 2002 at 03:40:33PM +0200 References: <1D23DFB85346D3118CA400A0C9E9872201985A4C@ALHMAILSRV> Message-ID: <20020502013246.T21399@shrubbery.net> thanks. i'll add this bug to the todo list. hlogin should be able to login to the switch and/or enable when the switch does not require a password. in the mean time, you have a workaround. Wed, Apr 10, 2002 at 03:40:33PM +0200, Juan Jos? Mu?oz Martinez: > Hello, sorry for the delay. > > the teo commands are typed in CLI mode through telnet or console, but you > can set the password for operator and administrator through menu options > through (first typing 'menu' command). > > the configuration loks like a cisco device, if you are in menu mode you must > go to CLI mode, if you enter with telnet and the prompt is '>' you must type > enable and enter password if defined to get privileged prompt '#'. > Then to start configuration you must enter comand 'config terminal', now you > get the configuration prompt (config)# and can enter configuration commands. > > password operator > > Here is the sequence of commands and inputs: > > HP ProCurve Switch 2524> en > HP ProCurve Switch 2524# alhambra. > Invalid input: alhambra. > HP ProCurve Switch 2524# pass > Invalid input: pass > HP ProCurve Switch 2524# conf term > HP ProCurve Switch 2524(config)# password operator > New password: ******** > Please retype new password: ********* > Retyped password differs from initially typed password. > HP ProCurve Switch 2524(config)# password manager > New password: ********* > Please retype new password: ********* > HP ProCurve Switch 2524(config)# exit > HP ProCurve Switch 2524# write mem > HP ProCurve Switch 2524# exit > HP ProCurve Switch 2524> exit > Do you want to log out (Y/N)?Y > > > For polling of the switch with rancid add the followin lines to .cloginrc > and router.db: > > .cloginrc > ============= > ... > add password 192.168.1.78 login-pass enable-pass > ... > > router.db > ============= > ... > 192.168.1.78:hp:up > ... > > I expect to learn more about procurve switches command line, I provide you > more information as I get it. > > Best Regards. > > > -----Mensaje original----- > > De: john heasley [mailto:heas at shrubbery.net] > > Enviado el: viernes, 05 de abril de 2002 20:17 > > Para: Juan Jos? Mu?oz Martinez > > CC: rancid-discuss at shrubbery.net > > Asunto: Re: rancid & Procurve 2524 > > > > > > Fri, Apr 05, 2002 at 01:53:07PM +0200, Juan Jos? Mu?oz Martinez: > > > I've got it. > > > > > > I've configured login password with "password operator" > > command and enable > > > password with "password manager", and then with the line > > "add password > > > > are those part of the configuration? what is their > > significance (so, i > > may make a note in the FAQ/manpage)? > > > > From heas at shrubbery.net Thu May 2 21:54:01 2002 From: heas at shrubbery.net (john heasley) Date: Thu, 2 May 2002 14:54:01 -0700 Subject: blogin Timeout In-Reply-To: <1020269584.10552.48.camel@chub.int.loudeye.com>; from fergus.roche@loudeye.com on Wed, May 01, 2002 at 09:13:04AM -0700 References: <1020195721.3982.50.camel@chub.int.loudeye.com> <20020430221234.J20617@shrubbery.net> <20020430221849.K20617@shrubbery.net> <1020269584.10552.48.camel@chub.int.loudeye.com> Message-ID: <20020502145401.A15096@shrubbery.net> Wed, May 01, 2002 at 09:13:04AM -0700, Fergus Roche: > > On Tue, 2002-04-30 at 15:18, john heasley wrote: > > Tue, Apr 30, 2002 at 10:12:34PM +0000, john heasley: > > > > > > please try attached. set for rancid-2.2.1 maint rel RSN. > > > > actually, scratch that comment. you probably want this version; but, > > i think the problem is really the case of "Login". the user prompt > > its looking for is the regex "(Username|login|user name):". if you > > add to .cloginrc: > > > > add userprompt bay-nr1 {Login:} > > > > i think this will work. > > > > i'm interested to know if the case has changed or if we've made a mistake > > somewhere along the line and inadvertently changed the regex. > > > > Arrgh..Thanks for the help.I was using add userprompt bay-nr1 {"Login:"} > {Login:} works. I also had to add autoenable bay-nr1 1 > Once logged in, the older software version on my Accelar does not > support most of the commands used in blogin and brancid - I substituted > send "config cli more false\r" for send "more off\r" in blogin, and in > brancid, bcc is not available and "show config -all" becomes "show > config verbose" > Unfortunately my troubles do not end there and I am experiencing the > premature session termination described by Andrew Partan on > Tue, 12 Mar 2002. The .raw file produced by brancid -d shows the output > being terminated within 10-20 lines of where it should end. If there is > a solution for this I'd love to hear about it. afraid i can't find the discussion you mention. can you provide an example collection from the router? like setenv NOPIPE=YES brancid -d router there should be a router.raw file left behind. > Thanks again, > > Fergus Roche > Loudeye Technlogies > > From heas at shrubbery.net Thu May 2 21:59:13 2002 From: heas at shrubbery.net (john heasley) Date: Thu, 2 May 2002 14:59:13 -0700 Subject: blogin Timeout In-Reply-To: ; from andrew.reynolds@nspower.ca on Wed, May 01, 2002 at 03:30:23PM -0300 References: Message-ID: <20020502145913.B15096@shrubbery.net> Wed, May 01, 2002 at 03:30:23PM -0300, andrew.reynolds at nspower.ca: > > I'd also be interested in knowing if anyone has gotten this to work on a > Nortel Passport (Accelar) 8600, with firmware 3.0.2. I can use blogin to > run commands, but even after updating brancid to use the correct commands > to turn off cli paging and to dump the config, I don't seem to be able to > retrieve the config automatically. are these differences between the platforms or just the newer software? brancid currently runs 'bcc' => "RunCommand", 'show config' => "ShowConfig", 'show config -all' => "ShowConfig", what are the new equivalents? does the bay produce a consistent error for unknown commands like the cisco's "Invalid input detected" such that we could send both sets of commands? does blogin -c 'bcc;show config;show config -all' router work? where does it fail? > -- > Andrew Reynolds, CCNA > Senior Network Analyst > Nova Scotia Power > andrew.reynolds at nspower.ca > (902)428-6508 > > > > > > I'm having problems logging into a Nortel (Accelar 1200) - blogin hangs > and times out. I have had the same problem with 2.2b8 and 2.2 on 2 > different machines. I am using expect-5.32.2-65, tcl/tk-8.3.3-65 on > RH7.2 (2.4.9-31), but have also tried expect-5.24 on mandrake > (2.2.14-15) > I have tried various combinations of entries in .cloginrc, but always > with the same result. Any help would be much appreciated. > > > > > > Thanks, > Fergus Roche > Loudeye Technologies > > From fergus.roche at loudeye.com Thu May 2 23:02:11 2002 From: fergus.roche at loudeye.com (Fergus Roche) Date: 02 May 2002 16:02:11 -0700 Subject: blogin Timeout In-Reply-To: <20020502145401.A15096@shrubbery.net> References: <1020195721.3982.50.camel@chub.int.loudeye.com> <20020430221234.J20617@shrubbery.net> <20020430221849.K20617@shrubbery.net> <1020269584.10552.48.camel@chub.int.loudeye.com> <20020502145401.A15096@shrubbery.net> Message-ID: <1020380531.2660.66.camel@chub.int.loudeye.com> On Thu, 2002-05-02 at 14:54, john heasley wrote: > > afraid i can't find the discussion you mention. can you provide an > example collection from the router? like > setenv NOPIPE=YES > brancid -d router > there should be a router.raw file left behind. > Using these commands in brancid: %commands=( 'show config' => "ShowConfig", 'show config verbose' => "ShowConfig", 'exit' => "RunCommand" $ brancid -d bay-nr1 executing blogin -t 90 -c"show config;show config verbose;exit" bay-nr1 bay-nr1: missed cmd(s): show config,show config verbose,exit bay-nr1: missed cmd(s): show config,show config verbose,exit bay-nr1: End of run not found bay-nr1: End of run not found ! $ The .raw file contains the full output of show config and show config verbose, but ends approximately 22 lines prematurely: $ tail -20 bay-nr1.raw default-supply disable listen enable poison disable supply enable trigger disable back traffic-filter back back stg 1 faststart disable pathcost 10 priority 128 stp enable back unknown-mac-discard activation disable autolearn disable Connection closed by foreign host. $ $ cat bay-nr1.new !RANCID-CONTENT-TYPE: bay ! $ Let me know if you need the whole .raw file, just the last part seemed relevant. The discussion I was referring to goes as follows: Date: Tue, 12 Mar 2002 15:57:13 -0500 From: Andrew Partan To: Robert Klingsten Cc: rancid-discuss at shrubbery.net Subject: Re: Newbie: Problems with Catalyst On Tue, Mar 12, 2002 at 03:32:27PM -0500, Robert Klingsten wrote: > ummu-cis6513-mr> (enable)Connection to ummu-cis6513-mr.ummu.umich.edu >closed > by remote host. > Connection to ummu-cis6513-mr.ummu.umich.edu closed. Looks like it could be another case of a router being too eager to drop the tcp session and not echoing back the 'quit' rancid sends it first. Rancid sends a 'quit' and then the router should echo that back & then close the tcp session (it should wait for the output to drain before doing the final tcp close). Some routers have bugs and don't do this. I know we had to do a fair amount of expect goo to work around this for the extreme (in xrancid). -asp Thanks, Fergus Roche From andrew.reynolds at nspower.ca Fri May 3 00:00:31 2002 From: andrew.reynolds at nspower.ca (andrew.reynolds at nspower.ca) Date: Thu, 2 May 2002 21:00:31 -0300 Subject: blogin Timeout Message-ID: >Wed, May 01, 2002 at 03:30:23PM -0300, andrew.reynolds at nspower.ca: >> >> I'd also be interested in knowing if anyone has gotten this to work on a >> Nortel Passport (Accelar) 8600, with firmware 3.0.2. I can use blogin to >> run commands, but even after updating brancid to use the correct commands >> to turn off cli paging and to dump the config, I don't seem to be able to >> retrieve the config automatically. > >are these differences between the platforms or just the newer software? >brancid currently runs > > 'bcc' => "RunCommand", > 'show config' => "ShowConfig", > 'show config -all' => "ShowConfig", > >what are the new equivalents? does the bay produce a consistent error >for unknown commands like the cisco's "Invalid input detected" such >that we could send both sets of commands? > >does blogin -c 'bcc;show config;show config -all' router work? where >does it fail? I had to modify brancid to 'show config' => "ShowConfig", 'show config verbose' => "ShowConfig", In order to get it to sort of run. If I set NOPIP=YES, and run brancid -d router, the .raw output file is complete, but the .new file only has the following text: !RANCID-CONTENT-TYPE: bay ! -- Andrew Reynolds, CCNA Senior Network Analyst Nova Scotia Power andrew.reynolds at nspower.ca (902)428-6508 From cpoetzel at anl.gov Fri May 3 20:01:21 2002 From: cpoetzel at anl.gov (Poetzel, Christopher J.) Date: Fri, 3 May 2002 15:01:21 -0500 Subject: Changing a router name Message-ID: Hello all, I have recently taken the rancid system at my employment and have a question for the group. We are going to be changing the names of a few of our routers that have been monitored with rancid for about 2 months. What I would like to do is to change the name but retain the previous 2 month history for the routers. Has anyone attempted this or is they some easy way to do this that I am missing? The only thought I have had thus far is to rename the old routers base config and the routers cvs ,v file, then add the new router to .cloginrc and rerun rancid. Thanks for any help. Chris Poetzel Argonne National Labratory Network Engineer CCNA 630-252-7431 cpoetzel at anl.gov From heas at shrubbery.net Fri May 3 20:22:00 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 3 May 2002 13:22:00 -0700 Subject: Changing a router name In-Reply-To: ; from cpoetzel@anl.gov on Fri, May 03, 2002 at 03:01:21PM -0500 References: Message-ID: <20020503132159.V10636@shrubbery.net> Fri, May 03, 2002 at 03:01:21PM -0500, Poetzel, Christopher J.: > Hello all, > > I have recently taken the rancid system at my employment and have a question > for the group. > We are going to be changing the names of a few of our routers that have been > monitored with rancid for about 2 months. > What I would like to do is to change the name but retain the previous 2 > month history for the routers. > Has anyone attempted this or is they some easy way to do this that I am > missing? > > The only thought I have had thus far is to rename the old routers base > config and the routers cvs ,v file, then add the new > router to .cloginrc and rerun rancid. this is the _only_ way i know of to retain the history. afaik, cvs provides no way to rename a file or remove/rename a directory. something like % echo "newname:type:up" >> /router.db % cp -p /CVS//configs/oldname,v \ /CVS//configs/newname,v rancid should do a cvs update before running, which will get the newname file fromt he respository. when the name change is complete, remove the old name from /router.db and let rancid clean-up. > Thanks for any help. > > Chris Poetzel > Argonne National Labratory > Network Engineer > CCNA > > 630-252-7431 > cpoetzel at anl.gov > From heas at shrubbery.net Fri May 3 23:47:24 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 3 May 2002 16:47:24 -0700 Subject: blogin Timeout In-Reply-To: <1020380531.2660.66.camel@chub.int.loudeye.com>; from fergus.roche@loudeye.com on Thu, May 02, 2002 at 04:02:11PM -0700 References: <1020195721.3982.50.camel@chub.int.loudeye.com> <20020430221234.J20617@shrubbery.net> <20020430221849.K20617@shrubbery.net> <1020269584.10552.48.camel@chub.int.loudeye.com> <20020502145401.A15096@shrubbery.net> <1020380531.2660.66.camel@chub.int.loudeye.com> Message-ID: <20020503164724.A5674@shrubbery.net> Thu, May 02, 2002 at 04:02:11PM -0700, Fergus Roche: > On Thu, 2002-05-02 at 14:54, john heasley wrote: > > > > > afraid i can't find the discussion you mention. can you provide an > > example collection from the router? like > > setenv NOPIPE=YES > > brancid -d router > > there should be a router.raw file left behind. > > > > Using these commands in brancid: > > %commands=( > 'show config' => "ShowConfig", > 'show config verbose' => "ShowConfig", > 'exit' => "RunCommand" > > > $ brancid -d bay-nr1 > executing blogin -t 90 -c"show config;show config verbose;exit" bay-nr1 > bay-nr1: missed cmd(s): show config,show config verbose,exit > bay-nr1: missed cmd(s): show config,show config verbose,exit > bay-nr1: End of run not found > bay-nr1: End of run not found > ! > $ > > > The .raw file contains the full output of show config and show config > verbose, but ends approximately 22 lines prematurely: > > $ tail -20 bay-nr1.raw > default-supply disable > listen enable > poison disable > supply enable > trigger disable > back > traffic-filter > back > back > stg 1 > faststart disable > pathcost 10 > priority 128 > stp enable > back > unknown-mac-discard > activation disable > autolearn disable hmm. how many lines were cut? blogin is just writting to stdout which is redirected to this file. what i find odd is lack of an error, timeout specifically. could you telnet to the box, enter 'more off' (disable pager), then 'show config' and 'show config verbose', and finally exit. if it doesnt truncate; please send the portion from 'autolearn' on to the unix prompt. > Connection closed by foreign host. > $ > > > $ cat bay-nr1.new > !RANCID-CONTENT-TYPE: bay > ! > $ > > Let me know if you need the whole .raw file, just the last part seemed > relevant. > The discussion I was referring to goes as follows: > > > Date: Tue, 12 Mar 2002 15:57:13 -0500 > From: Andrew Partan > To: Robert Klingsten > Cc: rancid-discuss at shrubbery.net > Subject: Re: Newbie: Problems with Catalyst > On Tue, Mar 12, 2002 at 03:32:27PM -0500, Robert Klingsten wrote: > > ummu-cis6513-mr> (enable)Connection to ummu-cis6513-mr.ummu.umich.edu > >closed > > by remote host. > > Connection to ummu-cis6513-mr.ummu.umich.edu closed. > > Looks like it could be another case of a router being too eager to > drop the tcp session and not echoing back the 'quit' rancid sends > it first. > > Rancid sends a 'quit' and then the router should echo that back & > then close the tcp session (it should wait for the output to drain > before doing the final tcp close). Some routers have bugs and > don't do this. > > I know we had to do a fair amount of expect goo to work around this > for the extreme (in xrancid). > -asp > > Thanks, > > Fergus Roche > > > From heas at shrubbery.net Fri May 3 23:55:42 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 3 May 2002 16:55:42 -0700 Subject: blogin Timeout In-Reply-To: ; from andrew.reynolds@nspower.ca on Thu, May 02, 2002 at 09:00:31PM -0300 References: Message-ID: <20020503165542.D5674@shrubbery.net> Thu, May 02, 2002 at 09:00:31PM -0300, andrew.reynolds at nspower.ca: > > > > > >Wed, May 01, 2002 at 03:30:23PM -0300, andrew.reynolds at nspower.ca: > >> > >> I'd also be interested in knowing if anyone has gotten this to work on a > >> Nortel Passport (Accelar) 8600, with firmware 3.0.2. I can use blogin to > >> run commands, but even after updating brancid to use the correct > commands > >> to turn off cli paging and to dump the config, I don't seem to be able > to > >> retrieve the config automatically. > > > >are these differences between the platforms or just the newer software? > >brancid currently runs > > > > 'bcc' => "RunCommand", > > 'show config' => "ShowConfig", > > 'show config -all' => "ShowConfig", > > > >what are the new equivalents? does the bay produce a consistent error > >for unknown commands like the cisco's "Invalid input detected" such > >that we could send both sets of commands? > > > >does blogin -c 'bcc;show config;show config -all' router work? where > >does it fail? > > I had to modify brancid to > > 'show config' => "ShowConfig", > 'show config verbose' => "ShowConfig", > > In order to get it to sort of run. If I set NOPIP=YES, and run brancid -d > router, the .raw output file is complete, but the .new file only has the > following text: > > !RANCID-CONTENT-TYPE: bay > ! i'd guess that this is a login problem or that blogin is failing to run the commands properly. try blogin -c 'bcc;show config;show config verbose' router it should run all three commands (whatever bcc is/does). From heas at shrubbery.net Sat May 4 00:13:44 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 3 May 2002 17:13:44 -0700 Subject: rancid 2.2.1 Message-ID: <20020503171344.B10636@shrubbery.net> i've made rancid-2.2.1 available for ftp from ftp.shrubbery.net:/pub/rancid *** if you make use of the looking glass (lg) scripts that come with rancid, PLEASE upgrade. with some versions of solaris' bourne shell, someone with access to the looking glass could run arbitrary commands. i know that this is not a problem under netbsd, but do not know about any other operating systems whose bourne shell might be from source similar to solaris. 2.2.1 rancid: npe400 cpu eeprom info o/p format changed in 12.0.21S1 - spotted by tom campbell fix problem in *login where if there was a login failure we would try to disconnect gracefully (albeit incorrectly). writing to the half-closed socket would not return an error (at least on some platform/expect combinations or even consistently) and expect would hang. add device name to diff mail subject when -r is specified add -m option to do-diffs and control_rancid to allow specific mail recipient. intended for use with -r to trigger diffs off specific events. router.db(5): note that PIX is a 'cisco' - thank kris gulka *login: match openssh prompt for host key to ip key mismatch rancid: add disk/slot2 rancid: 12.2 show c7200 o/p for midplane changed lg: use table inet.0 terse for sh ip route on juniper instead of forwarding-table destination rancid: 12.0S(21) added "FRU" field in show diagbus output. Also look for a couple more things in some show diag output and sort the output a bit better. Also look for 'controler' (cisco can't always spell - thanks to Terry Kennedy for spotting the misspelling). lg: filter ["`'] from args rancid: fix username secret filtering alogin: misplaced brace caused improper return from proc login relax the check ping and traceroute check of hostname arguments such that non-fqdn hosts are allowed. ie: just check that arg chars are valid dns chars and leave the resolve errors to the router. Add initial support for Force10. From fergus.roche at loudeye.com Sat May 4 00:15:03 2002 From: fergus.roche at loudeye.com (Fergus Roche) Date: Fri, 3 May 2002 17:15:03 -0700 Subject: blogin Timeout Message-ID: > > On Thu, 2002-05-02 at 14:54, john heasley wrote: > > > > > > > > afraid i can't find the discussion you mention. can you provide an > > > example collection from the router? like > > > setenv NOPIPE=YES > > > brancid -d router > > > there should be a router.raw file left behind. > > > > > > > Using these commands in brancid: > > > > %commands=( > > 'show config' => "ShowConfig", > > 'show config verbose' => "ShowConfig", > > 'exit' => "RunCommand" > > > > > > $ brancid -d bay-nr1 > > executing blogin -t 90 -c"show config;show config verbose;exit" bay-nr1 > > bay-nr1: missed cmd(s): show config,show config verbose,exit > > bay-nr1: missed cmd(s): show config,show config verbose,exit > > bay-nr1: End of run not found > > bay-nr1: End of run not found > > ! > > $ > > > > > > The .raw file contains the full output of show config and show config > > verbose, but ends approximately 22 lines prematurely: > > > > $ tail -20 bay-nr1.raw > > default-supply disable > > listen enable > > poison disable > > supply enable > > trigger disable > > back > > traffic-filter > > back > > back > > stg 1 > > faststart disable > > pathcost 10 > > priority 128 > > stp enable > > back > > unknown-mac-discard > > activation disable > > autolearn disable > >hmm. how many lines were cut? blogin is just writting to stdout which >is redirected to this file. what i find odd is lack of an error, >timeout >specifically. > >could you telnet to the box, enter 'more off' (disable pager), then >'show config' and 'show config verbose', and finally exit. if it >doesnt truncate; please send the portion from 'autolearn' on to the >unix prompt. > It doesn't truncate when I log in and run the commands manually. Heres the end part that is missed when using brancid. autolearn disable autolearn-mode one-shot default-autolearn-monitor monitor default-autolearn-priority high lock-autolearn-mac disable violation-downport disable violation-logging enable violation-sendtrap disable back back ethernet 7/14 high-priority false linktrap enable lock false state enable auto-negotiate enable perform-tagging disable tagged-frames-discard disable ip proxy disable arp-response enable l3-igmp last-memb-query-int 1 bay-nr1# exit Connection closed by foreign host. $ From heas at shrubbery.net Sat May 4 00:36:04 2002 From: heas at shrubbery.net ('john heasley ') Date: Fri, 3 May 2002 17:36:04 -0700 Subject: blogin Timeout In-Reply-To: ; from fergus.roche@loudeye.com on Fri, May 03, 2002 at 05:15:03PM -0700 References: Message-ID: <20020503173604.C12329@shrubbery.net> Fri, May 03, 2002 at 05:15:03PM -0700, Fergus Roche: > > > On Thu, 2002-05-02 at 14:54, john heasley wrote: > >hmm. how many lines were cut? blogin is just writting to stdout which > >is redirected to this file. what i find odd is lack of an error, > >timeout > >specifically. > > > >could you telnet to the box, enter 'more off' (disable pager), then > >'show config' and 'show config verbose', and finally exit. if it > >doesnt truncate; please send the portion from 'autolearn' on to the > >unix prompt. > > > > It doesn't truncate when I log in and run the commands manually. Heres the > end part that is missed when using brancid. > > autolearn disable > autolearn-mode one-shot > default-autolearn-monitor monitor > default-autolearn-priority high > lock-autolearn-mac disable > violation-downport disable > violation-logging enable > violation-sendtrap disable > back > back > ethernet 7/14 > high-priority false > linktrap enable > lock false > state enable > auto-negotiate enable > perform-tagging disable > tagged-frames-discard disable > ip > proxy disable > arp-response enable > l3-igmp > last-memb-query-int 1 > > bay-nr1# exit > Connection closed by foreign host. > $ something must be buggered in blogin's matching. please grab a local copy of blogin, edit it; in 'proc run_commands' just before the line send "more off\r" add 'exp_internal 1; log_user 1;' then run blogin blogin -c 'bcc;show config;show config verbose' >& log and send the log file to me. if you can give me telnet access to the/a box, that would be much easier. From cpoetzel at anl.gov Thu May 9 00:52:03 2002 From: cpoetzel at anl.gov (Poetzel, Christopher J.) Date: Wed, 8 May 2002 19:52:03 -0500 Subject: Status Locally Modified Message-ID: I am having an issue where every time rancid runs(do-diffs) I get messages saying that my router.db file has changed, and it hasn't. I ran the cvs status command on it and got the following. [rancid at athena Switches]$ cvs status router.db =================================================================== File: router.db Status: Locally Modified I recently changed the names of some of my routers when this happened. If anyone has any thoughts of how to get the status back to UP-to-Date I would really appreciate it. thanks, chris poetzel From heas at shrubbery.net Thu May 9 01:16:56 2002 From: heas at shrubbery.net (john heasley) Date: Thu, 9 May 2002 01:16:56 +0000 Subject: Status Locally Modified In-Reply-To: ; from cpoetzel@anl.gov on Wed, May 08, 2002 at 07:52:03PM -0500 References: Message-ID: <20020509011656.A19270@shrubbery.net> Wed, May 08, 2002 at 07:52:03PM -0500, Poetzel, Christopher J.: > I am having an issue where every time rancid runs(do-diffs) I get messages > saying that my router.db file > has changed, and it hasn't. I ran the cvs status command on it and got the > following. > > > [rancid at athena Switches]$ cvs status router.db > =================================================================== > File: router.db Status: Locally Modified > > > I recently changed the names of some of my routers when this happened. If > anyone has any thoughts of how to get the status back > to UP-to-Date I would really appreciate it. > > > thanks, > > chris poetzel if this file gets modified (add/delete/rename a device), rancid should commit the file after it show you the diff of the file. if it isnt committed when rancid runs, then its having some sort of problem with the commit which should appear in the log file. if nothing appears there, please see the CVS section of the FAQ. From AElliott at xo.com Thu May 9 14:19:45 2002 From: AElliott at xo.com (Elliott, Andrew) Date: Thu, 9 May 2002 09:19:45 -0500 Subject: Status Locally Modified Message-ID: <1F78ED058E0BD611B71400508BCF9F890197B69A@txplanexch4.internal.nextlink.net> [rancid at athena Switches]$ cvs commit router.db -andrew -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Wednesday, May 08, 2002 9:17 PM To: Poetzel, Christopher J. Cc: rancid-discuss at shrubbery.net Subject: Re: Status Locally Modified Wed, May 08, 2002 at 07:52:03PM -0500, Poetzel, Christopher J.: > I am having an issue where every time rancid runs(do-diffs) I get messages > saying that my router.db file > has changed, and it hasn't. I ran the cvs status command on it and got the > following. > > > [rancid at athena Switches]$ cvs status router.db > =================================================================== > File: router.db Status: Locally Modified > > > I recently changed the names of some of my routers when this happened. If > anyone has any thoughts of how to get the status back > to UP-to-Date I would really appreciate it. > > > thanks, > > chris poetzel if this file gets modified (add/delete/rename a device), rancid should commit the file after it show you the diff of the file. if it isnt committed when rancid runs, then its having some sort of problem with the commit which should appear in the log file. if nothing appears there, please see the CVS section of the FAQ. From heas at shrubbery.net Thu May 9 19:00:33 2002 From: heas at shrubbery.net ('john heasley') Date: Thu, 9 May 2002 12:00:33 -0700 Subject: Status Locally Modified In-Reply-To: <1F78ED058E0BD611B71400508BCF9F890197B69A@txplanexch4.internal.nextlink.net>; from AElliott@xo.com on Thu, May 09, 2002 at 09:19:45AM -0500 References: <1F78ED058E0BD611B71400508BCF9F890197B69A@txplanexch4.internal.nextlink.net> Message-ID: <20020509120032.O23317@shrubbery.net> Thu, May 09, 2002 at 09:19:45AM -0500, Elliott, Andrew: > [rancid at athena Switches]$ cvs commit router.db > > > -andrew i guess i'm interested in how it got to this state. only way it should be possible is if the file were modified between runs. that is, given folks' confusion with cvs, i'd prefer that rancid take of it and it should have. so, if i've buggered it, i would like to know what happened so i can fix it. > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Wednesday, May 08, 2002 9:17 PM > To: Poetzel, Christopher J. > Cc: rancid-discuss at shrubbery.net > Subject: Re: Status Locally Modified > > > Wed, May 08, 2002 at 07:52:03PM -0500, Poetzel, Christopher J.: > > I am having an issue where every time rancid runs(do-diffs) I get messages > > saying that my router.db file > > has changed, and it hasn't. I ran the cvs status command on it and got > the > > following. > > > > > > [rancid at athena Switches]$ cvs status router.db > > =================================================================== > > File: router.db Status: Locally Modified > > > > > > I recently changed the names of some of my routers when this happened. If > > anyone has any thoughts of how to get the status back > > to UP-to-Date I would really appreciate it. > > > > > > thanks, > > > > chris poetzel > > if this file gets modified (add/delete/rename a device), rancid should > commit the file after it show you the diff of the file. if it isnt > committed when rancid runs, then its having some sort of problem with > the commit which should appear in the log file. > > if nothing appears there, please see the CVS section of the FAQ. From AElliott at xo.com Thu May 9 19:07:16 2002 From: AElliott at xo.com (Elliott, Andrew) Date: Thu, 9 May 2002 14:07:16 -0500 Subject: Status Locally Modified Message-ID: <1F78ED058E0BD611B71400508BCF9F890197B6A3@txplanexch4.internal.nextlink.net> >i guess i'm interested in how it got to this state. only way >it should be possible is if the file were modified between runs. > >that is, given folks' confusion with cvs, i'd prefer that rancid >take of it and it should have. so, if i've buggered it, i would >like to know what happened so i can fix it. I have had the same problem and the same question. Numerous times I have had rancid report various problems, and the files are always showing a "Locally Modified" status. I have ranted to the others (only a small handful of admins) about how to use cvs, and everyone claims that they have always done it the right way. It remains a mystery to this day... (I still think it is human error :-P ) -andrew From AZhang at reliant.com Thu May 9 19:07:23 2002 From: AZhang at reliant.com (Zhang, Anchi) Date: Thu, 9 May 2002 14:07:23 -0500 Subject: Status Locally Modified Message-ID: I run do-diffs once a day and I modify router.db whenever a new device is added to the network. I have never had the need to run cvs commit router.db. Anchi -----Original Message----- From: 'john heasley' [mailto:heas at shrubbery.net] Sent: Thursday, May 09, 2002 2:01 PM To: Elliott, Andrew Cc: Poetzel, Christopher J.; rancid-discuss at shrubbery.net Subject: Re: Status Locally Modified Thu, May 09, 2002 at 09:19:45AM -0500, Elliott, Andrew: > [rancid at athena Switches]$ cvs commit router.db > > > -andrew i guess i'm interested in how it got to this state. only way it should be possible is if the file were modified between runs. that is, given folks' confusion with cvs, i'd prefer that rancid take of it and it should have. so, if i've buggered it, i would like to know what happened so i can fix it. > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Wednesday, May 08, 2002 9:17 PM > To: Poetzel, Christopher J. > Cc: rancid-discuss at shrubbery.net > Subject: Re: Status Locally Modified > > > Wed, May 08, 2002 at 07:52:03PM -0500, Poetzel, Christopher J.: > > I am having an issue where every time rancid runs(do-diffs) I get messages > > saying that my router.db file > > has changed, and it hasn't. I ran the cvs status command on it and got > the > > following. > > > > > > [rancid at athena Switches]$ cvs status router.db > > =================================================================== > > File: router.db Status: Locally Modified > > > > > > I recently changed the names of some of my routers when this happened. If > > anyone has any thoughts of how to get the status back > > to UP-to-Date I would really appreciate it. > > > > > > thanks, > > > > chris poetzel > > if this file gets modified (add/delete/rename a device), rancid should > commit the file after it show you the diff of the file. if it isnt > committed when rancid runs, then its having some sort of problem with > the commit which should appear in the log file. > > if nothing appears there, please see the CVS section of the FAQ. From heas at shrubbery.net Thu May 9 19:22:42 2002 From: heas at shrubbery.net ('john heasley') Date: Thu, 9 May 2002 12:22:42 -0700 Subject: Status Locally Modified In-Reply-To: <1F78ED058E0BD611B71400508BCF9F890197B6A3@txplanexch4.internal.nextlink.net>; from AElliott@xo.com on Thu, May 09, 2002 at 02:07:16PM -0500 References: <1F78ED058E0BD611B71400508BCF9F890197B6A3@txplanexch4.internal.nextlink.net> Message-ID: <20020509122242.Q23317@shrubbery.net> Thu, May 09, 2002 at 02:07:16PM -0500, Elliott, Andrew: > > >i guess i'm interested in how it got to this state. only way > >it should be possible is if the file were modified between runs. > > > >that is, given folks' confusion with cvs, i'd prefer that rancid > >take of it and it should have. so, if i've buggered it, i would > >like to know what happened so i can fix it. > > I have had the same problem and the same question. > > Numerous times I have had rancid report various problems, and the files are > always showing a "Locally Modified" status. I have ranted to the others > (only a small handful of admins) about how to use cvs, and everyone claims > that they have always done it the right way. It remains a mystery to this > day... (I still think it is human error :-P ) > > -andrew ok, human error it may be. in the future if folks run into this and can recall the series of events that led up to it, i'd like to hear about it. thanks. From dave.packham at utah.edu Fri May 10 17:16:07 2002 From: dave.packham at utah.edu (Dave Packham) Date: Fri, 10 May 2002 11:16:07 -0600 Subject: Router/Switch name globbing? Message-ID: Can I glob the -r "devicename" Ex: -r ds1* Dave Packham From dave.packham at utah.edu Fri May 10 17:26:13 2002 From: dave.packham at utah.edu (Dave Packham) Date: Fri, 10 May 2002 11:26:13 -0600 Subject: Easy way? Message-ID: Is there an easy way to eliminate the "show flash" "show dir" etc commands so I only get the IOS conf changes? And not the file date updates time or other less useful info? Dave Packham From heas at shrubbery.net Fri May 10 20:11:49 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 10 May 2002 13:11:49 -0700 Subject: Router/Switch name globbing? In-Reply-To: ; from dave.packham@utah.edu on Fri, May 10, 2002 at 11:16:07AM -0600 References: Message-ID: <20020510131148.B20208@shrubbery.net> Fri, May 10, 2002 at 11:16:07AM -0600, Dave Packham: > Can I glob the -r "devicename" > > Ex: -r ds1* yes and no. the shell will expand it, so yes. but, the -r option only takes 1 argument. so, control_rancid will return an error (probably unknown group) if the glob expands to more than one device. also, it does not handle paths, eg: group/configs/device, just a device name. From heas at shrubbery.net Fri May 10 20:16:40 2002 From: heas at shrubbery.net (john heasley) Date: Fri, 10 May 2002 13:16:40 -0700 Subject: Easy way? In-Reply-To: ; from dave.packham@utah.edu on Fri, May 10, 2002 at 11:26:13AM -0600 References: Message-ID: <20020510131640.C20208@shrubbery.net> Fri, May 10, 2002 at 11:26:13AM -0600, Dave Packham: > Is there an easy way to eliminate the "show flash" "show dir" etc > commands so I only get the IOS conf changes? And not the file date > updates time or other less useful info? > > > Dave Packham no, but this (mods of this type in general) is something i am looking into. if you wish to do this, comment the pair of lines for each of those commands in bin/rancid. each appear twice, eg: 1114 'dir /all slot0:' => "DirSlotN", 1145 "dir /all slot0:",