From kilton9 at yahoo.com Wed Sep 3 19:28:41 2003 From: kilton9 at yahoo.com (James Kilton) Date: Wed, 3 Sep 2003 12:28:41 -0700 (PDT) Subject: Prompt issues on Bay routers. Message-ID: <20030903192841.49221.qmail@web11703.mail.yahoo.com> Hi, I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - I'm unable to run commands in BCC on Bay routers and I think it's because of prompt issues. When you first log in to a Bay router, you're in TI instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize this by doing 'set prompt "TN"' in blogin. Rancid then executes the 'bcc' command to get into BCC. BCC uses a totally different prompt, however (bcc>), and I'm wondering how to get Rancid to "switch" to that prompt so that commands can be run in BCC. I've tried stuff like 'set prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. If anyone has any ideas I'd appreciate hearing them. Thanks, James __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From ellen at lsil.com Thu Sep 4 18:36:56 2003 From: ellen at lsil.com (Ellen M. Woods) Date: Thu, 4 Sep 2003 11:36:56 -0700 Subject: HP Procurve 4000 and 2400 Message-ID: <20030904113656.I22895@elysium.lsil.com> Hi, Is there any way to get a command line interface when logging into the HP Procurve 4000 and 2400? I can only get to the menu interface and then to the CLI from there, so rancid is failing. I looked through the manuals and didn't see where that could be done, but was hoping it could. Thanks, Ellen -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _____ Ellen M. Woods Network Administrator LSI|LOGIC| ellen at lsil.com LSI Logic - GES LAN Support | | |_____| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From mpd at iu.edu Thu Sep 4 18:41:01 2003 From: mpd at iu.edu (Matthew Davy) Date: Thu, 4 Sep 2003 13:41:01 -0500 Subject: HP Procurve 4000 and 2400 In-Reply-To: <20030904113656.I22895@elysium.lsil.com>; from ellen@lsil.com on Thu, Sep 04, 2003 at 11:36:56AM -0700 References: <20030904113656.I22895@elysium.lsil.com> Message-ID: <20030904134100.C10967@indiana.edu> I don't think you can get to the command line directly. You have to first go to the menu interface and select "Diagnostics" then "Command Prompt". - Matt -- Matthew Davy Chief Network Engineer, Indiana University University Information Technology Services / Abilene Network Operations Center 2711 East 10th Street, Bloomington IN, 47403 mpd at iu.edu / 812.855.7728 PGP key fingerprint: A84D DFB6 9DD5 BEB4 1EF7 D713 956F F85C 6422 CBEB On Thu, Sep 04, 2003 at 11:36:56AM -0700, Ellen M. Woods wrote: > Hi, > > Is there any way to get a command line interface when logging > into the HP Procurve 4000 and 2400? I can only get to the menu > interface and then to the CLI from there, so rancid is failing. > > I looked through the manuals and didn't see where that could > be done, but was hoping it could. > > Thanks, > > Ellen > > > -- > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > _____ > Ellen M. Woods Network Administrator LSI|LOGIC| > ellen at lsil.com LSI Logic - GES LAN Support | | > |_____| > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > From heas at shrubbery.net Thu Sep 4 19:07:28 2003 From: heas at shrubbery.net (john heasley) Date: Thu, 4 Sep 2003 12:07:28 -0700 Subject: HP Procurve 4000 and 2400 In-Reply-To: <20030904134100.C10967@indiana.edu> References: <20030904113656.I22895@elysium.lsil.com> <20030904134100.C10967@indiana.edu> Message-ID: <20030904190728.GC9683@shrubbery.net> All I have is a 2524. perhaps these have a 'no menu' or 'default cmd-line' like-command in the vty or global config sections. OR, maybe there is a radius or tacacs AV that will set the default for a given login. Thu, Sep 04, 2003 at 01:41:01PM -0500, Matthew Davy: > I don't think you can get to the command line directly. You have to first > go to the menu interface and select "Diagnostics" then "Command Prompt". > > - Matt > > -- > Matthew Davy > Chief Network Engineer, Indiana University > University Information Technology Services / Abilene Network Operations Center > 2711 East 10th Street, Bloomington IN, 47403 > mpd at iu.edu / 812.855.7728 > PGP key fingerprint: A84D DFB6 9DD5 BEB4 1EF7 D713 956F F85C 6422 CBEB > > On Thu, Sep 04, 2003 at 11:36:56AM -0700, Ellen M. Woods wrote: > > Hi, > > > > Is there any way to get a command line interface when logging > > into the HP Procurve 4000 and 2400? I can only get to the menu > > interface and then to the CLI from there, so rancid is failing. > > > > I looked through the manuals and didn't see where that could > > be done, but was hoping it could. > > > > Thanks, > > > > Ellen > > > > > > -- > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _____ > > Ellen M. Woods Network Administrator LSI|LOGIC| > > ellen at lsil.com LSI Logic - GES LAN Support | | > > |_____| > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > From andre at is.co.za Thu Sep 4 22:05:14 2003 From: andre at is.co.za (Andre van der Merwe) Date: Fri, 5 Sep 2003 00:05:14 +0200 Subject: AS5300 Message-ID: <20030905000513.D6565@is.co.za> Hi I noticed that the RANCID parser does not pick up the AS5300 "slots". Are there any plans to include it in the "next" RANCID version or should we look to adding it ? -Andr? From heas at shrubbery.net Thu Sep 4 22:08:47 2003 From: heas at shrubbery.net (john heasley) Date: Thu, 4 Sep 2003 15:08:47 -0700 Subject: AS5300 In-Reply-To: <20030905000513.D6565@is.co.za> References: <20030905000513.D6565@is.co.za> Message-ID: <20030904220847.GH9683@shrubbery.net> Fri, Sep 05, 2003 at 12:05:14AM +0200, Andre van der Merwe: > Hi > > I noticed that the RANCID parser does not pick up the AS5300 > "slots". Are there any plans to include it in the "next" RANCID > version or should we look to adding it ? > > -Andr? I have none of these; it would be a welcome contribution. From eric at atlantech.net Fri Sep 5 13:37:34 2003 From: eric at atlantech.net (Eric Van Tol) Date: Fri, 5 Sep 2003 09:37:34 -0400 Subject: Livingston Portmaster Message-ID: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@staq7.hq.atlantech.net> Hello all, Does anyone happen to have a rancid script for getting information/configs from Livingston Portmasters? I'm surprised that there is not one already in the default distribution. thanks, eric From Mark.Duling at biola.edu Sat Sep 6 02:05:20 2003 From: Mark.Duling at biola.edu (Mark Duling) Date: Fri, 05 Sep 2003 19:05:20 -0700 Subject: login fails on Cisco Pix 512e Message-ID: Hello, I was using RANCID with our older pix but since swapping in a new pix firewall the login fails. I did clogin and it appears that carriage returns are being sent to the pix when I don't touch the keyboard. Three returns and then it fails of course. Has anyone experienced this? clogin seems to have a problem with the new pix. It is using version 6.3(1) of the pix software. Mark From chrisjohns_cisco at hotmail.com Tue Sep 9 07:05:10 2003 From: chrisjohns_cisco at hotmail.com (Chris Johns) Date: Tue, 09 Sep 2003 07:05:10 +0000 Subject: rancid clogin freezes after login Message-ID: hello folks, Sorry for the "i'm new to rancid question ... but"; I've just installed rancid and it works fine for some routers, ie. clogin works fine, grabs the routers config and mails me any diffs, the problem is this is only working for some routers. Currently for the routers that rancid isn't working on, it stops after rancid logs into the router, below is a clogin to the router, it appears to login to the router but then freezes, I can't type anything, CR doesn't work, I can either break out with a ctrl-c or wait for a timeout error; vertigo:~$ clogin -c 'show version' 192.168.152.1 192.168.152.1 spawn telnet 192.168.152.1 Trying 192.168.152.1... Connected to 192.168.152.1. Escape character is '^]'. ************************************************************** * Unauthorized access to this device or the attached * * networks is prohibited without express written permission. * * Violators will be prosecuted to the fullest extent of both * * civil and criminal law. * * Use of the system may be logged or monitored without * * further notice. * ************************************************************** User Access Verification Username: Kerberos: No default realm defined for Kerberos! resman Password: DC01-hga# Error: TIMEOUT reached vertigo:~$ My .cloginrc file is a follows; add password 192.168.152.1 vtypass enablepass add user 192.168.152.1 radius-user-name add userpassword 192.168.152.1 radius-password If I run the exact same command as above on another cisco 6500 (nativeIOS); vertigo:~$ clogin -c 'show version' 192.168.152.7 192.168.152.7 spawn telnet 192.168.152.7 Trying 192.168.152.7... Connected to 192.168.152.7. Escape character is '^]'. ************************************************************** * Unauthorized access to this device or the attached * * networks is prohibited without express written permission. * * Violators will be prosecuted to the fullest extent of both * * civil and criminal law. * * Use of the system may be logged or monitored without * * further notice. * ************************************************************** User Access Verification Username: Kerberos: No default realm defined for Kerberos! resman Password: test-box>enable Password: test-box# test-box#term length 0 test-box#show version Cisco Internetwork Operating System Software IOS (tm) c6sup1_rp Software (c6sup1_rp-JK2S-M), Version 12.1(13)E7, EARLY DEPLOYMENT RELEASE ... ... Configuration register is 0x2102 test-box#exit Connection closed by foreign host. vertigo:~$ RANCID is running on FreeBSD and trying to login into either 6500 (all nativeIOS) and 3600's at the moment thanks Chris From asp at partan.com Tue Sep 9 15:17:07 2003 From: asp at partan.com (Andrew Partan) Date: Tue, 9 Sep 2003 11:17:07 -0400 Subject: rancid clogin freezes after login In-Reply-To: References: Message-ID: <20030909151707.GA59436@partan.com> On Tue, Sep 09, 2003 at 07:05:10AM +0000, Chris Johns wrote: > DC01-hga# You are already enabled here. > My .cloginrc file is a follows; > add password 192.168.152.1 vtypass enablepass > add user 192.168.152.1 radius-user-name > add userpassword 192.168.152.1 radius-password You need to add add autoenable 192.168.152.1 1 and then all should work. --asp From okan+rancid at demirmen.com Tue Sep 9 16:32:37 2003 From: okan+rancid at demirmen.com (Okan Demirmen) Date: Tue, 9 Sep 2003 12:32:37 -0400 Subject: idea Message-ID: <20030909163259.GN8168@stravinsky.khaoz.org> i've somewhat looked through the archives to find this question, but haven't found one yet - point me there if this has been asked before. i was wondering if anyone thought of splitting up $BASEDIR. the reason i ask is because i would like to throw bin/* into LOCALBASE/bin/* and util/* into LOCALBASE/share/rancid/* where LOCALBASE is whatever you wish (/opt /opt/local /usr/local ...). then move logs/ into another location, ie /var/ and toss bin/env into /etc/. (cvs is easy to move with CVSROOT) all this is fairly easy to do for most everything is shell or perl, but i was wondering if the group/list was interested in patches to see this happen. thanks, okan -- Okan Demirmen < okan at demirmen dot com > PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB3670934 Key FP: <0xB3670934> 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934 -- From heas at shrubbery.net Tue Sep 9 18:29:17 2003 From: heas at shrubbery.net (john heasley) Date: Tue, 9 Sep 2003 11:29:17 -0700 Subject: idea In-Reply-To: <20030909163259.GN8168@stravinsky.khaoz.org> References: <20030909163259.GN8168@stravinsky.khaoz.org> Message-ID: <20030909182917.GL21446@shrubbery.net> Tue, Sep 09, 2003 at 12:32:37PM -0400, Okan Demirmen: > i've somewhat looked through the archives to find this question, but > haven't found one yet - point me there if this has been asked before. > > i was wondering if anyone thought of splitting up $BASEDIR. the > reason i ask is because i would like to throw bin/* into LOCALBASE/bin/* > and util/* into LOCALBASE/share/rancid/* where LOCALBASE is whatever > you wish (/opt /opt/local /usr/local ...). then move logs/ into > another location, ie /var/ and toss bin/env into > /etc/. (cvs is easy to move with CVSROOT) > > all this is fairly easy to do for most everything is shell or perl, but > i was wondering if the group/list was interested in patches to see > this happen. This is something that I'd like to do for the release after next; follow the autoconf placement/dir structure more closely. ie: bin/env should be etc/rancid.conf, util/* should be in share/rancid, log file directory should be configurable, and so on. From heas at shrubbery.net Wed Sep 10 06:08:22 2003 From: heas at shrubbery.net (john heasley) Date: Wed, 10 Sep 2003 06:08:22 +0000 Subject: Livingston Portmaster In-Reply-To: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@staq7.hq.atlantech.net> References: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@staq7.hq.atlantech.net> Message-ID: <20030910060822.GD4603@shrubbery.net> Fri, Sep 05, 2003 at 09:37:34AM -0400, Eric Van Tol: > Hello all, > Does anyone happen to have a rancid script for getting > information/configs from Livingston Portmasters? I'm surprised that > there is not one already in the default distribution. > > thanks, > eric I have none of these. contribitions in code ... or telnet & ssh welcome. From heas at shrubbery.net Thu Sep 11 00:35:50 2003 From: heas at shrubbery.net (john heasley) Date: Wed, 10 Sep 2003 17:35:50 -0700 Subject: Cisco forensics.log Message-ID: <20030911003550.GQ8656@shrubbery.net> A patch for rancid 2.2.2 has been created to filter the forensics.log file which appears in recent 12.2 images. ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2.2.p1 From heas at shrubbery.net Thu Sep 11 00:38:35 2003 From: heas at shrubbery.net (john heasley) Date: Wed, 10 Sep 2003 17:38:35 -0700 Subject: rancid support for Juniper ERX Message-ID: <20030911003835.GR8656@shrubbery.net> If anyone is interested in trying Juniper ERX support, we're interested in feed back on the support that has just been added. ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft3.tar.gz The device type for router.db is "erx". From heas at shrubbery.net Thu Sep 11 18:23:32 2003 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Sep 2003 11:23:32 -0700 Subject: Prompt issues on Bay routers. In-Reply-To: <20030903192841.49221.qmail@web11703.mail.yahoo.com> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> Message-ID: <20030911182332.GZ8656@shrubbery.net> Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > Hi, > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > I'm unable to run commands in BCC on Bay routers and I think it's because of prompt issues. When > you first log in to a Bay router, you're in TI instead of BCC. The prompt is [1:TN]$. I can get > Rancid to recognize this by doing 'set prompt "TN"' in blogin. Rancid then executes the 'bcc' > command to get into BCC. BCC uses a totally different prompt, however (bcc>), and I'm wondering > how to get Rancid to "switch" to that prompt so that commands can be run in BCC. I've tried stuff > like 'set prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > If anyone has any ideas I'd appreciate hearing them. I think that someone explained this to me before, but I must have purged it. blogin has a comment which reads: # Unlike the Cisco's, there is no enable function on the Bay's. # Instead there are seperate User and Manager accounts. A 'system' command # exists, which i am told does nothing. so, what is bcc? for that matter, what is "TI"? is the prompt configurable? an example of non-privileged and privileged logins (and perhaps a few random commands) performed manually from the bay/nortel would be helpful. From stefmit at comcast.net Fri Sep 12 12:58:16 2003 From: stefmit at comcast.net (stefmit) Date: Fri, 12 Sep 2003 07:58:16 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <20030911182332.GZ8656@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030911182332.GZ8656@shrubbery.net> Message-ID: <200309120758.16320.stefmit@comcast.net> I have raised this issue before, but I had never dared to go any further, knowing how hard it is for someone to create a program, then having to deal with all possible questions and issues raised by everyone, about every flavor of equipment that could possibly exist ... I have made myself some changes to the script, but have failed to properly login all the way into the "bcc". I will thus take advantage right now of this kind and direct offer from John, to help in resolving the Bays, and prodiving him with the info: TI = technician interface - a rudimentary management interface into the Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI (command line interface), the TI has some scripting capabilities BCC = Bay Command Console - next level into the "guts" of the router. This has two modes: command mode and configuration mode. NOTE: before showing you a simple login session through all layers, I feel we need to specify something here: the majority of items to be set on Bay routers are reachable only via their corresponding MIB entity names/numbers, which is a PITA!!! And now a session - consisting in login to the TI (first level), then issuing the bcc command (second level, and first of the bcc, the command mode), then typing config (this is probably the equivalent of enable in cisco - second level for bcc) [scm at Crypto]$ telnet x.y.z.w Trying x.y.w.z... Connected to bcn (x.y.w.z). Escape character is '^]'. Bay Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. Login: Manager Password: [hidden] Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: Welcome to the Backbone Technician Interface [us-head-bcn]$bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> config Reading configuration information, please wait . . . done. box# ... that's all that is to it. Thank you, John! Stef On Thursday 11 September 2003 01:23 pm, john heasley wrote: > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > Hi, > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > of prompt issues. When you first log in to a Bay router, you're in TI > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > If anyone has any ideas I'd appreciate hearing them. > > I think that someone explained this to me before, but I must have purged > it. blogin has a comment which reads: > > # Unlike the Cisco's, there is no enable function on the Bay's. > # Instead there are seperate User and Manager accounts. A 'system' command > # exists, which i am told does nothing. > > so, what is bcc? for that matter, what is "TI"? is the prompt > configurable? > > an example of non-privileged and privileged logins (and perhaps a few > random commands) performed manually from the bay/nortel would be helpful. From kilton9 at yahoo.com Sat Sep 13 00:33:00 2003 From: kilton9 at yahoo.com (James Kilton) Date: Fri, 12 Sep 2003 17:33:00 -0700 (PDT) Subject: Prompt issues on Bay routers. In-Reply-To: <200309120758.16320.stefmit@comcast.net> Message-ID: <20030913003300.8503.qmail@web11704.mail.yahoo.com> Thanks guys. I managed to fix this via some minor script hacking earlier in the week. I doubt it's pretty as I'm not a programmer (I know a bit of Perl and had never worked with TCL), and it may have the potential to cause other problems that I haven't run into yet, but as of now I can have Rancid log into bcc and do a 'show config -all' with success. I believe I ended up adding a handful of lines total to blogin and brancid, but I can't recall specifically since I tried about 100 things before I had success. I don't have access to the changes I made right this instant but I can get them to you guys if you want them. Thanks, James --- stefmit wrote: > I have raised this issue before, but I had never dared to go any further, > knowing how hard it is for someone to create a program, then having to deal > with all possible questions and issues raised by everyone, about every flavor > of equipment that could possibly exist ... I have made myself some changes to > the script, but have failed to properly login all the way into the "bcc". I > will thus take advantage right now of this kind and direct offer from John, > to help in resolving the Bays, and prodiving him with the info: > > TI = technician interface - a rudimentary management interface into the > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI > (command line interface), the TI has some scripting capabilities > > BCC = Bay Command Console - next level into the "guts" of the router. This has > two modes: command mode and configuration mode. > > NOTE: before showing you a simple login session through all layers, I feel we > need to specify something here: the majority of items to be set on Bay > routers are reachable only via their corresponding MIB entity names/numbers, > which is a PITA!!! > > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) > > [scm at Crypto]$ telnet x.y.z.w > Trying x.y.w.z... > Connected to bcn (x.y.w.z). > Escape character is '^]'. > > > Bay Networks, Inc. and its Licensors. > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > Login: Manager > > Password: [hidden] > > Mounting new volume... > Device label: > Directory: 1: > New Present Working Directory: 1: > > > Welcome to the Backbone Technician Interface > > > [us-head-bcn]$bcc > > Welcome to the Bay Command Console! > > * To enter configuration mode, type config > > * To list all system commands, type ? > > * To exit the BCC, type exit > > bcc> config > > Reading configuration information, please wait . . . done. > > box# > > ... that's all that is to it. > > Thank you, John! > > Stef > > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > > Hi, > > > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > > of prompt issues. When you first log in to a Bay router, you're in TI > > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > > > If anyone has any ideas I'd appreciate hearing them. > > > > I think that someone explained this to me before, but I must have purged > > it. blogin has a comment which reads: > > > > # Unlike the Cisco's, there is no enable function on the Bay's. > > # Instead there are seperate User and Manager accounts. A 'system' command > > # exists, which i am told does nothing. > > > > so, what is bcc? for that matter, what is "TI"? is the prompt > > configurable? > > > > an example of non-privileged and privileged logins (and perhaps a few > > random commands) performed manually from the bay/nortel would be helpful. > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From mcooper at blueyonder.co.uk Sat Sep 13 07:43:33 2003 From: mcooper at blueyonder.co.uk (Mark Cooper) Date: Sat, 13 Sep 2003 08:43:33 +0100 Subject: Prompt issues on Bay routers. In-Reply-To: <20030913003300.8503.qmail@web11704.mail.yahoo.com> References: <20030913003300.8503.qmail@web11704.mail.yahoo.com> Message-ID: <3F62CAA5.6040908@blueyonder.co.uk> >>Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: >>>this by doing 'set prompt "TN"' in blogin. Rancid then executes the >>>'bcc' command to get into BCC. BCC uses a totally different prompt, >>>however (bcc>), and I'm wondering how to get Rancid to "switch" to You shouldn't need to use set prompt as it should automatically recognize the prompt when you login. If it doesn't then you its probably down to the prompt or a banner having some 'invalid' characters in it. > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > >> >>I think that someone explained this to me before, but I must have purged >>it. blogin has a comment which reads: >> >># Unlike the Cisco's, there is no enable function on the Bay's. >># Instead there are seperate User and Manager accounts. A 'system' command >># exists, which i am told does nothing. That comment still stands and I think stefmit has posted a good example of a normal login. stefmit wrote: > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) This is a normal login session which blogin and brancid should handle fine. Unfortunately I no longer work for the company that used the bay kit so I carnt test it right at the moment. James Kilton wrote: > Thanks guys. > > I managed to fix this via some minor script hacking earlier in the >week. I doubt it's pretty as I would certainly be interested to know what you changed :) -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From stefmit at comcast.net Sat Sep 13 16:26:16 2003 From: stefmit at comcast.net (stefmit) Date: Sat, 13 Sep 2003 11:26:16 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <3F62CAA5.6040908@blueyonder.co.uk> References: <20030913003300.8503.qmail@web11704.mail.yahoo.com> <3F62CAA5.6040908@blueyonder.co.uk> Message-ID: <200309131126.17052.stefmit@comcast.net> On Saturday 13 September 2003 02:43 am, Mark Cooper wrote: > stefmit wrote: > > > > > And now a session - consisting in login to the TI (first level), then > > issuing > > > the bcc command (second level, and first of the bcc, the command > > mode), then > > > typing config (this is probably the equivalent of enable in cisco - > > second > > > level for bcc) > > > > This is a normal login session which blogin and brancid should handle > fine. It definitely does not. Even minor changes to get the first level (TI) were needed, compared to the original. I never pursued it any further, as - somehow - I couldn't log out of routers after, logging in using the modified blogin ... > James Kilton wrote: > > Thanks guys. > > > > I managed to fix this via some minor script hacking earlier in the > >week. I doubt it's pretty as > > I would certainly be interested to know what you changed :) Me too. TIA. Stef From heas at shrubbery.net Mon Sep 15 22:52:24 2003 From: heas at shrubbery.net (john heasley) Date: Mon, 15 Sep 2003 15:52:24 -0700 Subject: Prompt issues on Bay routers. In-Reply-To: <200309120758.16320.stefmit@comcast.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030911182332.GZ8656@shrubbery.net> <200309120758.16320.stefmit@comcast.net> Message-ID: <20030915225223.GS16671@shrubbery.net> Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > I have raised this issue before, but I had never dared to go any further, > knowing how hard it is for someone to create a program, then having to deal > with all possible questions and issues raised by everyone, about every flavor > of equipment that could possibly exist ... I have made myself some changes to > the script, but have failed to properly login all the way into the "bcc". I > will thus take advantage right now of this kind and direct offer from John, > to help in resolving the Bays, and prodiving him with the info: > > TI = technician interface - a rudimentary management interface into the > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI > (command line interface), the TI has some scripting capabilities > > BCC = Bay Command Console - next level into the "guts" of the router. This has > two modes: command mode and configuration mode. > > NOTE: before showing you a simple login session through all layers, I feel we > need to specify something here: the majority of items to be set on Bay > routers are reachable only via their corresponding MIB entity names/numbers, > which is a PITA!!! > > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) > > [scm at Crypto]$ telnet x.y.z.w > Trying x.y.w.z... > Connected to bcn (x.y.w.z). > Escape character is '^]'. > > > Bay Networks, Inc. and its Licensors. > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > Login: Manager > > Password: [hidden] > > Mounting new volume... > Device label: > Directory: 1: > New Present Working Directory: 1: > > > Welcome to the Backbone Technician Interface > > > [us-head-bcn]$bcc ^^^^^^^^^^^^^^ where did this prompt come from? ie: what does "us-head-bcn" mean? is it always within []s (square brackets)? always end with $ (dollar sign)? no prompt for a password, because it is the "manager" account. right? btw, when i say "always", I mean at that privilege level and with all bay devices capable of cmd-line...or at least those we hope to collect. > Welcome to the Bay Command Console! > > * To enter configuration mode, type config > > * To list all system commands, type ? > > * To exit the BCC, type exit > > bcc> config > > Reading configuration information, please wait . . . done. > > box# the prompt is "box"? not us-head-bcn# or bcc#? I should have asked explicity; what does the exit from 'box#' back to your host look like? > ... that's all that is to it. > > Thank you, John! > > Stef > > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > > Hi, > > > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > > of prompt issues. When you first log in to a Bay router, you're in TI > > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > > > If anyone has any ideas I'd appreciate hearing them. > > > > I think that someone explained this to me before, but I must have purged > > it. blogin has a comment which reads: > > > > # Unlike the Cisco's, there is no enable function on the Bay's. > > # Instead there are seperate User and Manager accounts. A 'system' command > > # exists, which i am told does nothing. > > > > so, what is bcc? for that matter, what is "TI"? is the prompt > > configurable? > > > > an example of non-privileged and privileged logins (and perhaps a few > > random commands) performed manually from the bay/nortel would be helpful. From stefmit at comcast.net Tue Sep 16 00:00:43 2003 From: stefmit at comcast.net (stefmit) Date: Mon, 15 Sep 2003 19:00:43 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <20030915225223.GS16671@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309120758.16320.stefmit@comcast.net> <20030915225223.GS16671@shrubbery.net> Message-ID: <200309151900.43300.stefmit@comcast.net> See comments inline: On Monday 15 September 2003 05:52 pm, you wrote: > Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > > I have raised this issue before, but I had never dared to go any further, > > knowing how hard it is for someone to create a program, then having to > > deal with all possible questions and issues raised by everyone, about > > every flavor of equipment that could possibly exist ... I have made > > myself some changes to the script, but have failed to properly login all > > the way into the "bcc". I will thus take advantage right now of this kind > > and direct offer from John, to help in resolving the Bays, and prodiving > > him with the info: > > > > TI = technician interface - a rudimentary management interface into the > > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular > > CLI (command line interface), the TI has some scripting capabilities > > > > BCC = Bay Command Console - next level into the "guts" of the router. > > This has two modes: command mode and configuration mode. > > > > NOTE: before showing you a simple login session through all layers, I > > feel we need to specify something here: the majority of items to be set > > on Bay routers are reachable only via their corresponding MIB entity > > names/numbers, which is a PITA!!! > > > > And now a session - consisting in login to the TI (first level), then > > issuing the bcc command (second level, and first of the bcc, the command > > mode), then typing config (this is probably the equivalent of enable in > > cisco - second level for bcc) > > > > [scm at Crypto]$ telnet x.y.z.w > > Trying x.y.w.z... > > Connected to bcn (x.y.w.z). > > Escape character is '^]'. > > > > > > Bay Networks, Inc. and its Licensors. > > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > > > > > Login: Manager > > > > Password: [hidden] > > > > Mounting new volume... > > Device label: > > Directory: 1: > > New Present Working Directory: 1: > > > > > > Welcome to the Backbone Technician Interface > > > > > > [us-head-bcn]$bcc > > ^^^^^^^^^^^^^^ > where did this prompt come from? ie: what does "us-head-bcn" mean? > is it always within []s (square brackets)? always end with $ (dollar > sign)? I apologize - the name in between [] is the sysID associated with SNMP, that the system reads (for example we named our router us (location) - head (headquarters) - bcn (model). The important part is $ only, I think. > > no prompt for a password, because it is the "manager" account. right? Right! > > btw, when i say "always", I mean at that privilege level and with all > bay devices capable of cmd-line...or at least those we hope to collect. > > > Welcome to the Bay Command Console! > > > > * To enter configuration mode, type config > > > > * To list all system commands, type ? > > > > * To exit the BCC, type exit > > > > bcc> config > > > > Reading configuration information, please wait . . . done. > > > > box# > > the prompt is "box"? not us-head-bcn# or bcc#? Right! it is box# - but - yet again - the point here is to pay attention to the # only (I think). > > I should have asked explicity; what does the exit from 'box#' back to your > host look like? > > > ... that's all that is to it. > > > > Thank you, John! > > > > Stef In my opinion, the sequence would be: $ prompt for TI > prompt for bcc as command interface # prompt for bcc as "enable" The rest being more or less variable (for example, after getting into box#, then every "move" is similar to "enable" in Cisco, i.e. changing the string before # into whatever interface/entity is being processed. Thx, Stef From stefmit at comcast.net Tue Sep 16 00:23:09 2003 From: stefmit at comcast.net (stefmit) Date: Mon, 15 Sep 2003 19:23:09 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <200309151900.43300.stefmit@comcast.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> Message-ID: <200309151923.10289.stefmit@comcast.net> Forgot to answer your last question - will let the previously recorded session do it for me: > > > Welcome to the Bay Command Console! > > > > > > * To enter configuration mode, type config > > > > > > * To list all system commands, type ? > > > > > > * To exit the BCC, type exit > > I should have asked explicity; what does the exit from 'box#' back to > > your host look like? i.e. same as the "exit" from bcc ... "exit" Thanks a lot for all your help, John! From heas at shrubbery.net Wed Sep 17 18:39:22 2003 From: heas at shrubbery.net (john heasley) Date: Wed, 17 Sep 2003 11:39:22 -0700 Subject: Prompt issues on Bay routers. In-Reply-To: <200309151923.10289.stefmit@comcast.net> <200309151900.43300.stefmit@comcast.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> <200309151923.10289.stefmit@comcast.net> <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309120758.16320.stefmit@comcast.net> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> Message-ID: <20030917183922.GF6180@shrubbery.net> Mon, Sep 15, 2003 at 07:00:43PM -0500, stefmit: > See comments inline: > > On Monday 15 September 2003 05:52 pm, you wrote: > > Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > > > I have raised this issue before, but I had never dared to go any further, > > > knowing how hard it is for someone to create a program, then having to > > > deal with all possible questions and issues raised by everyone, about > > > every flavor of equipment that could possibly exist ... I have made > > > myself some changes to the script, but have failed to properly login all > > > the way into the "bcc". I will thus take advantage right now of this kind > > > and direct offer from John, to help in resolving the Bays, and prodiving > > > him with the info: > > > > > > TI = technician interface - a rudimentary management interface into the > > > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular > > > CLI (command line interface), the TI has some scripting capabilities > > > > > > BCC = Bay Command Console - next level into the "guts" of the router. > > > This has two modes: command mode and configuration mode. > > > > > > NOTE: before showing you a simple login session through all layers, I > > > feel we need to specify something here: the majority of items to be set > > > on Bay routers are reachable only via their corresponding MIB entity > > > names/numbers, which is a PITA!!! > > > > > > And now a session - consisting in login to the TI (first level), then > > > issuing the bcc command (second level, and first of the bcc, the command > > > mode), then typing config (this is probably the equivalent of enable in > > > cisco - second level for bcc) > > > > > > [scm at Crypto]$ telnet x.y.z.w > > > Trying x.y.w.z... > > > Connected to bcn (x.y.w.z). > > > Escape character is '^]'. > > > > > > > > > Bay Networks, Inc. and its Licensors. > > > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > > > > > > > > > Login: Manager > > > > > > Password: [hidden] > > > > > > Mounting new volume... > > > Device label: > > > Directory: 1: > > > New Present Working Directory: 1: > > > > > > > > > Welcome to the Backbone Technician Interface > > > > > > > > > [us-head-bcn]$bcc > > > > ^^^^^^^^^^^^^^ > > where did this prompt come from? ie: what does "us-head-bcn" mean? > > is it always within []s (square brackets)? always end with $ (dollar > > sign)? > > I apologize - the name in between [] is the sysID associated with SNMP, that > the system reads (for example we named our router us (location) - head > (headquarters) - bcn (model). The important part is $ only, I think. so, this may contain spaces and puctuation? sorry, dont have the mib handy. as for '$' only, no. looking for lone characters or english phrases that can not be anchored has a tendency to match random characters appearing in the normal output. something more like ^\[[^][]+\]\$ > > > > no prompt for a password, because it is the "manager" account. right? > > Right! > > > > > btw, when i say "always", I mean at that privilege level and with all > > bay devices capable of cmd-line...or at least those we hope to collect. > > > > > Welcome to the Bay Command Console! > > > > > > * To enter configuration mode, type config > > > > > > * To list all system commands, type ? > > > > > > * To exit the BCC, type exit > > > > > > bcc> config > > > > > > Reading configuration information, please wait . . . done. > > > > > > box# > > > > the prompt is "box"? not us-head-bcn# or bcc#? > > Right! it is box# - but - yet again - the point here is to pay attention to > the # only (I think). > > > > > I should have asked explicity; what does the exit from 'box#' back to your > > host look like? > > > > > ... that's all that is to it. > > > > > > Thank you, John! > > > > > > Stef > > In my opinion, the sequence would be: > > $ prompt for TI > > prompt for bcc as command interface > # prompt for bcc as "enable" > > The rest being more or less variable (for example, after getting into box#, > then every "move" is similar to "enable" in Cisco, i.e. changing the string > before # into whatever interface/entity is being processed. > > Thx, > Stef > Forgot to answer your last question - will let the previously recorded session > do it for me: > > > > > > > Welcome to the Bay Command Console! > > > > > > > > * To enter configuration mode, type config > > > > > > > > * To list all system commands, type ? > > > > > > > > * To exit the BCC, type exit > > > > > > I should have asked explicity; what does the exit from 'box#' back to > > > your host look like? > > i.e. same as the "exit" from bcc ... "exit" so, box# exit unix_host% blogin host ... not, box# exit bcc> exit [foo]$ exit unix_host% From stefmit at comcast.net Wed Sep 17 19:23:12 2003 From: stefmit at comcast.net (stefmit) Date: Wed, 17 Sep 2003 14:23:12 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <20030917183922.GF6180@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309151900.43300.stefmit@comcast.net> <20030917183922.GF6180@shrubbery.net> Message-ID: <200309171423.12772.stefmit@comcast.net> On Wednesday 17 September 2003 01:39 pm, john heasley wrote: This came the closest:) - my mistake for not being clear about the end of the session: > box# exit > bcc> exit > [foo]$ exit ^^^^^ it is actually "logout" ("exit" comes back with "unknown command") > unix_host% One more note - at the [whatever]$ TI prompt, typing bcc takes a looong time (I've seen routers where it took upwards to 30-45 sec, and not link related!), before getting the "command" level bcc (i.e. bcc>), Typing then config is pretty fast, though (to get the "enable" level", i.e. box#). Thx again for all your work, Stefan From JRizzo at ea.com Wed Sep 17 20:15:09 2003 From: JRizzo at ea.com (Rizzo, Joe) Date: Wed, 17 Sep 2003 13:15:09 -0700 Subject: running rancid manually works, but not via do-diffs Message-ID: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.com> I am setting up RANCID on a new system. When do-diffs is ran a device does not get polled. The error in the log is: vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx vpwan01_eatx: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr ch assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slo t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvr am:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1: vpwan01_eatx: End of run not found However rancid -d vpwan01_eatx produces no errors and generates healthy looking .raw and .new files. Why would clogin/rancid work manually but not when do-diffs calls rancid/clogin? Any ideas? Thanks, Joe From heas at shrubbery.net Wed Sep 17 20:32:29 2003 From: heas at shrubbery.net (john heasley) Date: Wed, 17 Sep 2003 13:32:29 -0700 Subject: running rancid manually works, but not via do-diffs In-Reply-To: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.com> References: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.com> Message-ID: <20030917203229.GQ6180@shrubbery.net> Wed, Sep 17, 2003 at 01:15:09PM -0700, Rizzo, Joe: > I am setting up RANCID on a new system. When do-diffs is ran a device > does not get polled. The error in the log is: > vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx > vpwan01_eatx: missed cmd(s): show env all,show module,show > controllers,show diagbus,show diag,dir /all disk1:,show gsr ch > assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir > /all sup-bootflash:,dir /all slot2:,dir /all slo > t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show > bootvar,show vlan,show controllers cbus,dir /all nvr > am:,show flash,show version,show variables boot,show c7200,show boot,dir > /all slot1: > vpwan01_eatx: End of run not found > > However rancid -d vpwan01_eatx produces no errors and generates healthy > looking .raw and .new files. > > Why would clogin/rancid work manually but not when do-diffs calls > rancid/clogin? dumb q, but are both instances (cron and manual) using ssh? next, I would suspect pty handling by ssh - or maybe the terminal type it ends-up with might be affecting it? what o/s? expect/etc versions? From JRizzo at ea.com Wed Sep 17 20:43:28 2003 From: JRizzo at ea.com (Rizzo, Joe) Date: Wed, 17 Sep 2003 13:43:28 -0700 Subject: running rancid manually works, but not via do-diffs Message-ID: <194487E5B6AC1E4E82FCBD56E579979103222DF3@eahq-mb3.rws.ad.ea.com> "next, I would suspect pty handling by ssh - or maybe the terminal type it ends-up with might be affecting it?" refreshed my memory... I set the following in bin/env TERM=vt100;export TERM COLUMNS=160; LINES=48; export COLUMNS LINES The affected devices are now being polled successfully. Thanks much John! FYI - here are the versions: Redhat9 2.4.20smp kernel Expect 5.39 Tcl 8.4.4 The device being polled is Linux system running ZebOS. From mcooper at blueyonder.co.uk Thu Sep 18 02:17:57 2003 From: mcooper at blueyonder.co.uk (Mark Cooper) Date: Thu, 18 Sep 2003 03:17:57 +0100 Subject: Prompt issues on Bay routers. In-Reply-To: <200309171423.12772.stefmit@comcast.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309151900.43300.stefmit@comcast.net> <20030917183922.GF6180@shrubbery.net> <200309171423.12772.stefmit@comcast.net> Message-ID: <3F6915D5.6000208@blueyonder.co.uk> stefmit wrote: > On Wednesday 17 September 2003 01:39 pm, john heasley wrote: > This came the closest:) - my mistake for not being clear about the end of the > session: > > >>box# exit >>bcc> exit >>[foo]$ exit > > ^^^^^ it is actually "logout" ("exit" comes back with "unknown > command") > >>unix_host% [mcooper at dire bin]$ grep logout * blogin.in: send "logout\r" brancid.in: if ( (/\>\s?logout$/) || $found_end ) { [mcooper at dire bin]$ > One more note - at the [whatever]$ TI prompt, typing bcc takes a looong time > (I've seen routers where it took upwards to 30-45 sec, and not link > related!), before getting the "command" level bcc (i.e. bcc>), Typing then > config is pretty fast, though (to get the "enable" level", i.e. box#). typing bcc taks a long time? Do you mean it takes a long time for blogin/brancid to get into bcc or that when you manually login you cannot type bcc? I think you mean the first as it's something I've seen myself. It all depends on the spec/loading of router involved, and particularly memory. It seems to have to do *alot* of work to load the bcc module on low sepc/memory routers. One lovely side effect of this I noted was a massive jump in latency through the router! Try pinging the router and then running brancid. As soon as it hits the bcc line the ping times go through the roof :( I've seen ping times go from 1mc up to 300ms!! :( One thing I should mention ( I've still not been able to get access to any bay kit ), but brancid does not do a config command while in bcc and never needed to in order to run the show config commands. Has this changed in new revision's of BayOS? -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From stefmit at comcast.net Thu Sep 18 10:35:08 2003 From: stefmit at comcast.net (stefmit) Date: Thu, 18 Sep 2003 05:35:08 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <3F6915D5.6000208@blueyonder.co.uk> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309171423.12772.stefmit@comcast.net> <3F6915D5.6000208@blueyonder.co.uk> Message-ID: <200309180535.09464.stefmit@comcast.net> On Wednesday 17 September 2003 09:17 pm, Mark Cooper wrote: > stefmit wrote: > [mcooper at dire bin]$ grep logout * > blogin.in: send "logout\r" > brancid.in: if ( (/\>\s?logout$/) || $found_end ) { > [mcooper at dire bin]$ For whatever reasons, in all Nortel/Bat routers I have tried this, blogin never makes it this far (as in "reaching the logout"). It gets me to the TI prompt ($), and I can run commands there, but even when typing "logout" (!!!) I cannot actually log out of the router(s). Telnet-ing "normally" (i.e. no "blogin") into those same routers, and running commands, then a logout, allows me to cleanly close the sessions ... very odd ... > > > One more note - at the [whatever]$ TI prompt, typing bcc takes a looong > > time (I've seen routers where it took upwards to 30-45 sec, and not link > > related!), before getting the "command" level bcc (i.e. bcc>), Typing > > then config is pretty fast, though (to get the "enable" level", i.e. > > box#). > > typing bcc taks a long time? Do you mean it takes a long time for > blogin/brancid to get into bcc or that when you manually login you > cannot type bcc? I think you mean the first as it's something I've seen > myself. It all depends on the spec/loading of router involved, and > particularly memory. It seems to have to do *alot* of work to load the > bcc module on low sepc/memory routers. One lovely side effect of this I > noted was a massive jump in latency through the router! Try pinging the > router and then running brancid. As soon as it hits the bcc line the > ping times go through the roof :( I've seen ping times go from 1mc up to > 300ms!! :( blogin/brancid never make it as far as getting to a bcc prompt (whether be it "bcc>" or - even furfther - "box#"). I was referring to a normal login session, going through TI, then typing bcc. All my Nortel routers hve at least 32MB of RAM, and they handle small frame relay sites, with very small tables, and not very much traffic. > > One thing I should mention ( I've still not been able to get access to > any bay kit ), but brancid does not do a config command while in bcc and > never needed to in order to run the show config commands. Has this > changed in new revision's of BayOS? No, it hasn't - one can do a "show config" under TI, without having to go into bcc. The issue with bcc being the subject of this email thread was started by someone's question about the equivalent of "enable" in the Nortel/Bat world. I have explained as much as I was able to - in my initial response to that query - what is the difference between TI and bcc ... and the thought was to provide enough info to change the blogin/brancid to be able to handle a whole session (login (telnet) into TI -->[router-ID]$bcc --> bcc>config --> box#exit --> bcc>exit -->[router-ID]logout) properly. I do not think that anybody was ever able to use blogin/brancid beyond the login to TI capability. Thx, Stef From andrew.ellis at hklaw.com Fri Sep 19 14:08:04 2003 From: andrew.ellis at hklaw.com (Andrew Ellis) Date: Fri, 19 Sep 2003 10:08:04 -0400 Subject: Having an install issue with Rancid Message-ID: <1063980484.6728.14.camel@LAK-ALELLIS> I am getting an error log everytime i try to run rancid. I get the following: x.x.x.x being the router ip localhost$./rancid x.x.x.x sh: line 1: clogin: command not found x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1: x.x.xx: End of run not found clogin -c 'show version; show diag' x.x.x.x works fine and logs in as it should seems that there is a path missing somewhere. Can someone please help me. Thanks in advance. -- Andrew Ellis From JRizzo at ea.com Fri Sep 19 14:20:44 2003 From: JRizzo at ea.com (Rizzo, Joe) Date: Fri, 19 Sep 2003 07:20:44 -0700 Subject: Having an install issue with Rancid Message-ID: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.com> I believe that would happen if clogin is not in the path. Try adding your rancid bin directory to your path. Joe From mcooper at blueyonder.co.uk Sat Sep 20 02:55:52 2003 From: mcooper at blueyonder.co.uk (Mark Cooper) Date: Sat, 20 Sep 2003 03:55:52 +0100 Subject: Prompt issues on Bay routers. In-Reply-To: <200309180535.09464.stefmit@comcast.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309171423.12772.stefmit@comcast.net> <3F6915D5.6000208@blueyonder.co.uk> <200309180535.09464.stefmit@comcast.net> Message-ID: <3F6BC1B8.3010505@blueyonder.co.uk> stefmit wrote: > For whatever reasons, in all Nortel/Bat routers I have tried this, blogin > never makes it this far (as in "reaching the logout"). It gets me to the TI > prompt ($), and I can run commands there, but even when typing "logout" (!!!) > I cannot actually log out of the router(s). Telnet-ing "normally" (i.e. no > "blogin") into those same routers, and running commands, then a logout, > allows me to cleanly close the sessions ... very odd ... I don't remember blogin being an interactive process?? You should be able to do something like blogin -c 'bcc; show config' routername if not can you post or email me the output? > blogin/brancid never make it as far as getting to a bcc prompt (whether be it > "bcc>" or - even furfther - "box#"). I was referring to a normal login > session, going through TI, then typing bcc. All my Nortel routers hve at > least 32MB of RAM, and they handle small frame relay sites, with very small > tables, and not very much traffic. Can you post/email me the router.raw file after doing:- setenv NOPIPE=YES brancid -d routername > No, it hasn't - one can do a "show config" under TI, without having to go into > bcc. The issue with bcc being the subject of this email thread was started by > someone's question about the equivalent of "enable" in the Nortel/Bat world. > I have explained as much as I was able to - in my initial response to that > query - what is the difference between TI and bcc ... and the thought was to > provide enough info to change the blogin/brancid to be able to handle a whole > session (login (telnet) into TI -->[router-ID]$bcc --> bcc>config --> > box#exit --> bcc>exit -->[router-ID]logout) properly. I do not think that > anybody was ever able to use blogin/brancid beyond the login to TI > capability. OK, herein lies the problem. When I originally ported clogin/rancid to the Bay Networks kit that we were using at the time, you *HAD* to enter bcc to run the show config command. I have no idea what version of BayOS they were running at the time...but it was quite some time ago now :) Can you confirm what version(s) you are running? I do remember seeing someone post about problems with blogin/brancid a while back, which they solved by changing the "more off" to "config cli more false" and "show config -all" to "show config verbose". If, as you say, you can run the "show config" command in TI mode, than brancid can be simplified from:- 'bcc' => "RunCommand", 'show config' => "ShowConfig", 'show config -all' => "ShowConfig", to:- 'show config' => "ShowConfig", try testing this by doing blogin -c 'show config' routername Again, if this doesn't work, please post/email me the output - hopefully than I can get a better idea what is going wrong :) HTH -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From stefmit at comcast.net Sat Sep 20 15:00:10 2003 From: stefmit at comcast.net (stefmit) Date: Sat, 20 Sep 2003 10:00:10 -0500 Subject: Prompt issues on Bay routers. In-Reply-To: <3F6BC1B8.3010505@blueyonder.co.uk> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309180535.09464.stefmit@comcast.net> <3F6BC1B8.3010505@blueyonder.co.uk> Message-ID: <200309201000.10824.stefmit@comcast.net> Mark, I am soooo sorry - I don't know what I was thinking of ... ;( I said: "one can do a "show config" from a TI prompt" - THAT IS WRONG!!!. Only after reading your specific question below, have I realized that I had screwed up. I meant: one can do a "show" from a TI prompt (e.g. $show ip route), but the specific "show config" is NOT available from a TI ($) prompt, it needs a bcc> environment (not the enabled one, but the bcc nonetheless). I want to send this ASAP, because I misled you, not re-reading my email before sending it. For the rest - I will get back to you on Monday, probably. Thank you again for your help, and sorry about my mistake. Stef On Friday 19 September 2003 09:55 pm, Mark Cooper wrote: > If, as you say, you can run the "show config" command in TI mode, than > brancid can be simplified from:- > 'bcc' => "RunCommand", > 'show config' => "ShowConfig", > 'show config -all' => "ShowConfig", > > to:- > > 'show config' => "ShowConfig", From heas at shrubbery.net Sat Sep 20 18:59:48 2003 From: heas at shrubbery.net (john heasley) Date: Sat, 20 Sep 2003 11:59:48 -0700 Subject: Having an install issue with Rancid In-Reply-To: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.com> References: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.com> Message-ID: <20030920185948.GF1969@shrubbery.net> Fri, Sep 19, 2003 at 07:20:44AM -0700, Rizzo, Joe: > I believe that would happen if clogin is not in the path. > > Try adding your rancid bin directory to your path. correct. the configure process adds the location of clogin in the PATH enviroment variable within bin/env. this file is included by bin/do-diffs. if your shell is a bourne shell derivative, the following ought to do it: . /usr/local/rancid/bin/env rancid x.x.x.x the alternative, in the case below, is adding . to the end of your path, though that is often dis-recommended by security folk. From kilton9 at yahoo.com Sat Sep 20 22:54:57 2003 From: kilton9 at yahoo.com (James Kilton) Date: Sat, 20 Sep 2003 15:54:57 -0700 (PDT) Subject: Prompt issues on Bay routers. In-Reply-To: <200309131126.17052.stefmit@comcast.net> Message-ID: <20030920225457.42814.qmail@web11701.mail.yahoo.com> > > James Kilton wrote: > > > Thanks guys. > > > > > > I managed to fix this via some minor script hacking earlier in the > > >week. I doubt it's pretty as > > > > I would certainly be interested to know what you changed :) > > Me too. TIA. > > Stef Sorry for the delay on this, I was out of town. My versions of brancid and blogin are attached. You should be able to run 'diff' to see what I changed. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: brancid.txt Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20030920/4a63661a/attachment.txt -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: blogin.txt Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20030920/4a63661a/attachment-0001.txt From azheng at monterey.k12.ca.us Tue Sep 23 00:21:10 2003 From: azheng at monterey.k12.ca.us (Alex Zheng) Date: Mon, 22 Sep 2003 17:21:10 -0700 Subject: manage auto-enabled/radius devices and not-auto-enabled devices at once Message-ID: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> Hi, We have about 100+ routers which is authenticated via Radius, auto-enabled. in clogin, this is what modified: # The default is to automatically enable set enable 1 # The default is that you login non-enabled (tacacs can have you login already e nabled) # MCOE set auto-enable 1 for routers set autoenable 1 so in the .cloginrc: add user routerIP myuser add password routerIP myRadiusPasswd works great for router! However, we have a bunch of switches not going through radius at all for verification (passwd stored locally), in .cloginrc add user switchip myuser add passwd switchip vtypass enablepass This won't work with clogin I modified. Any suggestions? Thanks. Alex From jens at nha.co.za Tue Sep 23 07:17:24 2003 From: jens at nha.co.za (=?iso-8859-1?Q?Jens_von_B=FClow?=) Date: Tue, 23 Sep 2003 09:17:24 +0200 Subject: Hang after login with HP ProCurve 4108gl Message-ID: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> Greetings, I am experiencing a login "hang" straight after a successful loin (almost as if I am still stuck in an expect).... I can type, but I never receive any response (I can type the command but can't appear press enter)... I am using HP J4865A ProCurve Switch 4108GL Firmware revision G.07.26 and wonder if other users as experiencing the same problem? How do I debug this? I look forward to your responses. Thanks & Regards Jens From steve at smiller.org Tue Sep 23 08:07:32 2003 From: steve at smiller.org (Stephen Miller) Date: Tue, 23 Sep 2003 01:07:32 -0700 Subject: Hang after login with HP ProCurve 4108gl In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> References: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> Message-ID: <20030923075834.M85254@smiller.org> the hang may be caused by the login script (hlogin?) not recognizing the prompt once you get logged in. you can modify the prompt value within the login script. here's a piece of the hlogin regarding the prompt: if $autoenable { set prompt "#" } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 set prompt "#" } else { set autoenable 0 set prompt ">" } } if your doesn't match the above values then the login script is waiting for the correct prompt to appear...it should disconnect after 45 seconds. steve ---------- Original Message ----------- From: Jens von B?low To: Cc: "Luqman Achmat" Sent: Tue, 23 Sep 2003 09:17:24 +0200 Subject: Hang after login with HP ProCurve 4108gl > Greetings, > > I am experiencing a login "hang" straight after a successful loin > (almost as if I am still stuck in an expect).... I can type, but I > never receive any response (I can type the command but can't appear > press enter)... > > I am using > > > HP J4865A ProCurve Switch 4108GL > Firmware revision G.07.26 > > > and wonder if other users as experiencing the same problem? > > How do I debug this? > > I look forward to your responses. > > Thanks & Regards > Jens ------- End of Original Message ------- From heas at shrubbery.net Tue Sep 23 17:55:59 2003 From: heas at shrubbery.net (john heasley) Date: Tue, 23 Sep 2003 10:55:59 -0700 Subject: Hang after login with HP ProCurve 4108gl In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> References: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> Message-ID: <20030923175559.GU19466@shrubbery.net> Tue, Sep 23, 2003 at 09:17:24AM +0200, Jens von B?low: > Greetings, > > I am experiencing a login "hang" straight after a successful loin (almost as if I am still stuck in an expect).... I can type, but I never receive any response (I can type the command but can't appear press enter)... > > I am using > > > HP J4865A ProCurve Switch 4108GL > Firmware revision G.07.26 > > > and wonder if other users as experiencing the same problem? do you mean it logs into a box fine, but fails on box2? ie: hlogin box1 box2 or that it authenticates and then hangs? in the latter case, stephen miller's reply is probably correct. > How do I debug this? try switching the autoenable knob and/or see exp_internal in expect (1). From heas at shrubbery.net Tue Sep 23 19:29:44 2003 From: heas at shrubbery.net (john heasley) Date: Tue, 23 Sep 2003 12:29:44 -0700 Subject: manage auto-enabled/radius devices and not-auto-enabled devices at once In-Reply-To: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> References: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> Message-ID: <20030923192944.GF19466@shrubbery.net> Mon, Sep 22, 2003 at 05:21:10PM -0700, Alex Zheng: > > Hi, > > We have about 100+ routers which is authenticated via Radius, auto-enabled. > > in clogin, this is what modified: > > # The default is to automatically enable > set enable 1 > # The default is that you login non-enabled (tacacs can have you login > already e > nabled) > > # MCOE set auto-enable 1 for routers > set autoenable 1 > > > so in the .cloginrc: > > add user routerIP myuser > add password routerIP myRadiusPasswd > > works great for router! > > > > However, we have a bunch of switches not going through radius at all for > verification (passwd stored locally), in .cloginrc > > add user switchip myuser > add passwd switchip vtypass enablepass > > This won't work with clogin I modified. if you have hostnames that identify device types, eg all switch begin with "s", then you can wildcard them in .cloginrc. eg: set autoenable s* 0 .... set autoenable * 1 # %EOF From mcooper at blueyonder.co.uk Fri Sep 26 04:08:47 2003 From: mcooper at blueyonder.co.uk (Mark Cooper) Date: Fri, 26 Sep 2003 05:08:47 +0100 Subject: Prompt issues on Bay routers. In-Reply-To: <20030920225457.42814.qmail@web11701.mail.yahoo.com> References: <20030920225457.42814.qmail@web11701.mail.yahoo.com> Message-ID: <3F73BBCF.9070201@blueyonder.co.uk> James Kilton wrote: > Sorry for the delay on this, I was out of town. My versions of brancid and blogin are attached. > You should be able to run 'diff' to see what I changed. OK, as I see it ( and please dont take this the wrong way, I'm jut trying to work out what the differences are ) .... [root at dire new]# diff -b blogin blogin.james 441a443 > -re "bcc>" {} 449a452 > -re "bcc>" {} 483c486 < set prompt "#" --- > set prompt {TN} 486c489 < set prompt "$" --- > set prompt ">" You've added a prompt condition check for "bcc>" in the run_commands function. I'm sure blogin should handle the reprompt normally, but thats probably if it already has the prompt using a ">". You've changed the prompt in the enabled ( # to {TN} ) and non-enabled ( $ to > ) states. This seems strange as the Bay's don't have an 'enabled' state? If you could post the session details of a full login to bcc and back out I would appreciate it :) [root at dire new]# diff -b brancid brancid.james 147c147 < next if (/^\# *uptime +\d+\s*$/); --- > next if (/^\# *uptime +-?\d+\s*$/); 188d187 < 'show config' => "ShowConfig", 196d194 < "show config", 235c233 < if ( (/\>\s?logout$/) || $found_end ) { --- > if ( (/>\s?exit$/) || $found_end ) { 245c243 < while (/>\s*($cmds_regexp)\s*$/) { --- > while (/>\s*($cmds_regexp)\s*$/ | /\$\s*($cmds_regexp)\s*$/) { 262a261,263 > if ( (/>\s?exit$/) || $found_end ) { > $clean_run=1; > } 287a289 > You've made a change to the parsing of the uptime section of the config, no problem. You've removed the first "show config" command to just leave the "show config -all", no problem. You've changed the check for the successful end of the session from looking for the "logout" command to looking for an "exit" command. I don't think this is right, as you will be catching the exit from bcc and not fully logging out. Carnt work out line 245 ( it's five am in the morning and I'm very tired ) but it looks like you've added a check for prompts containing "$"?? Could you tell me what piece of bay kit your trying to login to and what the OS version is? I think this all comes down to revision's of OS and the type of kit involved, for example ( taken from the mail archives ):- My original:- Kit: ASN/AN Router OS: ? Login prompt: login: Initial prompt: $ BCC prompt: bcc> Show config: show config pager: more off Fergus Roche:- Kit: Accelar OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: N/A show config: show config verbose pager: config cli more false James Kilton:- Kit: ? OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: bcc> show config: show config -all pager: more off stefmit:- Kit: ? OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: bcc> show config: show config pager: more off If people could fill in the missing blanks for kit/os, that would be helpful :) At the minimum, the login prompt needs fixing! This can be fixed like this:- [root at dire new]# diff -b blogin.orig blogin.new 540c540 < set u_prompt "(Username|login|user name):" --- > set u_prompt "(Username|\[Ll]ogin|user name):" It seems that the initial prompt is always "$" which is what blogin originally expected so I'm not sure why this is giving a problem? Again, copies of a typical full login ( through to bcc ) would be be helpful, as well as the output from the following:- blogin -c 'bcc; show config' routername setenv NOPIPE=YES;brancid -d routername ( post the .raw file left behind ) Hope that all helps :) -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From azheng at monterey.k12.ca.us Fri Sep 26 22:46:55 2003 From: azheng at monterey.k12.ca.us (Alex Zheng) Date: Fri, 26 Sep 2003 15:46:55 -0700 Subject: can not retrieve config. of a cisco 2924XL switch - 'End of run not found' Message-ID: <5.2.1.1.0.20030926153626.00b21b18@mail.monterey.k12.ca.us> I was able to successfully retrieve config. for a bunch of Cisco routers and switches(5000 series), but not for a cisco 2924XL switch: This is the debug output: %cat5rancid -dl 192.168.1.96 executing clogin -t 90 -c"show version;show boot;show flash;dir bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir sup-microcode:;show module;show port ifindex;write term" 192.168.1.96 executing clogin -t 90 -c"show version;show boot;show flash;dir bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir sup-microcode:;show module;show port ifindex;write term" 192.168.1.96 Done : 192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version 192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version 192.168.1.96: End of run not found 192.168.1.96: End of run not found ! I was able to clogin: %clogin 192.168.1.96 192.168.1.96 spawn telnet 192.168.1.96 Trying 192.168.1.96... Connected to 192.168.1.96. Escape character is '^]'. User Access Verification Password: Kerberos: No default realm defined for Kerberos! BLDG(9)IDF(1)>enable Password: BLDG(9)IDF(1)# BLDG(9)IDF(1)# Below is the config file: ! version 12.0 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname BLDG(9)IDF(1) ! enable secret 5 ! ! ! ! ! ! ip subnet-zero ! cluster commander-address 0003.e38c.0780 member 2 name west-campus ! ! interface FastEthernet0/1 description MS09.01 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/2 description MS09.02 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/3 description MS09.03 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/4 description MS09.04 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/5 description MS09.05 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/6 description MS09.06 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/7 description MS09.07 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/8 description MS09.08 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/9 description MS09.09 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/10 description MS09.10 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/11 description MS09.11 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/12 description MS09.12 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/13 description MS09.13 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/14 description MS09.14 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/15 description MS09.15 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/16 description MS09.16 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/17 description blank ! interface FastEthernet0/18 description MS10.01 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/19 description MS10.02 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/20 description MS10.03 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/21 description MS10.04 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/22 description MS10.05 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/23 description MS10.06 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/24 description MS10.07 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet1/1 switchport mode trunk ! interface FastEthernet1/2 switchport mode trunk ! interface FastEthernet1/3 ! interface FastEthernet1/4 ! interface VLAN1 ip address 192.168.1.96 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 192.168.1.1 ! line con 0 password 7 transport input none stopbits 1 line vty 0 4 password 7 login line vty 5 14 password 7 login line vty 15 login ! end From JSahala at fusiontel.com Fri Sep 26 22:52:40 2003 From: JSahala at fusiontel.com (Joshua Sahala) Date: Fri, 26 Sep 2003 18:52:40 -0400 Subject: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Message-ID: a 2924 is a 'router' as far as rancid is concerned - put it in your router.db file /joshua From mt at primats.org.ua Sat Sep 27 16:51:18 2003 From: mt at primats.org.ua (Maxim Tuliuk) Date: Sat, 27 Sep 2003 19:51:18 +0300 Subject: zyxel ies Message-ID: <20030927165118.GA89524@top.net.ua> Hello I'd like to write a module for zyxel (http://www.zyxel.com/product/index.php) devices. Did anyone look a template for writing new modules, or internal documentation? -- Maxim Tuliuk WWW: http://www.primats.org.ua/~mt/ ICQ: 21134222 The bike is absolute freedom of moving From asp at partan.com Sun Sep 28 17:00:51 2003 From: asp at partan.com (Andrew Partan) Date: Sun, 28 Sep 2003 13:00:51 -0400 Subject: zyxel ies In-Reply-To: <20030927165118.GA89524@top.net.ua> References: <20030927165118.GA89524@top.net.ua> Message-ID: <20030928170051.GB60465@partan.com> On Sat, Sep 27, 2003 at 07:51:18PM +0300, Maxim Tuliuk wrote: > Did anyone look a template for writing new modules, or internal documentation? Mostly when looking to support a new device, I grab a copy of bin/rancid.in (the cisco bits) and hack away at it to support the new device. And if bin/clogin.in does not work or it not easily modifiable to add support for the new device, I take a copy of it & hack away to get it to log me in. --asp From kilton9 at yahoo.com Mon Sep 29 13:26:07 2003 From: kilton9 at yahoo.com (James Kilton) Date: Mon, 29 Sep 2003 06:26:07 -0700 (PDT) Subject: Prompt issues on Bay routers. In-Reply-To: <200309180535.09464.stefmit@comcast.net> Message-ID: <20030929132607.79221.qmail@web11701.mail.yahoo.com> Mark Cooper wrote: > OK, as I see it ( and please dont take this the wrong way, > I'm jut trying to work out what the differences are ) .... Heh, not to worry. I'm by no means a programmer and hacked around with the Rancid code until I finally stumbled upon something that worked. Nothing will hurt my feelings here. ;-) > [root at dire new]# diff -b blogin blogin.james > 441a443 > > -re "bcc>" {} > 449a452 > > -re "bcc>" {} > 483c486 > < set prompt "#" > --- > > set prompt {TN} > 486c489 > < set prompt "$" > --- > > set prompt ">" > > You've added a prompt condition check for "bcc>" in the > run_commands function. I'm sure blogin should handle the > reprompt normally, but thats probably if it already has > the prompt using a ">". The primary issue to my untrained eye seemed to be the change of prompt when going from the TI interface to BCC. So most of the time I spent on this was spent trying to figure out how to get the scripts to first recognize the TI prompt, then change to the BCC prompt after running the 'bcc' command. > You've changed the prompt in the enabled ( # to {TN} ) > and non-enabled ( $ to > ) states. This seems strange as > the Bay's don't have an 'enabled' state? Some of my changes likely aren't necessary - I kept trying things until I had success and didn't go back afterwards to determine for sure what changes were and weren't necessary. The change to '{TN}' above is necessary in my versions though - if I replace it with something else, blogin never executes the initial 'bcc' command. But the change from '$' to '>' may not be - I changed it back and was still able to login and run commands. > If you could post the session details of a full login to bcc > and back out I would appreciate it :) Sure thing: ------------------------------------------------------ [rancid at syslog bin]$ ./blogin -c "bcc;show system memory;exit" 10.0.0.1 10.0.0.1 spawn telnet 10.0.0.1 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is '^]'. Nortel Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002. All rights reserved. Login: Password: Welcome to the Backbone Technician Interface Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: [1:TN]$ more off More Mode: OFF Lines per screen: 44 [1:TN]$ bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> show system memory show system memory Sep 29, 2003 12:29:41 [GMT] Memory Usage Statistics (Megabytes): ------------------------------------ Slot Total Used Free %Free ---- -------- -------- -------- ------- 1 21.09 M 6.63 M 14.46 M 68% bcc> exit [1:TN]$ logout TI session logged out. ** Goodbye. ** Connection closed by foreign host. ------------------------------------------------------ > [root at dire new]# diff -b brancid brancid.james > 147c147 > < next if (/^\# *uptime +\d+\s*$/); > --- > > next if (/^\# *uptime +-?\d+\s*$/); > 188d187 > < 'show config' => "ShowConfig", > 196d194 > < "show config", > 235c233 > < if ( (/\>\s?logout$/) || $found_end ) { > --- > > if ( (/>\s?exit$/) || $found_end ) { > 245c243 > < while (/>\s*($cmds_regexp)\s*$/) { > --- > > while (/>\s*($cmds_regexp)\s*$/ | /\$\s*($cmds_regexp)\s*$/) { > 262a261,263 > > if ( (/>\s?exit$/) || $found_end ) { > > $clean_run=1; > > } > 287a289 > > You've made a change to the parsing of the uptime section of > the config, no problem. Yes, this was to combat a BCC bug where the uptime value is sometimes a negative number. > You've removed the first "show config" command to just leave > the "show config -all", no problem. 'show config' shows the first few lines or so of 'show config -all' (the software build date, SNMP contact info, and uptime), so the latter command is the only one I was interested in. > You've changed the check for the successful end of the session from > looking for the "logout" command to looking for an "exit" command. > I don't think this is right, as you will be catching the exit from > bcc and not fully logging out. This was another thing that I had trouble with and had to work around in an ugly fashion. Once the prompt issues were resolved I was successfully logging in, running commands, and logging out, but the script still wasn't detecting the end of session properly and was hence giving an error. It turns out that a simple 'logout' from BCC will log you out of the router (i.e., no need to do 'exit' first), so it might be the case that the 'end of session' code would work as is when 'logout' is run in of itself. I haven't tried it, though. > Carnt work out line 245 ( it's five am in the morning and I'm very > tired ) but it looks like you've added a check for prompts containing > "$"?? Yep and this was a required change. Otherwise I get "missed cmd(s): bcc". My guess was/is that the original code never enters the 'while' loop when 'bcc' is run because it is run from the TI prompt which ends in '$'. > Could you tell me what piece of bay kit your trying to login to and > what the OS version is? I'm primarily using ARN routers running code version 14.0 and 15.2. > At the minimum, the login prompt needs fixing! This can be fixed > like this:- My versions actually work without this change. Don't know how though. ;-) > It seems that the initial prompt is always "$" which is what blogin > originally expected so I'm not sure why this is giving a problem? The problem for me was the prompt change upon execution of the 'bcc' command. I was originally going to try to have the code treat the 'bcc' command like the 'enable' command and work from there (because the code as is expects a prompt change there), but I ended up going the ugly route instead. > Again, copies of a typical full login ( through to bcc ) would be be > helpful, as well as the output from the following:- > > blogin -c 'bcc; show config' routername Posted above, though I ran "show system memory" instead to avoid having to post a long config. > setenv NOPIPE=YES;brancid -d routername ( post the .raw file left behind ) Here's the .raw file, but again with a shorter command: -------------------------------------------------------- [rancid at syslog ~/bin]$ cat 10.0.0.1.raw 10.0.0.1 spawn telnet 10.0.0.1 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is '^]'. Nortel Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002. All rights reserved. Login: Password: Welcome to the Backbone Technician Interface Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: [1:TN]$ more off More Mode: OFF Lines per screen: 44 [1:TN]$ bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> show system memory show system memory Sep 29, 2003 13:03:04 [GMT] Memory Usage Statistics (Megabytes): ------------------------------------ Slot Total Used Free %Free ---- -------- -------- -------- ------- 1 21.09 M 6.64 M 14.44 M 68% bcc> exit [1:TN]$ logout TI session logged out. ** Goodbye. ** Connection closed by foreign host. -------------------------------------------------------- > Hope that all helps :) By all means, let me know if you need anything else. I'm happy to help. From kilton9 at yahoo.com Mon Sep 29 14:00:06 2003 From: kilton9 at yahoo.com (James Kilton) Date: Mon, 29 Sep 2003 07:00:06 -0700 (PDT) Subject: Prompt issues on Bay routers. In-Reply-To: <20030929132607.79221.qmail@web11701.mail.yahoo.com> Message-ID: <20030929140006.84374.qmail@web11701.mail.yahoo.com> --- James Kilton wrote: > > At the minimum, the login prompt needs fixing! This can be fixed > > like this:- > > My versions actually work without this change. Don't know how though. > ;-) I now see that I made changes in .cloginrc which I think are responsible for this: add userprompt * {Login:} From heas at shrubbery.net Mon Sep 29 19:59:36 2003 From: heas at shrubbery.net (john heasley) Date: Mon, 29 Sep 2003 12:59:36 -0700 Subject: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' In-Reply-To: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> Message-ID: <20030929195936.GM16568@shrubbery.net> Fri, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > > >Date: Fri, 26 Sep 2003 15:59:29 -0700 > >To: Joshua Sahala > >From: Alex Zheng > >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r > >un not found' > > > >below is the output of 'rancid' ( I modified router.db as well: > >192.168.1.96:cisco:up) > >HIT COMMAND:BLDG(9)IDF(1)#show version > > In ShowVersion: BLDG(9)IDF(1)#show version > >TYPE = 2900XL please send the file 192.168.1.96.raw from NOPIPE=YES;export NOPIPE rancid -d 192.168.1.96 and include what versions of rancid, expect and o/s are being used. From azheng at monterey.k12.ca.us Mon Sep 29 20:21:40 2003 From: azheng at monterey.k12.ca.us (Alex Zheng) Date: Mon, 29 Sep 2003 13:21:40 -0700 Subject: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' In-Reply-To: <20030929195936.GM16568@shrubbery.net> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> Message-ID: <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> Figured out why. The script will break if the host name contain '(' or ')'. At 12:59 PM 9/29/2003 -0700, john heasley wrote: >Fri, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > > > > >Date: Fri, 26 Sep 2003 15:59:29 -0700 > > >To: Joshua Sahala > > >From: Alex Zheng > > >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End > of r > > >un not found' > > > > > >below is the output of 'rancid' ( I modified router.db as well: > > >192.168.1.96:cisco:up) > > > >HIT COMMAND:BLDG(9)IDF(1)#show version > > > In ShowVersion: BLDG(9)IDF(1)#show version > > >TYPE = 2900XL > >please send the file 192.168.1.96.raw from > NOPIPE=YES;export NOPIPE > rancid -d 192.168.1.96 > >and include what versions of rancid, expect and o/s are being used. From heas at shrubbery.net Mon Sep 29 20:23:55 2003 From: heas at shrubbery.net (john heasley) Date: Mon, 29 Sep 2003 13:23:55 -0700 Subject: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' In-Reply-To: <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> Message-ID: <20030929202355.GP16568@shrubbery.net> ok. What version of rancid? Mon, Sep 29, 2003 at 01:21:40PM -0700, Alex Zheng: > Figured out why. The script will break if the host name contain '(' or ')'. > > > > > At 12:59 PM 9/29/2003 -0700, john heasley wrote: > >Fri, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > >> > >> >Date: Fri, 26 Sep 2003 15:59:29 -0700 > >> >To: Joshua Sahala > >> >From: Alex Zheng > >> >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End > >of r > >> >un not found' > >> > > >> >below is the output of 'rancid' ( I modified router.db as well: > >> >192.168.1.96:cisco:up) > > > >> >HIT COMMAND:BLDG(9)IDF(1)#show version > >> > In ShowVersion: BLDG(9)IDF(1)#show version > >> >TYPE = 2900XL > > > >please send the file 192.168.1.96.raw from > > NOPIPE=YES;export NOPIPE > > rancid -d 192.168.1.96 > > > >and include what versions of rancid, expect and o/s are being used.