From rmordasiewicz at samuelmanutech.com Tue Jan 2 15:07:04 2007 From: rmordasiewicz at samuelmanutech.com (Robin Mordasiewicz) Date: Tue, 2 Jan 2007 10:07:04 -0500 (EST) Subject: [rancid] unsaved configs Message-ID: Is there already an existing function withing rancid to report the difference between the running config and the startup config. I know that the file size of the startup config changes, but I was more hoping to see something like a diff between the running config and the startup config if there was a difference. -- From heas at shrubbery.net Tue Jan 2 20:12:07 2007 From: heas at shrubbery.net (john heasley) Date: Tue, 2 Jan 2007 12:12:07 -0800 Subject: [rancid] Re: unsaved configs In-Reply-To: References: Message-ID: <20070102201207.GE15180@shrubbery.net> Tue, Jan 02, 2007 at 10:07:04AM -0500, Robin Mordasiewicz: > Is there already an existing function withing rancid to report the > difference between the running config and the startup config. > > I know that the file size of the startup config changes, but I was more > hoping to see something like a diff between the running config and the > startup config if there was a difference. no, there is no such facility. You may not have the same concern, but others who use the running config as canonical have written scripts to periodically save the running config. for rtr in list ; clogin -c 'write mem' ... From joe.provo at rcn.com Tue Jan 2 23:46:43 2007 From: joe.provo at rcn.com (Joe Provo) Date: Tue, 2 Jan 2007 18:46:43 -0500 Subject: [rancid] Re: unsaved configs In-Reply-To: ; from rmordasiewicz@samuelmanutech.com on Tue, Jan 02, 2007 at 10:07:04AM -0500 References: Message-ID: <20070102184643.A30402@noc.ultra.net> On Tue, Jan 02, 2007 at 10:07:04AM -0500, Robin Mordasiewicz wrote: > Is there already an existing function withing rancid to report the > difference between the running config and the startup config. > > I know that the file size of the startup config changes, but I was more > hoping to see something like a diff between the running config and the > startup config if there was a difference. By whatever facility you're using to make changes, it would be good to commit your changes as part of the execution. Otherwise, you will lose your [provisioning, standards updates, traffic engineering, etc] on a system disruption. -- Joe Provo Voice 617.670.2904 Senior Manager, Internet Planning & Design Fax 617.670.2920 Network Engineering, RCN From rmordasiewicz at samuelmanutech.com Wed Jan 3 20:04:00 2007 From: rmordasiewicz at samuelmanutech.com (Robin Mordasiewicz) Date: Wed, 3 Jan 2007 15:04:00 -0500 (EST) Subject: [rancid] brocade switch Message-ID: Is it possible to gather brocade switch configs using rancid ? -- From AElliott at xo.com Wed Jan 3 21:00:31 2007 From: AElliott at xo.com (Elliott, Andrew) Date: Wed, 3 Jan 2007 16:00:31 -0500 Subject: [rancid] RANCID on Sonus GSX or Nortel CVX? Message-ID: <3B715C4683E2F54DBC36ECDD2CA70F5301F14048@VARESTMAIL03.mail.inthosts.net> I searched the archives, but was not able to find any discussions about backing up Sonus GSX or Nortel CVX equipment using RANCID. Has anyone attempted either of these or been successful? --- (o< Andrew Elliott desk: 989.907.2155 //\ Tier II Data cell: 989.213.5794 V_/_ XO Communications -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From karl.vollmer at oregonstate.edu Wed Jan 3 21:04:46 2007 From: karl.vollmer at oregonstate.edu (Karl Vollmer) Date: Wed, 03 Jan 2007 13:04:46 -0800 Subject: [rancid] Rancid on HP Procurve 4000's Message-ID: <459C1A6E.4040106@oregonstate.edu> I just recently setup RANCID to do backups of all of our HP switches and for the most part it works wonderfully. There are some minor issues with the Alpha (to be expected) when using SVN (it does a single commit per config file, rather then a single large commit.. Anyway, almost all of our Switches worked perfectly, however the Procurve 4000's all failed. In goggling/reading the archives I found a reference that stated the failure is caused by the fact that they instantly go to the menu, however there was no stated solution (This was a conversation from 2003). Has anyone delt with the Procurve 4000's + RANCID and if so is there a solution? Thanks, -Karl Vollmer ResNet, University Housing and Dining Oregon State University E-mail: karl.vollmer at oregonstate.edu IRC: irc.freenode.net #osu-resnet From heas at shrubbery.net Wed Jan 3 21:14:52 2007 From: heas at shrubbery.net (john heasley) Date: Wed, 3 Jan 2007 13:14:52 -0800 Subject: [rancid] Re: Rancid on HP Procurve 4000's In-Reply-To: <459C1A6E.4040106@oregonstate.edu> References: <459C1A6E.4040106@oregonstate.edu> Message-ID: <20070103211452.GF7352@shrubbery.net> Wed, Jan 03, 2007 at 01:04:46PM -0800, Karl Vollmer: > I just recently setup RANCID to do backups of all of our HP switches and > for the most part it works wonderfully. There are some minor issues with > the Alpha (to be expected) when using SVN (it does a single commit per > config file, rather then a single large commit.. er, really? addition/deletion of files are singular, but the commit is done on the configs directory in one go, unless the -r option is used. > Anyway, almost all of our Switches worked perfectly, however the > Procurve 4000's all failed. In goggling/reading the archives I found a > reference that stated the failure is caused by the fact that they > instantly go to the menu, however there was no stated solution (This was > a conversation from 2003). Has anyone delt with the Procurve 4000's + > RANCID and if so is there a solution? An example of the failure? clogin -c 'show version' From alitzinger at visto.com Wed Jan 3 21:19:40 2007 From: alitzinger at visto.com (Andy Litzinger) Date: Wed, 3 Jan 2007 13:19:40 -0800 Subject: [rancid] Netscaler support Message-ID: On Tue Dec 5th, John A Kilpatrick wrote: > Just out of curiosity has anyone got rancid working with version 6.1 or > later of the Netscaler software? I'm having a similar problem to others > in that it just hangs - not seeing the prompt it wants I guess. > I'm wondering what previous versions of the software were like - if it > dumped you into the FreeBSD shell (and that's what rancid is looking for) > then sending the command "shell" after login would fix that. But if > anyone has any other ideas I'd love to hear them. > Thanks, > John I just got rancid working with Netscaler 6.1 build 96. The previous nslogin and nsrancid scripts were coded for direct login to the BSD shell. In 6.1 Netscaler got rid of the ability to log directly into the shell. 6.1 also contains a new feature that allows a non-privileged CLI user to be defined. Further, you can restrict what commands this user is allowed to run. For example, it is now possible to create a user who can login to the CLI and only issue the "show ns ns.conf" command which is enough for rancid. I've adjusted the scripts to rely on a CLI user that has access to the CLI "sh ns ns.conf" command. I'm not sure the best way to submit this code. I'm not a programmer by nature so I'm sure I've broken all kinds of conventions, but I have tried to comment what I changed. In general there were not many changes to make, mostly some prompt issues and I cleaned out some unused and previously commented code bit. The changes are NOT compatible with the NS 5.2 release so I'm not sure the scripts should even be put in the main branch. For now, I'm happy to email my copies to anyone that might find them useful. Thanks, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070103/9c2d121b/attachment.html From eravin at panix.com Wed Jan 3 21:31:19 2007 From: eravin at panix.com (Ed Ravin) Date: Wed, 3 Jan 2007 16:31:19 -0500 Subject: [rancid] Re: Rancid on HP Procurve 4000's In-Reply-To: <459C1A6E.4040106@oregonstate.edu> References: <459C1A6E.4040106@oregonstate.edu> Message-ID: <20070103213119.GA12146@panix.com> On Wed, Jan 03, 2007 at 01:04:46PM -0800, Karl Vollmer wrote: > I just recently setup RANCID to do backups of all of our HP switches [...] > Anyway, almost all of our Switches worked perfectly, however the > Procurve 4000's all failed. In goggling/reading the archives I found a > reference that stated the failure is caused by the fact that they > instantly go to the menu, however there was no stated solution (This was > a conversation from 2003). Has anyone delt with the Procurve 4000's + > RANCID and if so is there a solution? Yes, I released patches back in July 2005. It's in use at several places, including my shop. Unfortunately, the patches have not yet been integrated into the RANCID distribution. Installation instructions and tarball attached. Please let me know if they work for you. -------------- next part -------------- -- Ed Installation instructions for HP4000m/8000m/2424m support in RANCID ------------------------------- 1) Install these two Perl modules from CPAN onto your RANCID host: Expect Regexp::Shellish The Expect module requires the IO::TTY and maybe one more, I forget, check the docs when you download it, or let the CPAN scripts handle it. 2) Untar the attached archive into your rancid directory. Be sure to preserve the directory structure for the Rancid/ subdirectory: rancid-fe (replaces an existing RANCID script, the rest are new) hp4000m.rancid hp4000m.clogin cloginrc2pl.exp Rancid/ParseConfig.pm Rancid/Login.pm 3) Add these lines to your rancid.conf: # Where to find the rancid Perl modules PERLLIB=/usr/local/libexec/rancid/ export PERLLIB Except instead of "/usr/local/libexec/rancid", use the path of your RANCID directory. 4) You'll need to modify line 1 of hp4000m.rancid, hp4000m.clogin, and rancid-fe to point to your Perl interpreter. 5) You'll also need to modify line 1 of cloginrc2pl.exp to point to your Expect interpreter. 6) Before adding an hp4000m device to routers.db, you should be able to run these tests successfully: $ . /etc/rancid.conf # read in PERLLIB env var $ ./hp4000m.clogin -c 'show modules' myhp4000 Procurve# show modules Slot Module Type Module Description ---- --------------- --------------------------------------------- A 10/100TX HP J4111A 8-port 10/100Base-TX module B 10/100TX HP J4111A 8-port 10/100Base-TX module C 10/100TX HP J4111A 8-port 10/100Base-TX module D Slot Available E Slot Available F Slot Available G Slot Available H Slot Available I 10/100TX HP J4111A 8-port 10/100Base-TX module J 10/100TX HP J4111A 8-port 10/100Base-TX module Procurve# Procurve# exit $ ./hp4000m.rancid myhp4000 head -10 myhp4000.new ;RANCID-CONTENT-TYPE: hp-procurve-hp4000m ; ;Chassis type: J4121A ;Serial Number: SG12345678 ;Base MAC Addr: 0001e7-000102 ;Memory: 7,350,656 ; ;Image: Firmware C.09.22 ;Image: ROM C.06.01 ; ------------------------------- The hp4000m.login script can use S/Key logins if the "otphelper" script is in the $PATH. "otphelper" can be pulled out of the S/Key patches that were submitted to the RANCID list on December 7, 2005. hp4000m.login is written in Perl rather than Expect, so it needs the Expect.pm and IO-Tty modules from CPAN. -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid.hp4000m.tar.gz Type: application/x-tar-gz Size: 11454 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070103/0630961d/attachment.bin From brian_fitzpatrick at commander.com Fri Jan 5 01:06:55 2007 From: brian_fitzpatrick at commander.com (Brian Fitzpatrick) Date: Fri, 5 Jan 2007 11:06:55 +1000 Subject: [rancid] Re: Netscaler support In-Reply-To: Message-ID: Andy, I would like to get a copy of the scripts for the Newer NetScaler as we are running one here and would like to configure my rancid box to capture the conf. I would greatly appreciate it of you could send them to me. Regards Brian Fitzpatrick Senior Systems Consultant Commander Communications Brian_Fitzpatrick at commander.com ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Andy Litzinger Sent: Thursday, 4 January 2007 7:20 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Netscaler support On Tue Dec 5th, John A Kilpatrick wrote: > Just out of curiosity has anyone got rancid working with version 6.1 or > later of the Netscaler software? I'm having a similar problem to others > in that it just hangs - not seeing the prompt it wants I guess. > I'm wondering what previous versions of the software were like - if it > dumped you into the FreeBSD shell (and that's what rancid is looking for) > then sending the command "shell" after login would fix that. But if > anyone has any other ideas I'd love to hear them. > Thanks, > John I just got rancid working with Netscaler 6.1 build 96. The previous nslogin and nsrancid scripts were coded for direct login to the BSD shell. In 6.1 Netscaler got rid of the ability to log directly into the shell. 6.1 also contains a new feature that allows a non-privileged CLI user to be defined. Further, you can restrict what commands this user is allowed to run. For example, it is now possible to create a user who can login to the CLI and only issue the "show ns ns.conf" command which is enough for rancid. I've adjusted the scripts to rely on a CLI user that has access to the CLI "sh ns ns.conf" command. I'm not sure the best way to submit this code. I'm not a programmer by nature so I'm sure I've broken all kinds of conventions, but I have tried to comment what I changed. In general there were not many changes to make, mostly some prompt issues and I cleaned out some unused and previously commented code bit. The changes are NOT compatible with the NS 5.2 release so I'm not sure the scripts should even be put in the main branch. For now, I'm happy to email my copies to anyone that might find them useful. Thanks, Andy ---------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ---------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070105/da631b0b/attachment.html From terry at tmk.com Fri Jan 5 02:05:10 2007 From: terry at tmk.com (Terry Kennedy) Date: Thu, 04 Jan 2007 21:05:10 -0500 (EST) Subject: [rancid] Re: Dell switch support In-Reply-To: "Your message dated Thu, 28 Dec 2006 09:45:08 -0500" Message-ID: <01MBJN5MXU920000FS@tmk.com> > Anyone interested in a bounty for adding Dell switch support to Rancid? I > have several specific models that I need support for and would be willing to > make it worth someone's time. How about $750 for implementing support for a > few different models (I'll give specific model #'s)? Of course any patches > implemented can go back out into the main branch of code as well. Please let > me know ASAP if you are interested. Thanks! Almost all of the commodity switches that have a "Cisco-like" command inter- face use software from a company called LVL7. That includes the Dell ones, Net- gear, etc. It should be possible to support all of them with this type of module. Terry Kennedy http://www.tmk.com terry at tmk.com New York, NY USA From Johan.Bergstrom at tietoenator.com Fri Jan 5 12:36:26 2007 From: Johan.Bergstrom at tietoenator.com (Johan =?ISO-8859-1?Q?Bergstr=F6m?=) Date: Fri, 05 Jan 2007 13:36:26 +0100 Subject: [rancid] Exclude known changes Message-ID: <1168000586.3466.7.camel@satyr.eu.tieto.com> Is there any possibility to exclude known changes so they aren't imported into the CVS? For example, I have a switch that during daytime have one vlan on them, and during evenings and night we change it using crancid to another vlan. And since I run my cfg collector twice a day, 01:00 and 13:00 I keep getting the known change in my reports and as a cvs import. I'd like the exclude this known change, but if anything else changes on the switch I'd like to know about it, is this possible? Johan From Anton.Schweitzer at o2.com Fri Jan 5 13:51:38 2007 From: Anton.Schweitzer at o2.com (Anton.Schweitzer at o2.com) Date: Fri, 5 Jan 2007 14:51:38 +0100 Subject: [rancid] Access Devices through Terminalserver Message-ID: Hi All, is there any chance to get RANCID working when the only access for the device ist possible through a Cisco Terminalserver ? Cheers Anton Anton Schweitzer CNO IP Backoffice o2 (Germany) GmbH & Co.OHG Georg Brauchle-Ring 23-25, D-80992 M?nchen Tel +49(0)89-2442-5794 Mobil +49(0)176-23407715 Fax +49(0)89-2442-5632 anton.schweitzer at o2.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070105/33fcce6d/attachment.html From cstave at gmail.com Fri Jan 5 14:41:19 2007 From: cstave at gmail.com (Chris Stave) Date: Fri, 5 Jan 2007 09:41:19 -0500 Subject: [rancid] Re: Exclude known changes In-Reply-To: <1168000586.3466.7.camel@satyr.eu.tieto.com> References: <1168000586.3466.7.camel@satyr.eu.tieto.com> Message-ID: <5471c93d0701050641m7173f170q789fc9c1788c8060@mail.gmail.com> The easiest thing I can think of would be to make an AM group and a PM group, which would result in any changes being reported twice, but not the vlan switchover, which would always be consistent for each group. Chris On 1/5/07, Johan Bergstr?m wrote: > > Is there any possibility to exclude known changes so they aren't > imported into the CVS? > > For example, I have a switch that during daytime have one vlan on them, > and during evenings and night we change it using crancid to another > vlan. And since I run my cfg collector twice a day, 01:00 and 13:00 I > keep getting the known change in my reports and as a cvs import. > > I'd like the exclude this known change, but if anything else changes on > the switch I'd like to know about it, is this possible? > > Johan > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070105/27d3d32b/attachment.html From eravin at panix.com Fri Jan 5 16:00:07 2007 From: eravin at panix.com (Ed Ravin) Date: Fri, 5 Jan 2007 11:00:07 -0500 Subject: [rancid] Re: Access Devices through Terminalserver In-Reply-To: References: Message-ID: <20070105160007.GE14849@panix.com> On Fri, Jan 05, 2007 at 02:51:38PM +0100, Anton.Schweitzer at o2.com wrote: > is there any chance to get RANCID working when the only access for the > device ist possible through a Cisco Terminalserver ? Yes, see the discussion in the RANCID list archive, under "out of band" access. You'll need these patches: http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html And a few minutes to tinker with the config file to get it to work with your situation. From justin.shore at sktbcs.com Mon Jan 8 04:38:55 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Sun, 7 Jan 2007 22:38:55 -0600 Subject: [rancid] RANCID is confused Message-ID: <4CBACF4FA9CE1046907D5132920D794D018C2DD8@clw1.SKT.ICT> ...and so am I. I made a number of RANCID changes today primarily revolving around replacing machines I previously addressed by IP with hosts file entries. This of course required me to change the name of the target hosts. I used the info I found in this thread: http://www.shrubbery.net/pipermail/rancid-discuss/2002-May/000213.html I also cleaned up my numerous router.db files (removing commented out lines, the old lines referencing hosts by IP that I'd replaced with the FQDN, etc). I also ordered the contents of the files to be easier to read (numeric order by hostname). Finally I also removed some old groups from $LIST_OF_GROUPS and commented out those lines in my .cloginrc. Basically it was a lot of cleanup work. Now every time RANCID runs it emails me a config diff for one of my router.db files; it retrieves and diffs the same revision every time it emails me. For another one of my groups it does the same thing plus it repeatedly diffs the current and most recent revision (same one every time) of 2 of the hosts that I changed from IP to FQDN. Looking in the logs I see these over and over again: cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/2821-1.domain.tld' cvs commit: Up-to-date check failed for `configs/2821-2.domain.tld' cvs [commit aborted]: correct above errors first! Obviously CVS thinks there's a problem. I don't know how to fix it though. I only see this output for hosts that I changed from IP to FQDN. RANCID is correctly pulling down the data and storing it in the new config file(s) for the FQDN host(s). Was there a step not listed in the email thread I referred to above? I copied the ,v of the old IP to the new FQDN. I added the missing line to the router.db file. I changed the .cloginrc to use the FQDN instead of the IP. After running rancid-run on the changed group I removed the reference to the IP from the corresponding router.db. Any ideas what I'm missing? Google is indicating that I need to manually update my files. I don't know how to do that. The whole point of renaming from IP to FQDN was so that I could maintain my CVS history for those hosts. Thanks Justin From tex at off.org Mon Jan 8 04:57:21 2007 From: tex at off.org (Austin Schutz) Date: Sun, 7 Jan 2007 20:57:21 -0800 Subject: [rancid] Re: RANCID is confused In-Reply-To: <4CBACF4FA9CE1046907D5132920D794D018C2DD8@clw1.SKT.ICT> References: <4CBACF4FA9CE1046907D5132920D794D018C2DD8@clw1.SKT.ICT> Message-ID: <20070108045717.GA15152@gblx.net> > cvs commit: Up-to-date check failed for `configs/2821-1.domain.tld' > cvs commit: Up-to-date check failed for `configs/2821-2.domain.tld' > cvs [commit aborted]: correct above errors first! > > Obviously CVS thinks there's a problem. I don't know how to fix it > though. rm cvs up -A cvs will now be up to date with whatever the latest revision is from the repository and rancid will be able to use it happily. Austin From mloveley at plus.net Mon Jan 8 11:32:40 2007 From: mloveley at plus.net (Mark Loveley) Date: Mon, 8 Jan 2007 11:32:40 +0000 Subject: [rancid] Jerancid fails on E320 or 7.3 JunOSe code Message-ID: Hi jerancid fails when running against an Juniper E320 or 7.3 JunOSe code. The first issue seems to be due to the ShowEnv subroutine at the line return(-1) if (/auto-sync enabled/ && !/in sync/); On a ERX-1440 running 6.1 code the relevant output of "show env all" is:- ---start output--- srp redundancy: mode is file-system-synchronization auto- sync enabled, switch-on-error enabled in sync slots: ok ---end output -- So that line never matches due to the auto-sync and enabled lines being on different lines, and so rancid continues fine. On a E320 running 7.3 code the relevant output of "show env all" is:- ---start output--- srp redundancy: mode is high-availability, state active auto-sync enabled, switch-on-error enabled in sync slots: ok ---end output -- And so the auto-sync enabled matches but in sync is on a different line so it fails. Any ideas on a quick and easy fix for that? for now I have commented the check in ShowEnv The 2nd issue seems to be that juniper have changed the output for the dir command so that the active/standby text now has a capital A in active. ---start output--- #dir Active/standby file systems are synchronized. ---end output -- Changing the /active\/standby/ regex to be case insensitive fixes this, ie return(-1) if (/active\/standby/i && /not sync/); Thanks -- | Mark Loveley Broadband Solutions for | Network Engineer Home & Business @ | PlusNet plc. www.plus.net + ----- PlusNet - The smarter way to broadband ------ From DylanV at semaphore.com Wed Jan 10 21:00:26 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Wed, 10 Jan 2007 13:00:26 -0800 Subject: [rancid] Vlans getting toggled on Cisco 6500 Message-ID: I've been seeing a lot of this lately: !VLAN: VLAN Name Status Ports !VLAN: ---- -------------------------------- --------- ------------------------------- - !VLAN: 1 default active Fa9/5, Fa9/16, Fa9/20, Fa9/39, Fa9/40, Fa9/41, Fa9/42, Fa9/43, Fa9/45 + !VLAN: 1 default active Fa9/5, Fa9/16, Fa9/20, Fa9/39 + !VLAN: Fa9/40, Fa9/41, Fa9/42, Fa9/43 + !VLAN: Fa9/45 And a day later, it'll change back to all be on a single line. I vaguely recall seeing something like this on the list before, but I don't remember if there was a resolution and I can't find it now. Anybody have any idea how to prevent this? (Running rancid 2.3.2a6) Thanks, Dylan From DylanV at semaphore.com Wed Jan 10 21:01:44 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Wed, 10 Jan 2007 13:01:44 -0800 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: Hm, closer inspection shows its not limited to the 6500s, its happening on almost all my Cisco devices. -D > -----Original Message----- > From: Dylan Vanderhoof > Sent: Wednesday, January 10, 2007 1:00 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Vlans getting toggled on Cisco 6500 > > > I've been seeing a lot of this lately: > > !VLAN: VLAN Name Status Ports > !VLAN: ---- -------------------------------- --------- > ------------------------------- > - !VLAN: 1 default active > Fa9/5, Fa9/16, > Fa9/20, Fa9/39, Fa9/40, Fa9/41, Fa9/42, Fa9/43, Fa9/45 > + !VLAN: 1 default active > Fa9/5, Fa9/16, > Fa9/20, Fa9/39 > + !VLAN: > Fa9/40, Fa9/41, > Fa9/42, Fa9/43 > + !VLAN: Fa9/45 > > And a day later, it'll change back to all be on a single line. > > I vaguely recall seeing something like this on the list before, but I > don't remember if there was a resolution and I can't find it now. > Anybody have any idea how to prevent this? > > (Running rancid 2.3.2a6) > > Thanks, > Dylan > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From terry at tmk.com Wed Jan 10 21:29:35 2007 From: terry at tmk.com (Terry Kennedy) Date: Wed, 10 Jan 2007 16:29:35 -0500 (EST) Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 In-Reply-To: "Your message dated Wed, 10 Jan 2007 13:00:26 -0800" Message-ID: <01MBRR9DY03C00071Z@tmk.com> > I vaguely recall seeing something like this on the list before, but I > don't remember if there was a resolution and I can't find it now. > Anybody have any idea how to prevent this? Here's my original post on the subject: -------- From: IN%"terry at tmk.com" 6-APR-2004 10:18:34.47 To: IN%"dcorbe at resultstel.com" CC: IN%"rancid-discuss at shrubbery.net" Subj: Re: [Fwd: [netops] switches router config diffs] > I'm getting a lot of these on my Cisco Catalyst 2950 during every single > rancid-run update. These are worthless diffs as there aren't any > changes in configuration but changes in port status. I know this one 8-) I bet you have people accessing the switches with different terminal width settings in their terminal programs. The VTY picks this up as part of telnet option negotiations. Since RANCID is a non-interactive session to the switch, it doesn't negotiate width. Try this patch for clogin (you'll probably need to apply it manually): *** clogin_orig Fri Aug 9 16:54:10 2002 --- clogin Sun Apr 6 19:20:42 2003 *************** *** 455,460 **** --- 455,462 ---- send "set length 0\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } regsub -all "\[)(]" $prompt {\\&} reprompt # match cisco config mode prompts too, but not for catalyst ie: (enable) *************** *** 699,704 **** --- 701,708 ---- send "set logging session disable\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } expect -re $prompt {} source $sfile Terry Kennedy http://www.tmk.com terry at tmk.com New York, NY USA -------- From DylanV at semaphore.com Wed Jan 10 21:29:28 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Wed, 10 Jan 2007 13:29:28 -0800 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: Perfect! That did the trick! Thanks a lot. -Dylan > -----Original Message----- > From: Terry Kennedy [mailto:terry at tmk.com] > Sent: Wednesday, January 10, 2007 1:30 PM > To: Dylan Vanderhoof > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Vlans getting toggled on Cisco 6500 > > > > I vaguely recall seeing something like this on the list > before, but I > > don't remember if there was a resolution and I can't find it now. > > Anybody have any idea how to prevent this? > > Here's my original post on the subject: > > -------- > From: IN%"terry at tmk.com" 6-APR-2004 10:18:34.47 > To: IN%"dcorbe at resultstel.com" > CC: IN%"rancid-discuss at shrubbery.net" > Subj: Re: [Fwd: [netops] switches router config diffs] > > > I'm getting a lot of these on my Cisco Catalyst 2950 during > every single > > rancid-run update. These are worthless diffs as there aren't any > > changes in configuration but changes in port status. > > I know this one 8-) > > I bet you have people accessing the switches with different > terminal > width settings in their terminal programs. The VTY picks this > up as part > of telnet option negotiations. Since RANCID is a > non-interactive session > to the switch, it doesn't negotiate width. > > Try this patch for clogin (you'll probably need to apply it > manually): > > *** clogin_orig Fri Aug 9 16:54:10 2002 > --- clogin Sun Apr 6 19:20:42 2003 > *************** > *** 455,460 **** > --- 455,462 ---- > send "set length 0\r" > } else { > send "term length 0\r" > + expect -re $prompt {} > + send "term width 80\r" > } > regsub -all "\[)(]" $prompt {\\&} reprompt > # match cisco config mode prompts too, but not for > catalyst ie: (enable) > *************** > *** 699,704 **** > --- 701,708 ---- > send "set logging session disable\r" > } else { > send "term length 0\r" > + expect -re $prompt {} > + send "term width 80\r" > } > expect -re $prompt {} > source $sfile > > Terry Kennedy http://www.tmk.com > terry at tmk.com New York, NY USA > -------- > From laker_netman at yahoo.com Wed Jan 10 21:41:58 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Wed, 10 Jan 2007 13:41:58 -0800 (PST) Subject: [rancid] Cisco 1900 configuration retrieval issue Message-ID: <599441.37042.qm@web50503.mail.yahoo.com> Hello. I am having trouble retrieving the configuration from a Cisco (Catalyst) 1900 switch. After reviewing the archives, I found and read a thread from 3/24/06 which details the issue I appear to be experiencing. I could not find a follow-up detailing a fix or workaround. I am running RANCID 2.3.2a3, Expect 5.43.0 on Fedora Core 4 Linux. I have included the output from "expect -d /path/to/clogin -c 'show running' hostname > log 2>&1" below. Suggestions? Thanks, Laker expect version 5.43.0 argv[0] = expect argv[1] = -d argv[2] = bin/clogin argv[3] = -c argv[4] = show running argv[5] = 192.168.20.211 set argc 3 set argv0 "bin/clogin" set argv "-c {show running} 192.168.20.211" executing commands from command file bin/clogin 192.168.20.211 spawn telnet 192.168.20.211 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {4698} expect: does "" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no Trying 192.168.20.211... Connected to 192.168.20.211 (192.168.20.211). Escape character is '^]'. expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no Catalyst 1900 Management Console Copyright (c) Cisco Systems, Inc. 1993-1999 All rights reserved. Enterprise Edition Software Ethernet Address: 00-30-94-B7-DA-40 PCA Number: 73-3121-04 PCA Serial Number: FAB034637LN Model Number: WS-C1924-EN System Serial Number: FAB0346R0M1 Power Supply S/N: PHI033008AT PCB Serial Number: FAB034637LN,73-3121-04 ------------------------------------------------- 1 user(s) now active on Management Console. expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no User Interface Menu [M] Menus [K] Command Line Enter Selection: expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? yes expect: set expect_out(0,string) "Enter Selection: " expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " send: sending "K\r" to { exp4 } expect: continuing expect expect: does " " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? no "Login invalid"? no K CLI session with the switch is open. To end the CLI session, enter [Exit]. frk1924> expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no "(Connection closed by|Connection to [^\n\r]+ closed)"? no expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "unknown host\r"? no expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no "Offending key for .* (yes/no)?"? no "(denied|Sorry)"? no "Login failed"? no "% (Bad passwords|Authentication failed)"? no "Press any key to continue."? no "Enter Selection: "? no "@[^\r\n]+ ([Pp]assword|passwd):"? no "(Username|Login|login|user name):"? no "([Pp]assword|passwd):"? no ">"? yes expect: set expect_out(0,string) ">" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" send: sending "enable\r" to { exp4 } expect: does "" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no "[Pp]assword:"? no "#"? no "(enable)"? no "(denied|Sorry|Incorrect)"? no "% Error in authentication"? no "% Bad passwords"? no enable Enter password: expect: does "enable\n\rEnter password: " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no "[Pp]assword:"? yes expect: set expect_out(0,string) "password:" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "enable\n\rEnter password:" send: sending "XXXXXXXX\r" to { exp4 } expect: continuing expect expect: does " " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no "[Pp]assword:"? no "#"? no "(enable)"? no "(denied|Sorry|Incorrect)"? no "% Error in authentication"? no "% Bad passwords"? no ***** expect: does " *****\r\n" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no "[Pp]assword:"? no "#"? no "(enable)"? no "(denied|Sorry|Incorrect)"? no "% Error in authentication"? no "% Bad passwords"? no frk1924# expect: does " *****\r\nfrk1924#" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no "[Pp]assword:"? no "#"? yes expect: set expect_out(0,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " *****\r\nfrk1924#" send: sending "\r" to { exp4 } expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+:)1 #"? no "^.+#"? no "^.+> \(enable\)"? no expect: does "\n" (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+:)1 #"? no "^.+#"? no "^.+> \(enable\)"? no frk1924# expect: does "\rfrk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r" expect: continuing expect expect: does "frk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+:)1 #"? no "^.+#"? yes expect: set expect_out(0,string) "frk1924#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "frk1924#" send: sending "term length 0\r" to { exp4 } expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "[\n\r]+"? no term length 0 ^ % Invalid input detected at '^' marker. expect: does "term length 0\n\r ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "term length 0\n\r" expect: continuing expect expect: does " ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " ^\r\n" expect: continuing expect expect: does "% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "% Invalid input detected at '^' marker.\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "[\n\r]+"? no frk1924# expect: does "frk1924#" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes expect: set expect_out(0,string) "frk1924#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "frk1924#" send: sending "show running\r" to { exp4 } expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? no "[^\r\n]*Press to cont[^\r\n]*"? no "^ *--More--[^\n\r]*"? no "^<-+ More -+>[^\n\r]*"? no expect: does "show running\n\rBuilding configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "show running\n\r" show running expect: continuing expect expect: does "Building configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Building configuration...\r\n" Building configuration... expect: continuing expect expect: does "Current configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Current configuration:\r\n" Current configuration: expect: continuing expect expect: does "!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "no cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "no cgmp\r\n" no cgmp expect: continuing expect expect: does "!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "hostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "hostname "frk1924"\r\n" hostname "frk1924" expect: continuing expect expect: does "!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "!\r\n" ! expect: continuing expect expect: does "monitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/1\r\n" monitor-port monitored 0/1 expect: continuing expect expect: does "monitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/2\r\n" monitor-port monitored 0/2 expect: continuing expect expect: does "monitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/3\r\n" monitor-port monitored 0/3 expect: continuing expect expect: does "monitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/4\r\n" monitor-port monitored 0/4 expect: continuing expect expect: does "monitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/5\r\n" monitor-port monitored 0/5 expect: continuing expect expect: does "monitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/6\r\n" monitor-port monitored 0/6 expect: continuing expect expect: does "monitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/7\r\n" monitor-port monitored 0/7 expect: continuing expect expect: does "monitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/8\r\n" monitor-port monitored 0/8 expect: continuing expect expect: does "monitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "monitor-port monitored 0/9\r\n\r\n" monitor-port monitored 0/9 expect: continuing expect expect: does "--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "--More--\r\n" --More-- expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "[\n\r]+"? no "[^\r\n]*Press to cont[^\r\n]*"? no "^ *--More--[^\n\r]*"? no "^<-+ More -+>[^\n\r]*"? no expect: timed out Error: TIMEOUT reached write() failed to write anything - will sleep(1) and retry... ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index From simon at limmat.switch.ch Wed Jan 10 23:24:38 2007 From: simon at limmat.switch.ch (Simon Leinen) Date: Thu, 11 Jan 2007 00:24:38 +0100 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 In-Reply-To: <01MBRR9DY03C00071Z@tmk.com> (Terry Kennedy's message of "Wed, 10 Jan 2007 16:29:35 -0500 (EST)") References: <01MBRR9DY03C00071Z@tmk.com> Message-ID: Terry Kennedy writes: > Here's my original post on the subject: [...] > + expect -re $prompt {} > + send "term width 80\r" We've been using that patch for many months, and found it very helpful. Thanks, Terry! It would be great if this could be integrated into mainline RANCID. -- Simon. From justin.shore at sktbcs.com Wed Jan 10 23:51:42 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Wed, 10 Jan 2007 17:51:42 -0600 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: <4CBACF4FA9CE1046907D5132920D794D018C322A@clw1.SKT.ICT> Here's the patch against RANCID 2.3.2a5. Nice change. Thanks Justin -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Terry Kennedy Sent: Wednesday, January 10, 2007 3:30 PM To: Dylan Vanderhoof Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 > I vaguely recall seeing something like this on the list before, but I > don't remember if there was a resolution and I can't find it now. > Anybody have any idea how to prevent this? Here's my original post on the subject: -------- From: IN%"terry at tmk.com" 6-APR-2004 10:18:34.47 To: IN%"dcorbe at resultstel.com" CC: IN%"rancid-discuss at shrubbery.net" Subj: Re: [Fwd: [netops] switches router config diffs] > I'm getting a lot of these on my Cisco Catalyst 2950 during every single > rancid-run update. These are worthless diffs as there aren't any > changes in configuration but changes in port status. I know this one 8-) I bet you have people accessing the switches with different terminal width settings in their terminal programs. The VTY picks this up as part of telnet option negotiations. Since RANCID is a non-interactive session to the switch, it doesn't negotiate width. Try this patch for clogin (you'll probably need to apply it manually): *** clogin_orig Fri Aug 9 16:54:10 2002 --- clogin Sun Apr 6 19:20:42 2003 *************** *** 455,460 **** --- 455,462 ---- send "set length 0\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } regsub -all "\[)(]" $prompt {\\&} reprompt # match cisco config mode prompts too, but not for catalyst ie: (enable) *************** *** 699,704 **** --- 701,708 ---- send "set logging session disable\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } expect -re $prompt {} source $sfile Terry Kennedy http://www.tmk.com terry at tmk.com New York, NY USA -------- _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- A non-text attachment was scrubbed... Name: wrapping.patch Type: application/octet-stream Size: 591 bytes Desc: wrapping.patch Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070110/fb35091c/attachment.obj From heas at shrubbery.net Thu Jan 11 02:55:16 2007 From: heas at shrubbery.net (john heasley) Date: Wed, 10 Jan 2007 18:55:16 -0800 Subject: [rancid] Re: Cisco 1900 configuration retrieval issue In-Reply-To: <599441.37042.qm@web50503.mail.yahoo.com> References: <599441.37042.qm@web50503.mail.yahoo.com> Message-ID: <20070111025516.GA27727@shrubbery.net> Wed, Jan 10, 2007 at 01:41:58PM -0800, Laker Netman: > Hello. > > I am having trouble retrieving the configuration from a Cisco (Catalyst) 1900 switch. > > After reviewing the archives, I found and read a thread from 3/24/06 which details the issue I appear to be experiencing. I could not find a follow-up detailing a fix or workaround. > > I am running RANCID 2.3.2a3, Expect 5.43.0 on Fedora Core 4 Linux. > > I have included the output from "expect -d /path/to/clogin -c 'show running' hostname > log 2>&1" below. > > Suggestions? looks a bit like telnet is hanging. i presume it does not do this interactively, so strace -o log -f it. > Thanks, > Laker > > > expect version 5.43.0 > argv[0] = expect argv[1] = -d argv[2] = bin/clogin argv[3] = -c argv[4] = show running argv[5] = 192.168.20.211 > set argc 3 > set argv0 "bin/clogin" > set argv "-c {show running} 192.168.20.211" > executing commands from command file bin/clogin > 192.168.20.211 > spawn telnet 192.168.20.211 > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {4698} > > expect: does "" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > Trying 192.168.20.211... > > Connected to 192.168.20.211 (192.168.20.211). > > Escape character is '^]'. > > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Catalyst 1900 Management Console > Copyright (c) Cisco Systems, Inc. 1993-1999 > All rights reserved. > Enterprise Edition Software > Ethernet Address: 00-30-94-B7-DA-40 > > PCA Number: 73-3121-04 > PCA Serial Number: FAB034637LN > Model Number: WS-C1924-EN > System Serial Number: FAB0346R0M1 > Power Supply S/N: PHI033008AT > PCB Serial Number: FAB034637LN,73-3121-04 > ------------------------------------------------- > > 1 user(s) now active on Management Console. > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > User Interface Menu > > [M] Menus > [K] Command Line > > Enter Selection: > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ > refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? yes > expect: set expect_out(0,string) "Enter Selection: " > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " > send: sending "K\r" to { exp4 } > expect: continuing expect > > expect: does " " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > K > > > CLI session with the switch is open. > To end the CLI session, enter [Exit]. > > frk1924> > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? yes > expect: set expect_out(0,string) ">" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" > send: sending "enable\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > enable > > Enter password: > expect: does "enable\n\rEnter password: " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? yes > expect: set expect_out(0,string) "password:" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "enable\n\rEnter password:" > send: sending "XXXXXXXX\r" to { exp4 } > expect: continuing expect > > expect: does " " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > ***** > > expect: does " *****\r\n" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > frk1924# > expect: does " *****\r\nfrk1924#" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? yes > expect: set expect_out(0,string) "#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " *****\r\nfrk1924#" > send: sending "\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? no > "^.+> \(enable\)"? no > > > expect: does "\n" (spawn_id exp4) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? no > "^.+> \(enable\)"? no > > frk1924# > expect: does "\rfrk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "\r" > expect: continuing expect > > expect: does "frk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? yes > expect: set expect_out(0,string) "frk1924#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "frk1924#" > send: sending "term length 0\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? no > term length 0 > > ^ > % Invalid input detected at '^' marker. > > expect: does "term length 0\n\r ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\n\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "term length 0\n\r" > expect: continuing expect > > expect: does " ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " ^\r\n" > expect: continuing expect > > expect: does "% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "% Invalid input detected at '^' marker.\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? no > frk1924# > expect: does "frk1924#" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes > expect: set expect_out(0,string) "frk1924#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "frk1924#" > send: sending "show running\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? no > "[^\r\n]*Press to cont[^\r\n]*"? no > "^ *--More--[^\n\r]*"? no > "^<-+ More -+>[^\n\r]*"? no > > expect: does "show running\n\rBuilding configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\n\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "show running\n\r" > show running > > expect: continuing expect > > expect: does "Building configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Building configuration...\r\n" > Building configuration... > expect: continuing expect > > expect: does "Current configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Current configuration:\r\n" > Current configuration: > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "no cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "no cgmp\r\n" > no cgmp > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "hostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "hostname "frk1924"\r\n" > hostname "frk1924" > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "monitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/1\r\n" > monitor-port monitored 0/1 > expect: continuing expect > > expect: does "monitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/2\r\n" > monitor-port monitored 0/2 > expect: continuing expect > > expect: does "monitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/3\r\n" > monitor-port monitored 0/3 > expect: continuing expect > > expect: does "monitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/4\r\n" > monitor-port monitored 0/4 > expect: continuing expect > > expect: does "monitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/5\r\n" > monitor-port monitored 0/5 > expect: continuing expect > > expect: does "monitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/6\r\n" > monitor-port monitored 0/6 > expect: continuing expect > > expect: does "monitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/7\r\n" > monitor-port monitored 0/7 > expect: continuing expect > > expect: does "monitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/8\r\n" > monitor-port monitored 0/8 > expect: continuing expect > > expect: does "monitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/9\r\n\r\n" > monitor-port monitored 0/9 > > expect: continuing expect > > expect: does "--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "--More--\r\n" > --More-- > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? no > "[^\r\n]*Press to cont[^\r\n]*"? no > "^ *--More--[^\n\r]*"? no > "^<-+ More -+>[^\n\r]*"? no > expect: timed out > > Error: TIMEOUT reached > write() failed to write anything - will sleep(1) and retry... > > > > > > > ____________________________________________________________________________________ > Want to start your own business? > Learn how on Yahoo! Small Business. > http://smallbusiness.yahoo.com/r-index > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From RMiotke at lear.com Thu Jan 11 16:22:52 2007 From: RMiotke at lear.com (Miotke, Ron) Date: Thu, 11 Jan 2007 11:22:52 -0500 Subject: [rancid] On Cisco routers and PIXs, the line ': Written by ..." Message-ID: <4E03EDD62CB1CB4599E6BD71DBEDFD200225AD97@usmitry-exm1.corp.lear.com> Hello, I'm running RANCID 2.3.1 without any issues and also it was a great learning experience. There might be a small patch for this already. Please point me in the correct direction; but on Cisco routers and Cisco PIX firewalls when the configuration is written by using a 'copy running-config startup-config' or on a PIX a 'write mem' the config listing will show: : Written by johndoe at 09:35:47.673 EST Wed Jan 3 2007 The existing versions of rancid doesn't show this line when there was a written change. Perhaps it is filtered, don't know. 1. Is there a small mod that can be made in some of the script files so that this line is documented? 2. If this has been asked before where can I find change. Regards, --Ron Global Data Network Sr. Mgr. / I.T. Security ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. From Todd at equivoice.com Thu Jan 11 16:52:10 2007 From: Todd at equivoice.com (Todd Heide) Date: Thu, 11 Jan 2007 10:52:10 -0600 Subject: [rancid] Firewall ports Message-ID: <082FEA82DC985B4F8A6B412D5AC4E22052FC04@exchange.Equivoice.local> What needs to be opened up for Rancid to work on a Cisco SDM router? Thanks Todd Heide Equivoice LLC CCNA CWLSS CS-CISecS Nothing ever goes as planned, Its a hell of a notion, Even pharaohs turn to sand, Like a drop in the ocean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/5ba9ba69/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1450 bytes Desc: image001.jpg Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/5ba9ba69/attachment.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 3203 bytes Desc: image002.gif Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/5ba9ba69/attachment.gif From laker_netman at yahoo.com Thu Jan 11 17:03:24 2007 From: laker_netman at yahoo.com (Laker Netman) Date: Thu, 11 Jan 2007 09:03:24 -0800 (PST) Subject: [rancid] Re: Cisco 1900 configuration retrieval issue Message-ID: <822588.12750.qm@web50512.mail.yahoo.com> strace posted at end.... ----- Original Message ---- From: john heasley To: Laker Netman Cc: rancid-discuss at shrubbery.net Sent: Wednesday, January 10, 2007 8:55:16 PM Subject: Re: [rancid] Cisco 1900 configuration retrieval issue Wed, Jan 10, 2007 at 01:41:58PM -0800, Laker Netman: > Hello. > > I am having trouble retrieving the configuration from a Cisco (Catalyst) 1900 switch. > > After reviewing the archives, I found and read a thread from 3/24/06 which details the issue I appear to be experiencing. I could not find a follow-up detailing a fix or workaround. > > I am running RANCID 2.3.2a3, Expect 5.43.0 on Fedora Core 4 Linux. > > I have included the output from "expect -d /path/to/clogin -c 'show running' hostname > log 2>&1" below. > > Suggestions? looks a bit like telnet is hanging. i presume it does not do this interactively, so strace -o log -f it. > Thanks, > Laker > > > expect version 5.43.0 > argv[0] = expect argv[1] = -d argv[2] = bin/clogin argv[3] = -c argv[4] = show running argv[5] = 192.168.20.211 > set argc 3 > set argv0 "bin/clogin" > set argv "-c {show running} 192.168.20.211" > executing commands from command file bin/clogin > 192.168.20.211 > spawn telnet 192.168.20.211 > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {4698} > > expect: does "" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > Trying 192.168.20.211... > > Connected to 192.168.20.211 (192.168.20.211). > > Escape character is '^]'. > > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Catalyst 1900 Management Console > Copyright (c) Cisco Systems, Inc. 1993-1999 > All rights reserved. > Enterprise Edition Software > Ethernet Address: 00-30-94-B7-DA-40 > > PCA Number: 73-3121-04 > PCA Serial Number: FAB034637LN > Model Number: WS-C1924-EN > System Serial Number: FAB0346R0M1 > Power Supply S/N: PHI033008AT > PCB Serial Number: FAB034637LN,73-3121-04 > ------------------------------------------------- > > 1 user(s) now active on Management Console. > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > User Interface Menu > > [M] Menus > [K] Command Line > > Enter Selection: > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ > refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? yes > expect: set expect_out(0,string) "Enter Selection: " > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Trying 192.168.20.211...\r\r\nConnected to 192.168.20.211 (192.168.20.211).\r\r\nEscape character is '^]'.\r\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nCatalyst 1900 Management Console\r\nCopyright (c) Cisco Systems, Inc. 1993-1999\r\nAll rights reserved.\r\nEnterprise Edition Software\r\nEthernet Address: 00-30-94-B7-DA-40\r\n\r\nPCA Number: 73-3121-04\r\nPCA Serial Number: FAB034637LN\r\nModel Number: WS-C1924-EN\r\nSystem Serial Number: FAB0346R0M1\r\nPower Supply S/N: PHI033008AT\r\nPCB Serial Number: FAB034637LN,73-3121-04\r\n-------------------------------------------------\r\n\r\n1 user(s) now active on Management Console.\r\n\r\n User Interface Menu\r\n\r\n [M] Menus\r\n [K] Command Line\r\n\r\nEnter Selection: " > send: sending "K\r" to { exp4 } > expect: continuing expect > > expect: does " " (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " " (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does " " (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > K > > > CLI session with the switch is open. > To end the CLI session, enter [Exit]. > > frk1924> > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "unknown host\r"? no > > expect: does " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" (spawn_id exp4) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue."? no > "Enter Selection: "? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name):"? no > "([Pp]assword|passwd):"? no > ">"? yes > expect: set expect_out(0,string) ">" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " K\r\n\r\n\r\n CLI session with the switch is open.\r\n To end the CLI session, enter [Exit].\r\n\r\nfrk1924>" > send: sending "enable\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > enable > > Enter password: > expect: does "enable\n\rEnter password: " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? yes > expect: set expect_out(0,string) "password:" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "enable\n\rEnter password:" > send: sending "XXXXXXXX\r" to { exp4 } > expect: continuing expect > > expect: does " " (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > ***** > > expect: does " *****\r\n" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > frk1924# > expect: does " *****\r\nfrk1924#" (spawn_id exp4) match regular expression "(Username|Login|login|user name):"? no > "[Pp]assword:"? no > "#"? yes > expect: set expect_out(0,string) "#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " *****\r\nfrk1924#" > send: sending "\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? no > "^.+> \(enable\)"? no > > > expect: does "\n" (spawn_id exp4) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? no > "^.+> \(enable\)"? no > > frk1924# > expect: does "\rfrk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "\r" > expect: continuing expect > > expect: does "frk1924#" (spawn_id exp4) match regular expression "[\r\n]+"? no > "^(.+:)1 #"? no > "^.+#"? yes > expect: set expect_out(0,string) "frk1924#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "frk1924#" > send: sending "term length 0\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? no > term length 0 > > ^ > % Invalid input detected at '^' marker. > > expect: does "term length 0\n\r ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\n\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "term length 0\n\r" > expect: continuing expect > > expect: does " ^\r\n% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) " ^\r\n" > expect: continuing expect > > expect: does "% Invalid input detected at '^' marker.\r\n" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "% Invalid input detected at '^' marker.\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "[\n\r]+"? no > frk1924# > expect: does "frk1924#" (spawn_id exp4) match regular expression "frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? yes > expect: set expect_out(0,string) "frk1924#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "frk1924#" > send: sending "show running\r" to { exp4 } > > expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? no > "[^\r\n]*Press to cont[^\r\n]*"? no > "^ *--More--[^\n\r]*"? no > "^<-+ More -+>[^\n\r]*"? no > > expect: does "show running\n\rBuilding configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\n\r" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "show running\n\r" > show running > > expect: continuing expect > > expect: does "Building configuration...\r\nCurrent configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Building configuration...\r\n" > Building configuration... > expect: continuing expect > > expect: does "Current configuration:\r\n!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Current configuration:\r\n" > Current configuration: > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nno cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "no cgmp\r\n!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "no cgmp\r\n" > no cgmp > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nhostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "hostname "frk1924"\r\n!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "hostname "frk1924"\r\n" > hostname "frk1924" > expect: continuing expect > > expect: does "!\r\n!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\n!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "!\r\nmonitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "!\r\n" > ! > expect: continuing expect > > expect: does "monitor-port monitored 0/1\r\nmonitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/1\r\n" > monitor-port monitored 0/1 > expect: continuing expect > > expect: does "monitor-port monitored 0/2\r\nmonitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/2\r\n" > monitor-port monitored 0/2 > expect: continuing expect > > expect: does "monitor-port monitored 0/3\r\nmonitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/3\r\n" > monitor-port monitored 0/3 > expect: continuing expect > > expect: does "monitor-port monitored 0/4\r\nmonitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/4\r\n" > monitor-port monitored 0/4 > expect: continuing expect > > expect: does "monitor-port monitored 0/5\r\nmonitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/5\r\n" > monitor-port monitored 0/5 > expect: continuing expect > > expect: does "monitor-port monitored 0/6\r\nmonitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/6\r\n" > monitor-port monitored 0/6 > expect: continuing expect > > expect: does "monitor-port monitored 0/7\r\nmonitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/7\r\n" > monitor-port monitored 0/7 > expect: continuing expect > > expect: does "monitor-port monitored 0/8\r\nmonitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/8\r\n" > monitor-port monitored 0/8 > expect: continuing expect > > expect: does "monitor-port monitored 0/9\r\n\r\n--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "monitor-port monitored 0/9\r\n\r\n" > monitor-port monitored 0/9 > > expect: continuing expect > > expect: does "--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "--More--\r\n" > --More-- > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > "[\n\r]+"? no > "[^\r\n]*Press to cont[^\r\n]*"? no > "^ *--More--[^\n\r]*"? no > "^<-+ More -+>[^\n\r]*"? no > expect: timed out > > Error: TIMEOUT reached > write() failed to write anything - will sleep(1) and retry... > > > > _____________________________________________________________________ _____________________________________________________________________ It's worth noting that I pull configs from other (non-1900) switches and routers at this site without issue. Also, the hang occurs whether the it is being executed from rancid-run or individually from the command line with clogin. 11057 execve("bin/clogin", ["bin/clogin", "-c", "sho running", "192.168.20.211"], [/* 20 vars */]) = 0 11057 brk(0) = 0x92ea000 11057 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 11057 open("/etc/ld.so.cache", O_RDONLY) = 3 11057 fstat64(3, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11057 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f50000 11057 close(3) = 0 11057 open("/usr/lib/libexpect5.43.so", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200|\0"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=151536, ...}) = 0 11057 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4f000 11057 old_mmap(NULL, 166876, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x215000 11057 old_mmap(0x239000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x239000 11057 old_mmap(0x23b000, 11228, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x23b000 11057 close(3) = 0 11057 open("/usr/lib/libtcl8.4.so", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360:\1"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=688092, ...}) = 0 11057 old_mmap(NULL, 689648, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x443000 11057 old_mmap(0x4e1000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9e000) = 0x4e1000 11057 old_mmap(0x4eb000, 1520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4eb000 11057 close(3) = 0 11057 open("/lib/libdl.so.2", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\000"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=14504, ...}) = 0 11057 old_mmap(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfb1000 11057 old_mmap(0xfb3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xfb3000 11057 close(3) = 0 11057 open("/lib/libm.so.6", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0203\0"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=199136, ...}) = 0 11057 old_mmap(NULL, 147616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x849000 11057 old_mmap(0x86c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x86c000 11057 close(3) = 0 11057 open("/lib/libutil.so.1", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\f\0"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=13380, ...}) = 0 11057 old_mmap(NULL, 12432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x111000 11057 old_mmap(0x113000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x113000 11057 close(3) = 0 11057 open("/lib/libc.so.6", O_RDONLY) = 3 11057 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\252N\1"..., 512) = 512 11057 fstat64(3, {st_mode=S_IFREG|0755, st_size=1478672, ...}) = 0 11057 old_mmap(NULL, 1215452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x5f3000 11057 old_mmap(0x716000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122000) = 0x716000 11057 old_mmap(0x71a000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x71a000 11057 close(3) = 0 11057 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4e000 11057 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4d000 11057 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f4d6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 11057 mprotect(0x716000, 8192, PROT_READ) = 0 11057 mprotect(0x113000, 4096, PROT_READ) = 0 11057 mprotect(0x86c000, 4096, PROT_READ) = 0 11057 mprotect(0xfb3000, 4096, PROT_READ) = 0 11057 mprotect(0xc70000, 4096, PROT_READ) = 0 11057 munmap(0xb7f50000, 69106) = 0 11057 _llseek(0, 0, 0xbf8ff280, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 _llseek(1, 0, 0xbf8ff280, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 _llseek(2, 0, 0xbf8ff280, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 11057 brk(0) = 0x92ea000 11057 brk(0x930b000) = 0x930b000 11057 uname({sys="Linux", node="VALIANT", ...}) = 0 11057 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 11057 fstat64(3, {st_mode=S_IFREG|0644, st_size=53345920, ...}) = 0 11057 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d4d000 11057 mmap2(NULL, 204800, PROT_READ, MAP_PRIVATE, 3, 0x814) = 0xb7d1b000 11057 mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x855) = 0xb7d1a000 11057 close(3) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=45056, ...}) = 0 11057 lstat64("/usr/lib/tcl8.4", {st_mode=S_IFLNK|0777, st_size=17, ...}) = 0 11057 readlink("/usr/lib/tcl8.4", "/usr/share/tcl8.4", 4096) = 17 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/share/tcl8.4/encoding", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 open("/usr/share/tcl8.4/encoding/iso8859-1.enc", O_RDONLY|O_LARGEFILE) = 3 11057 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fe9a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(3, "# Encoding file: iso8859-1, sing"..., 4096) = 1094 11057 read(3, "", 4096) = 0 11057 close(3) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 access("/usr/share/tcl8.4/init.tcl", F_OK) = 0 11057 stat64("/usr/share/tcl8.4/init.tcl", {st_mode=S_IFREG|0644, st_size=22981, ...}) = 0 11057 open("/usr/share/tcl8.4/init.tcl", O_RDONLY|O_LARGEFILE) = 3 11057 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fe438) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(3, "# init.tcl --\n#\n# Default system"..., 4096) = 4096 11057 read(3, "[llength [info commands tclLog]]"..., 4096) = 4096 11057 read(3, " [string range $errorInfo 0 $i]\n"..., 4096) = 4096 11057 read(3, "lly invoked within auto_load to "..., 4096) = 4096 11057 read(3, "_index\n\n foreach pattern $pat"..., 4096) = 4096 11057 read(3, "s: \n# action - \"ren"..., 4096) = 2501 11057 read(3, "", 4096) = 0 11057 close(3) = 0 11057 getpid() = 11057 11057 open("/dev/tty", O_RDWR) = 3 11057 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(3, TIOCGWINSZ, {ws_row=53, ws_col=170, ws_xpixel=0, ws_ypixel=0}) = 0 11057 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 _llseek(0, 0, 0xbf8ff1c0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 _llseek(1, 0, 0xbf8ff1c0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 _llseek(2, 0, 0xbf8ff1c0, SEEK_CUR) = -1 ESPIPE (Illegal seek) 11057 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 fcntl64(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 11057 fcntl64(0, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0 11057 fcntl64(0, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE) 11057 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 fcntl64(2, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE) 11057 fcntl64(2, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0 11057 fcntl64(2, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE) 11057 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 11057 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) 11057 fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 11057 fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) 11057 rt_sigaction(SIGINT, {0x22cf20, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0 11057 rt_sigaction(SIGTERM, {0x22cf20, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0 11057 open("/usr/lib/expect5.43/expect.rc", O_RDONLY) = -1 ENOENT (No such file or directory) 11057 open("/usr/local/rancid/.expect.rc", O_RDONLY) = -1 ENOENT (No such file or directory) 11057 getcwd("/usr/local/rancid", 4097) = 18 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 stat64("/usr/local/rancid/bin/clogin", {st_mode=S_IFREG|0755, st_size=23862, ...}) = 0 11057 open("/usr/local/rancid/bin/clogin", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8ff028) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "#! /usr/bin/expect --\n##\n## $Id:"..., 4096) = 4096 11057 read(4, "(.+) $arg ignore command]} {\n\t\ti"..., 4096) = 4096 11057 read(4, "methods in $cmethod until one is"..., 4096) = 4096 11057 read(4, " }\n\t}\n\teof { send_user \"\\nError:"..., 4096) = 4096 11057 read(4, "ntinue }\n\t}\n } else {\n\tregsub"..., 4096) = 4096 11057 brk(0x9330000) = 0x9330000 11057 brk(0x932c000) = 0x932c000 11057 read(4, "ame\n set ruser $username\n "..., 4096) = 3382 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/.cloginrc", {st_mode=S_IFREG|0640, st_size=3534, ...}) = 0 11057 stat64("/usr/local/rancid/.cloginrc", {st_mode=S_IFREG|0640, st_size=3534, ...}) = 0 11057 open("/usr/local/rancid/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fe4e8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "# comments are cool, as is white"..., 4096) = 3534 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/billerica", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/billerica/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/billerica/.cloginrc", {st_mode=S_IFREG|0640, st_size=43, ...}) = 0 11057 stat64("/usr/local/rancid/var/billerica/.cloginrc", {st_mode=S_IFREG|0640, st_size=43, ...}) = 0 11057 open("/usr/local/rancid/var/billerica/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add password 192.168.60.2\t{XXXXXXXX"..., 4096) = 43 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/camdenton", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/camdenton/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/camdenton/.cloginrc", {st_mode=S_IFREG|0640, st_size=231, ...}) = 0 11057 stat64("/usr/local/rancid/var/camdenton/.cloginrc", {st_mode=S_IFREG|0640, st_size=231, ...}) = 0 11057 open("/usr/local/rancid/var/camdenton/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add user\t192.168.12.3\thgardner\na"..., 4096) = 231 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/dreieich", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/dreieich/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/dreieich/.cloginrc", {st_mode=S_IFREG|0640, st_size=248, ...}) = 0 11057 stat64("/usr/local/rancid/var/dreieich/.cloginrc", {st_mode=S_IFREG|0640, st_size=248, ...}) = 0 11057 open("/usr/local/rancid/var/dreieich/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add password 192.168.29.3 {Beebl"..., 4096) = 248 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/franklin", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/franklin/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/franklin/.cloginrc", {st_mode=S_IFREG|0640, st_size=704, ...}) = 0 11057 stat64("/usr/local/rancid/var/franklin/.cloginrc", {st_mode=S_IFREG|0640, st_size=704, ...}) = 0 11057 open("/usr/local/rancid/var/franklin/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add password 192.168.20.200\t{c1s"..., 4096) = 704 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/elgin", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/elgin/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/elgin/.cloginrc", {st_mode=S_IFREG|0640, st_size=43, ...}) = 0 11057 stat64("/usr/local/rancid/var/elgin/.cloginrc", {st_mode=S_IFREG|0640, st_size=43, ...}) = 0 11057 open("/usr/local/rancid/var/elgin/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add password 192.168.40.1\t{XXXXXXXX"..., 4096) = 43 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 11057 lstat64("/usr/local/rancid/var/singapore", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 11057 access("/usr/local/rancid/var/singapore/.cloginrc", F_OK) = 0 11057 stat64("/usr/local/rancid/var/singapore/.cloginrc", {st_mode=S_IFREG|0640, st_size=95, ...}) = 0 11057 stat64("/usr/local/rancid/var/singapore/.cloginrc", {st_mode=S_IFREG|0640, st_size=95, ...}) = 0 11057 open("/usr/local/rancid/var/singapore/.cloginrc", O_RDONLY|O_LARGEFILE) = 4 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8fd2a8) = -1 ENOTTY (Inappropriate ioctl for device) 11057 read(4, "add password 203.163.12.137\t{cis"..., 4096) = 95 11057 read(4, "", 4096) = 0 11057 close(4) = 0 11057 write(1, "192.168.20.211\n", 15) = 15 11057 write(1, "spawn", 5) = 5 11057 write(1, " ", 1) = 1 11057 write(1, "telnet", 6) = 6 11057 write(1, " ", 1) = 1 11057 write(1, "192.168.20.211", 14) = 14 11057 write(1, "\r\r\n", 3) = 3 11057 open("/dev/ptmx", O_RDWR) = 4 11057 statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(4, TIOCGPTN, [1]) = 0 11057 stat64("/dev/pts/1", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 11057 statfs("/dev/pts/1", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 11057 ioctl(4, TIOCSPTLCK, [0]) = 0 11057 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 ioctl(4, TIOCGPTN, [1]) = 0 11057 stat64("/dev/pts/1", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 11057 open("/dev/pts/1", O_RDWR|O_NOCTTY) = 5 11057 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 readlink("/proc/self/fd/5", "/dev/pts/1", 4095) = 10 11057 close(5) = 0 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 pipe([5, 6]) = 0 11057 pipe([7, 8]) = 0 11057 pipe([9, 10]) = 0 11057 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7f4d708) = 11058 11057 close(6) = 0 11057 close(7) = 0 11057 close(10) = 0 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 fcntl64(4, F_GETFL 11058 close(5 11057 <... fcntl64 resumed> ) = 0x2 (flags O_RDWR) 11058 <... close resumed> ) = 0 11057 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK 11058 close(8 11057 <... fcntl64 resumed> ) = 0 11058 <... close resumed> ) = 0 11057 fcntl64(4, F_GETFL 11058 close(9 11057 <... fcntl64 resumed> ) = 0x802 (flags O_RDWR|O_NONBLOCK) 11058 <... close resumed> ) = 0 11057 read(5, 11058 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 11058 close(3) = 0 11058 setsid() = 11058 11058 fcntl64(2, F_DUPFD, 3) = 3 11058 close(0) = 0 11058 close(1) = 0 11058 close(2) = 0 11058 open("/dev/pts/1", O_RDWR) = 0 11058 fcntl64(0, F_DUPFD, 1) = 1 11058 fcntl64(0, F_DUPFD, 2) = 2 11058 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 11058 ioctl(0, TIOCSWINSZ, {ws_row=53, ws_col=170, ws_xpixel=0, ws_ypixel=0}) = 0 11058 --- SIGWINCH (Window changed) @ 0 (0) --- 11058 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGINT, {SIG_IGN}, {0x22cf20, [INT], SA_RESTART}, 8) = 0 11058 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 11058 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 11058 clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0xbf8faf34) = 11059 11058 waitpid(11059, 11059 rt_sigaction(SIGINT, {0x22cf20, [INT], SA_RESTART}, NULL, 8) = 0 11059 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 11059 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11059 execve("/bin/sh", ["sh", "-c", "/bin/stty sane < /dev/pts/1"], [/* 20 vars */]) = 0 11059 brk(0) = 0x930a000 11059 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 11059 open("/etc/ld.so.cache", O_RDONLY) = 4 11059 fstat64(4, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11059 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fda000 11059 close(4) = 0 11059 open("/lib/libtermcap.so.2", O_RDONLY) = 4 11059 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\v\0"..., 512) = 512 11059 fstat64(4, {st_mode=S_IFREG|0755, st_size=11588, ...}) = 0 11059 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd9000 11059 old_mmap(NULL, 14632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x2e7000 11059 old_mmap(0x2ea000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2000) = 0x2ea000 11059 close(4) = 0 11059 open("/lib/libdl.so.2", O_RDONLY) = 4 11059 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\000"..., 512) = 512 11059 fstat64(4, {st_mode=S_IFREG|0755, st_size=14504, ...}) = 0 11059 old_mmap(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x111000 11059 old_mmap(0x113000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0x113000 11059 close(4) = 0 11059 open("/lib/libc.so.6", O_RDONLY) = 4 11059 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\252N\1"..., 512) = 512 11059 fstat64(4, {st_mode=S_IFREG|0755, st_size=1478672, ...}) = 0 11059 old_mmap(NULL, 1215452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x115000 11059 old_mmap(0x238000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x122000) = 0x238000 11059 old_mmap(0x23c000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x23c000 11059 close(4) = 0 11059 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd8000 11059 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fd86c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 11059 mprotect(0x238000, 8192, PROT_READ) = 0 11059 mprotect(0x113000, 4096, PROT_READ) = 0 11059 mprotect(0x62e000, 4096, PROT_READ) = 0 11059 munmap(0xb7fda000, 69106) = 0 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 4 11059 close(4) = 0 11059 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 4 11059 fstat64(4, {st_mode=S_IFREG|0644, st_size=53345920, ...}) = 0 11059 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7dd8000 11059 mmap2(NULL, 204800, PROT_READ, MAP_PRIVATE, 4, 0x814) = 0xb7da6000 11059 brk(0) = 0x930a000 11059 brk(0x932b000) = 0x932b000 11059 mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 4, 0x855) = 0xb7da5000 11059 close(4) = 0 11059 getuid32() = 500 11059 getgid32() = 502 11059 geteuid32() = 500 11059 getegid32() = 502 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 time(NULL) = 1168534555 11059 open("/etc/mtab", O_RDONLY) = 4 11059 fstat64(4, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0 11059 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7da4000 11059 read(4, "/dev/hda6 / ext3 rw 0 0\nnone /pr"..., 4096) = 448 11059 close(4) = 0 11059 munmap(0xb7da4000, 4096) = 0 11059 open("/proc/meminfo", O_RDONLY) = 4 11059 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 11059 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7da4000 11059 read(4, "MemTotal: 515308 kB\nMemFre"..., 1024) = 693 11059 close(4) = 0 11059 munmap(0xb7da4000, 4096) = 0 11059 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 11059 uname({sys="Linux", node="VALIANT", ...}) = 0 11059 stat64("/usr/local/rancid", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11059 stat64(".", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11059 getpid() = 11059 11059 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4 11059 fstat64(4, {st_mode=S_IFREG|0644, st_size=25404, ...}) = 0 11059 mmap2(NULL, 25404, PROT_READ, MAP_SHARED, 4, 0) = 0xb7d9e000 11059 close(4) = 0 11059 open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 4 11059 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \4\0\000"..., 512) = 512 11059 fstat64(4, {st_mode=S_IFREG|0755, st_size=5340, ...}) = 0 11059 old_mmap(NULL, 8216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x762000 11059 old_mmap(0x763000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0x763000 11059 close(4) = 0 11059 getppid() = 11058 11059 stat64(".", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0 11059 stat64("/usr/kerberos/bin/sh", 0xbfcb6c74) = -1 ENOENT (No such file or directory) 11059 stat64("/usr/local/bin/sh", 0xbfcb6c74) = -1 ENOENT (No such file or directory) 11059 stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=680824, ...}) = 0 11059 access("/bin/sh", X_OK) = 0 11059 stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=680824, ...}) = 0 11059 access("/bin/sh", X_OK) = 0 11059 getpgrp() = 11058 11059 rt_sigaction(SIGCHLD, {0x807871f, [], 0}, {SIG_DFL}, 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0 11059 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7fd8708) = 11060 11059 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11059 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 11060 rt_sigprocmask(SIG_SETMASK, [], 11059 rt_sigprocmask(SIG_SETMASK, [], 11060 <... rt_sigprocmask resumed> NULL, 8) = 0 11059 <... rt_sigprocmask resumed> NULL, 8) = 0 11060 rt_sigaction(SIGTSTP, {SIG_DFL}, 11059 rt_sigprocmask(SIG_BLOCK, [CHLD], 11060 <... rt_sigaction resumed> {SIG_DFL}, 8) = 0 11059 <... rt_sigprocmask resumed> [], 8) = 0 11060 rt_sigaction(SIGTTIN, {SIG_DFL}, 11059 rt_sigaction(SIGINT, {0x80760d4, [], 0}, 11060 <... rt_sigaction resumed> {SIG_DFL}, 8) = 0 11059 <... rt_sigaction resumed> {SIG_DFL}, 8) = 0 11060 rt_sigaction(SIGTTOU, {SIG_DFL}, 11059 waitpid(-1, 11060 <... rt_sigaction resumed> {SIG_DFL}, 8) = 0 11060 rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11060 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0 11060 rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807871f, [], 0}, 8) = 0 11060 open("/dev/pts/1", O_RDONLY|O_LARGEFILE) = 4 11060 dup2(4, 0) = 0 11060 close(4) = 0 11060 execve("/bin/stty", ["/bin/stty", "sane"], [/* 20 vars */]) = 0 11060 brk(0) = 0x88b6000 11060 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 11060 open("/etc/ld.so.cache", O_RDONLY) = 4 11060 fstat64(4, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11060 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f8c000 11060 close(4) = 0 11060 open("/lib/libc.so.6", O_RDONLY) = 4 11060 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\252N\1"..., 512) = 512 11060 fstat64(4, {st_mode=S_IFREG|0755, st_size=1478672, ...}) = 0 11060 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000 11060 old_mmap(NULL, 1215452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x225000 11060 old_mmap(0x348000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x122000) = 0x348000 11060 old_mmap(0x34c000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x34c000 11060 close(4) = 0 11060 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8a000 11060 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f8a6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 11060 mprotect(0x348000, 8192, PROT_READ) = 0 11060 mprotect(0xda9000, 4096, PROT_READ) = 0 11060 munmap(0xb7f8c000, 69106) = 0 11060 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 4 11060 fstat64(4, {st_mode=S_IFREG|0644, st_size=53345920, ...}) = 0 11060 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d8a000 11060 mmap2(NULL, 204800, PROT_READ, MAP_PRIVATE, 4, 0x814) = 0xb7d58000 11060 brk(0) = 0x88b6000 11060 brk(0x88d7000) = 0x88d7000 11060 mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 4, 0x855) = 0xb7d57000 11060 close(4) = 0 11060 open("/usr/share/locale/locale.alias", O_RDONLY) = 4 11060 fstat64(4, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0 11060 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d56000 11060 read(4, "# Locale name alias data base.\n#"..., 4096) = 2528 11060 read(4, "", 4096) = 0 11060 close(4) = 0 11060 munmap(0xb7d56000, 4096) = 0 11060 open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) 11060 open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) 11060 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11060 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0 11060 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11060 exit_group(0) = ? 11059 <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 11060 11059 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11059 --- SIGCHLD (Child exited) @ 0 (0) --- 11059 waitpid(-1, 0xbfcb6688, WNOHANG) = -1 ECHILD (No child processes) 11059 sigreturn() = ? (mask now []) 11059 rt_sigaction(SIGINT, {SIG_DFL}, {0x80760d4, [], 0}, 8) = 0 11059 exit_group(0) = ? 11058 <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 11059 11058 rt_sigaction(SIGINT, {0x22cf20, [INT], SA_RESTART}, NULL, 8) = 0 11058 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 11058 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11058 --- SIGCHLD (Child exited) @ 0 (0) --- 11058 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 ioctl(0, TIOCSCTTY) = 0 11058 rt_sigaction(SIGHUP, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGINT, {SIG_DFL}, {0x22cf20, [INT], SA_RESTART}, 8) = 0 11058 rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGILL, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTRAP, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGABRT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGBUS, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGFPE, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGKILL, {SIG_DFL}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument) 11058 rt_sigaction(SIGUSR1, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGUSR2, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGPIPE, {SIG_DFL}, {SIG_IGN}, 8) = 0 11058 rt_sigaction(SIGALRM, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTERM, {SIG_DFL}, {0x22cf20, [TERM], SA_RESTART}, 8) = 0 11058 rt_sigaction(SIGSTKFLT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGCONT, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGSTOP, {SIG_DFL}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument) 11058 rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGURG, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGXCPU, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGXFSZ, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGVTALRM, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGPROF, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGWINCH, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGIO, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGPWR, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGSYS, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_2, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_3, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_4, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_5, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_6, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_7, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_8, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_9, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_10, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_11, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_12, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_13, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_14, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_15, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_16, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_17, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_18, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_19, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_20, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_21, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_22, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_23, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_24, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_25, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_26, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_27, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_28, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_29, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_30, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_31, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGRT_32, {SIG_DFL}, {SIG_DFL}, 8) = 0 11058 write(6, " ", 1) = 1 11057 <... read resumed> " ", 1) = 1 11057 write(8, " ", 1) = 1 11057 close(5) = 0 11057 close(8) = 0 11057 read(9, 11058 close(6) = 0 11058 read(7, " ", 1) = 1 11058 close(7) = 0 11058 execve("/usr/kerberos/bin/telnet", ["telnet", "192.168.20.211"], [/* 20 vars */] 11057 <... read resumed> "", 4) = 0 11057 close(9) = 0 11057 gettimeofday({1168534555, 747202}, {360, 0}) = 0 11057 gettimeofday({1168534555, 747296}, {360, 0}) = 0 11057 gettimeofday({1168534555, 747406}, {360, 0}) = 0 11057 select(0, [], [], [], {0, 298796} 11058 <... execve resumed> ) = 0 11058 brk(0) = 0x9abd000 11058 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 11058 open("/etc/ld.so.cache", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11058 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f33000 11058 close(4) = 0 11058 open("/usr/lib/libkrb4.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pT\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=98992, ...}) = 0 11058 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f32000 11058 old_mmap(NULL, 117776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x564000 11058 old_mmap(0x57b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x17000) = 0x57b000 11058 old_mmap(0x57c000, 19472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x57c000 11058 close(4) = 0 11058 open("/usr/lib/libdes425.so.3", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\r\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=10788, ...}) = 0 11058 old_mmap(NULL, 13616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xd28000 11058 old_mmap(0xd2b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2000) = 0xd2b000 11058 close(4) = 0 11058 open("/usr/lib/libkrb5.so.3", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\365\0"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=463572, ...}) = 0 11058 old_mmap(NULL, 466416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fd000 11058 old_mmap(0x86c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x6e000) = 0x86c000 11058 close(4) = 0 11058 open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3005\0"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=147468, ...}) = 0 11058 old_mmap(NULL, 146912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb92000 11058 old_mmap(0xbb5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x23000) = 0xbb5000 11058 close(4) = 0 11058 open("/lib/libcom_err.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\t\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=6432, ...}) = 0 11058 old_mmap(NULL, 9348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xe6d000 11058 old_mmap(0xe6f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0xe6f000 11058 close(4) = 0 11058 open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\t\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=9240, ...}) = 0 11058 old_mmap(NULL, 12092, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x111000 11058 old_mmap(0x113000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0x113000 11058 close(4) = 0 11058 open("/lib/libresolv.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20$\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=74528, ...}) = 0 11058 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f31000 11058 old_mmap(NULL, 75880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x791000 11058 old_mmap(0x7a0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xe000) = 0x7a0000 11058 old_mmap(0x7a2000, 6248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7a2000 11058 close(4) = 0 11058 open("/lib/libtermcap.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\v\0"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=11588, ...}) = 0 11058 old_mmap(NULL, 14632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xeed000 11058 old_mmap(0xef0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2000) = 0xef0000 11058 close(4) = 0 11058 open("/lib/libc.so.6", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\252N\1"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=1478672, ...}) = 0 11058 old_mmap(NULL, 1215452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x3c3000 11058 old_mmap(0x4e6000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x122000) = 0x4e6000 11058 old_mmap(0x4ea000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4ea000 11058 close(4) = 0 11058 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f30000 11058 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f30940, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 11058 mprotect(0x4e6000, 8192, PROT_READ) = 0 11058 mprotect(0x7a0000, 4096, PROT_READ) = 0 11058 mprotect(0xe36000, 4096, PROT_READ) = 0 11058 munmap(0xb7f33000, 69106) = 0 11058 brk(0) = 0x9abd000 11058 brk(0x9ade000) = 0x9ade000 11058 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11058 open("/etc/nsswitch.conf", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=1742, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1742 11058 read(4, "", 4096) = 0 11058 close(4) = 0 11058 munmap(0xb7f43000, 4096) = 0 11058 open("/etc/ld.so.cache", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11058 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f33000 11058 close(4) = 0 11058 open("/lib/libnss_files.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=46640, ...}) = 0 11058 old_mmap(NULL, 41620, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x5cd000 11058 old_mmap(0x5d6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x8000) = 0x5d6000 11058 close(4) = 0 11058 mprotect(0x5d6000, 4096, PROT_READ) = 0 11058 munmap(0xb7f33000, 69106) = 0 11058 open("/etc/services", O_RDONLY) = 4 11058 fcntl64(4, F_GETFD) = 0 11058 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=20385, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 read(4, "# /etc/services:\n# $Id: services"..., 4096) = 4096 11058 close(4) = 0 11058 munmap(0xb7f43000, 4096) = 0 11058 socket(PF_FILE, SOCK_STREAM, 0) = 4 11058 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) 11058 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 11058 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) 11058 close(4) = 0 11058 socket(PF_FILE, SOCK_STREAM, 0) = 4 11058 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) 11058 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 11058 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) 11058 close(4) = 0 11058 gettimeofday({1168534555, 790023}, NULL) = 0 11058 getpid() = 11058 11058 open("/etc/resolv.conf", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=115, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 read(4, "; generated by /sbin/dhclient-sc"..., 4096) = 115 11058 read(4, "", 4096) = 0 11058 close(4) = 0 11058 munmap(0xb7f43000, 4096) = 0 11058 open("/etc/host.conf", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 read(4, "order hosts,bind\n", 4096) = 17 11058 read(4, "", 4096) = 0 11058 close(4) = 0 11058 munmap(0xb7f43000, 4096) = 0 11058 open("/etc/hosts", O_RDONLY) = 4 11058 fcntl64(4, F_GETFD) = 0 11058 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=178, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 read(4, "# Do not remove the following li"..., 4096) = 178 11058 read(4, "", 4096) = 0 11058 close(4) = 0 11058 munmap(0xb7f43000, 4096) = 0 11058 open("/etc/ld.so.cache", O_RDONLY) = 4 11058 fstat64(4, {st_mode=S_IFREG|0644, st_size=69106, ...}) = 0 11058 old_mmap(NULL, 69106, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f33000 11058 close(4) = 0 11058 open("/lib/libnss_dns.so.2", O_RDONLY) = 4 11058 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\r\0"..., 512) = 512 11058 fstat64(4, {st_mode=S_IFREG|0755, st_size=21704, ...}) = 0 11058 old_mmap(NULL, 20612, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xf54000 11058 old_mmap(0xf58000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3000) = 0xf58000 11058 close(4) = 0 11058 mprotect(0xf58000, 4096, PROT_READ) = 0 11058 munmap(0xb7f33000, 69106) = 0 11058 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 11058 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.12.32")}, 28) = 0 11058 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) 11058 fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 11058 gettimeofday({1168534555, 795090}, NULL) = 0 11058 poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 11058 send(4, "I.\1\0\0\1\0\0\0\0\0\0\003211\00220\003168\003192\7in-"..., 45, 0) = 45 11058 poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 11058 ioctl(4, FIONREAD, [127]) = 0 11058 recvfrom(4, "I.\205\203\0\1\0\0\0\1\0\0\003211\00220\003168\003192\7"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.12.32")}, [16]) = 127 11058 close(4) = 0 11058 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000 11058 write(1, "Trying 192.168.20.211...\r\n", 26) = 26 11058 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4 11058 setsockopt(4, SOL_IP, IP_TOS, [16], 4) = 0 11058 connect(4, {sa_family=AF_INET, sin_port=htons(23), sin_addr=inet_addr("192.168.20.211")}, 16) = 0 11058 open("/usr/local/rancid/.telnetrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) 11058 write(1, "Connected to 192.168.20.211 (192"..., 47) = 47 11058 write(1, "Escape character is \'^]\'.\r\n", 27) = 27 11058 rt_sigaction(SIGINT, {0xfcb625, [], SA_INTERRUPT|SA_NOMASK}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGQUIT, {0xfcb68b, [], SA_INTERRUPT|SA_NOMASK}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGPIPE, {0xfcb5f8, [], SA_INTERRUPT|SA_NOMASK}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGWINCH, {0xfcb712, [], SA_INTERRUPT|SA_NOMASK}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTSTP, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, {SIG_DFL}, 8) = 0 11058 rt_sigaction(SIGTSTP, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, 8) = 0 11058 ioctl(0, SNDCTL_TMR_STOP or TCSETSW 11057 <... select resumed> ) = 0 (Timeout) 11057 gettimeofday({1168534556, 44218}, {360, 0}) = 0 11057 gettimeofday({1168534556, 44332}, {360, 0}) = 0 11057 select(0, [], [], [], {0, 1870}) = 0 (Timeout) 11057 gettimeofday({1168534556, 48125}, {360, 0}) = 0 11057 gettimeofday({1168534556, 48227}, {360, 0}) = 0 11057 time(NULL) = 1168534556 11057 brk(0x934d000) = 0x934d000 11057 time(NULL) = 1168534556 11057 brk(0x936e000) = 0x936e000 11057 brk(0x936b000) = 0x936b000 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 58063}, {360, 0}) = 0 11057 gettimeofday({1168534556, 58163}, {360, 0}) = 0 11057 gettimeofday({1168534556, 58280}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999783}) = 1 (in [4], left {44, 999783}) 11057 gettimeofday({1168534556, 58547}, {360, 0}) = 0 11057 read(4, "Trying 192.168.20.211...\r\r\nConne"..., 4096) = 103 11058 <... ioctl resumed> , {B38400 opost isig icanon echo ...}) = 0 11057 write(1, "Trying 192.168.20.211...\r\r\nConne"..., 103 11058 ioctl(0, FIONBIO 11057 <... write resumed> ) = 103 11058 <... ioctl resumed> , [1]) = 0 11057 time( 11058 ioctl(1, FIONBIO, [1]) = 0 11058 ioctl(4, FIONBIO, [1]) = 0 11058 setsockopt(4, SOL_SOCKET, SO_OOBINLINE, [1], 4) = 0 11058 uname({sys="Linux", node="VALIANT", ...}) = 0 11058 time(NULL) = 1168534556 11058 stat64("/etc/krb5.conf", {st_mode=S_IFREG|0644, st_size=177, ...}) = 0 11058 open("/etc/krb5.conf", O_RDONLY|O_LARGEFILE) = 5 11058 access("/etc/krb5.conf", W_OK) = -1 EACCES (Permission denied) 11058 fstat64(5, {st_mode=S_IFREG|0644, st_size=177, ...}) = 0 11058 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f42000 11058 read(5, "[libdefaults]\n default_realm = E"..., 4096) = 177 11058 read(5, "", 4096) = 0 11058 close(5) = 0 11058 munmap(0xb7f42000, 4096) = 0 11058 access("/etc/krb5.conf", R_OK) = 0 11058 time(NULL) = 1168534556 11058 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 5 11058 fstat64(5, {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), ...}) = 0 11058 read(5, "};W\vk,\225\3\337c\263\223E\232\325s\216C{\273", 20) = 20 11058 close(5) = 0 11058 gettimeofday({1168534556, 63576}, NULL) = 0 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11057 <... time resumed> NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 time(NULL) = 1168534556 11058 select(16, [0 4], [4], [4], {0, 0}) = 2 (in [4], out [4], left {0, 0}) 11058 recv(4, "\377\375\3\377\373\3\377\373\1", 8192, 0) = 9 11058 send(4, "\377\375&\377\373&\377\375\3\377\373\30\377\373\37\377"..., 33, 0) = 33 11058 rt_sigaction(SIGTSTP, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, 8) = 0 11058 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost -isig -icanon echo ...}) = 0 11058 ioctl(0, FIONBIO, [1]) = 0 11058 ioctl(1, FIONBIO, [1]) = 0 11058 rt_sigaction(SIGTSTP, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, {0xfcb6cb, [], SA_INTERRUPT|SA_NOMASK}, 8) = 0 11058 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost -isig -icanon -echo ...}) = 0 11058 ioctl(0, FIONBIO, [1]) = 0 11058 ioctl(1, FIONBIO, [1]) = 0 11058 select(16, [0 4], [4], [4], {0, 0}) = 1 (out [4], left {0, 0}) 11058 send(4, "\377\373\3\377\375\1", 6, 0) = 6 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL 11057 gettimeofday({1168534556, 66814}, {360, 0}) = 0 11057 gettimeofday({1168534556, 66907}, {360, 0}) = 0 11057 gettimeofday({1168534556, 67012}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999802} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "\377\374&\377\376&\377\376\30\377\376\37\377\376 \377\376"..., 8192, 0) = 30 11058 select(16, [0 4], [4], [4], {0, 0}) = 1 (out [4], left {0, 0}) 11058 send(4, "\377\373$", 3, 0) = 3 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL) = 1 (in [4]) 11058 recv(4, "\r\n", 8192, 0) = 2 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "\r\n", 2 11057 <... select resumed> ) = 1 (in [4], left {44, 864000}) 11058 <... write resumed> ) = 2 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 204166}, {360, 0}) = 0 11057 read(4, "\r\n", 4096) = 2 11057 write(1, "\r\n", 2) = 2 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 205573}, {360, 0}) = 0 11057 gettimeofday({1168534556, 205665}, {360, 0}) = 0 11057 gettimeofday({1168534556, 205763}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999810} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r"..., 8192, 0) = 567 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r"..., 567 11057 <... select resumed> ) = 1 (in [4], left {44, 984000}) 11058 <... write resumed> ) = 567 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 221031}, {360, 0}) = 0 11057 read(4, "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r"..., 4096) = 567 11057 write(1, "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r"..., 567) = 567 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 223435}, {360, 0}) = 0 11057 gettimeofday({1168534556, 223530}, {360, 0}) = 0 11057 gettimeofday({1168534556, 223631}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999804} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "\r\n User Interface Menu\r\n\r"..., 8192, 0) = 101 11058 select(16, [0 4], [1 4], [4], {0, 0}) = 2 (out [1 4], left {0, 0}) 11058 send(4, "\377\372$\0\1DISPLAY\0localhost:10.0\377\360", 29, 0) = 29 11058 write(1, "\r\n User Interface Menu\r\n\r"..., 92 11057 <... select resumed> ) = 1 (in [4], left {44, 936000}) 11058 <... write resumed> ) = 92 11057 gettimeofday( 11058 select(16, [0 4], [], [4], {0, 0} 11057 <... gettimeofday resumed> {1168534556, 284448}, {360, 0}) = 0 11058 <... select resumed> ) = 0 (Timeout) 11057 read(4, 11058 select(16, [0 4], [], [4], NULL 11057 <... read resumed> "\r\n User Interface Menu\r\n\r"..., 4096) = 92 11057 write(1, "\r\n User Interface Menu\r\n\r"..., 92) = 92 11057 write(4, "K\r", 2 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 2 11058 read(0, 11057 time( 11058 <... read resumed> "K\r", 8192) = 2 11057 <... time resumed> NULL) = 1168534556 11058 select(16, [0 4], [4], [4], {0, 0} 11057 time( 11058 <... select resumed> ) = 1 (out [4], left {0, 0}) 11057 <... time resumed> NULL) = 1168534556 11058 send(4, "K\r\0", 3, 0 11057 time( 11058 <... send resumed> ) = 3 11057 <... time resumed> NULL) = 1168534556 11058 select(16, [0 4], [], [4], {0, 0} 11057 gettimeofday( 11058 <... select resumed> ) = 0 (Timeout) 11057 <... gettimeofday resumed> {1168534556, 288028}, {360, 0}) = 0 11058 select(16, [0 4], [], [4], NULL 11057 gettimeofday({1168534556, 288250}, {360, 0}) = 0 11057 gettimeofday({1168534556, 288349}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999679} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "K\r\n\r\n\r\n CLI session with th"..., 8192, 0) = 106 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "K\r\n\r\n\r\n CLI session with th"..., 106 11057 <... select resumed> ) = 1 (in [4], left {44, 604000}) 11058 <... write resumed> ) = 106 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 685173}, {360, 0}) = 0 11057 read(4, "K\r\n\r\n\r\n CLI session with th"..., 4096) = 106 11057 write(1, "K\r\n\r\n\r\n CLI session with th"..., 106) = 106 11057 write(4, "enable\r", 7 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 7 11058 read(0, 11057 time( 11058 <... read resumed> "enable\r", 8192) = 7 11057 <... time resumed> NULL) = 1168534556 11058 select(16, [0 4], [4], [4], {0, 0} 11057 time( 11058 <... select resumed> ) = 1 (out [4], left {0, 0}) 11057 <... time resumed> NULL) = 1168534556 11058 send(4, "enable\r\0", 8, 0 11057 time( 11058 <... send resumed> ) = 8 11057 <... time resumed> NULL) = 1168534556 11058 select(16, [0 4], [], [4], {0, 0} 11057 gettimeofday( 11058 <... select resumed> ) = 0 (Timeout) 11057 <... gettimeofday resumed> {1168534556, 688888}, {360, 0}) = 0 11058 select(16, [0 4], [], [4], NULL 11057 gettimeofday({1168534556, 689085}, {360, 0}) = 0 11057 gettimeofday({1168534556, 689185}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999703} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "enable\n\r\0Enter password: ", 8192, 0) = 26 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "enable\n\rEnter password: ", 25 11057 <... select resumed> ) = 1 (in [4], left {44, 932000}) 11058 <... write resumed> ) = 25 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 759219}, {360, 0}) = 0 11057 read(4, "enable\n\rEnter password: ", 4096) = 25 11057 write(1, "enable\n\rEnter password: ", 25) = 25 11057 write(4, "XXXXXXXX\r", 6 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 6 11058 read(0, "XXXXXXXX\r", 8192) = 6 11058 select(16, [0 4], [4], [4], {0, 0}) = 1 (out [4], left {0, 0}) 11058 send(4, "XXXXXXXX\r\0", 7, 0) = 7 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 761594}, {360, 0}) = 0 11057 gettimeofday({1168534556, 761688}, {360, 0}) = 0 11057 gettimeofday({1168534556, 761789}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999805} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "*****\r\n", 8192, 0) = 7 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "*****\r\n", 7 11057 <... select resumed> ) = 1 (in [4], left {44, 940000}) 11058 <... write resumed> ) = 7 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 823281}, {360, 0}) = 0 11057 read(4, "*****\r\n", 4096) = 7 11057 write(1, "*****\r\n", 7) = 7 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 824200}, {360, 0}) = 0 11057 gettimeofday({1168534556, 824294}, {360, 0}) = 0 11057 gettimeofday({1168534556, 824396}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999804} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "frk1924#", 8192, 0) = 8 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "frk1924#", 8 11057 <... select resumed> ) = 1 (in [4], left {44, 904000}) 11058 <... write resumed> ) = 8 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 923376}, {360, 0}) = 0 11057 read(4, "frk1924#", 4096) = 8 11057 write(1, "frk1924#", 8) = 8 11057 write(4, "\r", 1 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 1 11058 read(0, "\r", 8192) = 1 11058 select(16, [0 4], [4], [4], {0, 0}) = 1 (out [4], left {0, 0}) 11058 send(4, "\r\0", 2, 0) = 2 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 926358}, {360, 0}) = 0 11057 gettimeofday({1168534556, 926454}, {360, 0}) = 0 11057 gettimeofday({1168534556, 926554}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999804} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "\n", 8192, 0) = 1 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "\n", 1 11057 <... select resumed> ) = 1 (in [4], left {44, 940000}) 11058 <... write resumed> ) = 1 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534556, 987101}, {360, 0}) = 0 11057 read(4, "\n", 4096) = 1 11057 write(1, "\n", 1) = 1 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 time(NULL) = 1168534556 11057 gettimeofday({1168534556, 988349}, {360, 0}) = 0 11057 gettimeofday({1168534556, 988445}, {360, 0}) = 0 11057 gettimeofday({1168534556, 988545}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999804} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "\r\0frk1924#", 8192, 0) = 10 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "\rfrk1924#", 9 11057 <... select resumed> ) = 1 (in [4], left {44, 904000}) 11058 <... write resumed> ) = 9 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534557, 87021}, {360, 0}) = 0 11057 read(4, "\rfrk1924#", 4096) = 9 11057 write(1, "\rfrk1924#", 9) = 9 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(4, "term length 0\r", 14 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 14 11058 read(0, "term length 0\r", 8192) = 14 11058 select(16, [0 4], [4], [4], {0, 0}) = 1 (out [4], left {0, 0}) 11058 send(4, "term length 0\r\0", 15, 0) = 15 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 gettimeofday({1168534557, 92815}, {360, 0}) = 0 11057 gettimeofday({1168534557, 92913}, {360, 0}) = 0 11057 gettimeofday({1168534557, 93014}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999801} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "term length 0\n\r\0 ^\r\n"..., 8192, 0) = 73 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "term length 0\n\r ^\r\n%"..., 72 11057 <... select resumed> ) = 1 (in [4], left {44, 928000}) 11058 <... write resumed> ) = 72 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534557, 168121}, {360, 0}) = 0 11057 read(4, "term length 0\n\r ^\r\n%"..., 4096) = 72 11057 write(1, "term length 0\n\r ^\r\n%"..., 72) = 72 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 gettimeofday({1168534557, 169845}, {360, 0}) = 0 11057 gettimeofday({1168534557, 169942}, {360, 0}) = 0 11057 gettimeofday({1168534557, 170040}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999805} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "frk1924#", 8192, 0) = 8 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "frk1924#", 8 11057 <... select resumed> ) = 1 (in [4], left {44, 904000}) 11058 <... write resumed> ) = 8 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534557, 266991}, {360, 0}) = 0 11057 read(4, "frk1924#", 4096) = 8 11057 write(1, "frk1924#", 8) = 8 11057 write(4, "sho running\r", 12 11058 <... select resumed> ) = 1 (in [0]) 11057 <... write resumed> ) = 12 11058 read(0, 11057 time( 11058 <... read resumed> "sho running\r", 8192) = 12 11057 <... time resumed> NULL) = 1168534557 11058 select(16, [0 4], [4], [4], {0, 0} 11057 brk(0x938c000 11058 <... select resumed> ) = 1 (out [4], left {0, 0}) 11057 <... brk resumed> ) = 0x938c000 11058 send(4, "sho running\r\0", 13, 0 11057 time( 11058 <... send resumed> ) = 13 11058 select(16, [0 4], [], [4], {0, 0}) = 0 (Timeout) 11058 select(16, [0 4], [], [4], NULL 11057 <... time resumed> NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 gettimeofday({1168534557, 273414}, {360, 0}) = 0 11057 gettimeofday({1168534557, 273507}, {360, 0}) = 0 11057 gettimeofday({1168534557, 273610}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999804} 11058 <... select resumed> ) = 1 (in [4]) 11058 recv(4, "sho running\n\r\0Building configura"..., 8192, 0) = 388 11058 select(16, [0 4], [1], [4], {0, 0}) = 1 (out [1], left {0, 0}) 11058 write(1, "sho running\n\rBuilding configurat"..., 387 11057 <... select resumed> ) = 1 (in [4], left {44, 756000}) 11058 <... write resumed> ) = 387 11057 gettimeofday( 11058 select(16, [0 4], [], [4], NULL 11057 <... gettimeofday resumed> {1168534557, 519686}, {360, 0}) = 0 11057 read(4, "sho running\n\rBuilding configurat"..., 4096) = 387 11057 write(1, "sho running\n\r", 13) = 13 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "Building configuration...\r\n", 27) = 27 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "Current configuration:\r\n", 24) = 24 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "no cgmp\r\n", 9) = 9 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "hostname \"frk1924\"\r\n", 20) = 20 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "!\r\n", 3) = 3 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/1\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/2\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/3\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/4\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/5\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/6\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/7\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/8\r\n", 28) = 28 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "monitor-port monitored 0/9\r\n\r\n", 30) = 30 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 write(1, "--More--\r\n", 10) = 10 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 time(NULL) = 1168534557 11057 gettimeofday({1168534557, 535553}, {360, 0}) = 0 11057 gettimeofday({1168534557, 535647}, {360, 0}) = 0 11057 gettimeofday({1168534557, 535747}, {360, 0}) = 0 11057 select(5, [4], [], [4], {44, 999806}) = 0 (Timeout) 11057 gettimeofday({1168534602, 538659}, {360, 0}) = 0 11057 gettimeofday({1168534602, 538772}, {360, 0}) = 0 11057 write(1, "\nError: TIMEOUT reached\n", 24) = 24 11057 fcntl64(4, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) 11057 fcntl64(4, F_SETFL, O_RDWR) = 0 11057 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) 11057 write(4, "", 0) = 0 11057 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 11057 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 11057 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11057 nanosleep({1, 0}, {1, 0}) = 0 11057 close(4 11058 <... select resumed> ) = 1 (in [0]) 11057 <... close resumed> ) = 0 11058 --- SIGHUP (Hangup) @ 0 (0) --- 11057 open("/dev/null", O_RDONLY) = 4 11057 --- SIGCHLD (Child exited) @ 0 (0) --- 11057 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 11057 waitpid(11058, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGHUP}], 0) = 11058 11057 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 11057 fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) 11057 fcntl64(3, F_SETFL, O_RDWR) = 0 11057 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) 11057 close(3) = 0 11057 open("/dev/null", O_RDONLY) = 3 11057 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 11057 fcntl64(2, F_GETFL) = 0x8802 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE) 11057 fcntl64(2, F_SETFL, O_RDWR|O_LARGEFILE) = 0 11057 fcntl64(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 11057 close(2) = 0 11057 open("/dev/null", O_RDONLY) = 2 11057 fcntl64(2, F_SETFD, FD_CLOEXEC) = 0 11057 fcntl64(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 11057 fcntl64(0, F_SETFL, O_RDWR|O_LARGEFILE) = 0 11057 fcntl64(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 11057 write(1, "", 0) = 0 11057 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 11057 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 11057 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 11057 nanosleep({1, 0}, {1, 0}) = 0 11057 close(0) = 0 11057 close(1) = 0 11057 open("/dev/null", O_RDONLY) = 0 11057 fcntl64(0, F_SETFD, FD_CLOEXEC) = 0 11057 brk(0x9389000) = 0x9389000 11057 brk(0x9388000) = 0x9388000 11057 brk(0x9384000) = 0x9384000 11057 fcntl64(4, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(4, F_SETFL, O_RDONLY) = 0 11057 fcntl64(4, F_GETFL) = 0 (flags O_RDONLY) 11057 write(4, "", 0) = -1 EBADF (Bad file descriptor) 11057 close(4) = 0 11057 fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(3, F_SETFL, O_RDONLY) = 0 11057 fcntl64(3, F_GETFL) = 0 (flags O_RDONLY) 11057 close(3) = 0 11057 fcntl64(2, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(2, F_SETFL, O_RDONLY) = 0 11057 fcntl64(2, F_GETFL) = 0 (flags O_RDONLY) 11057 close(2) = 0 11057 fcntl64(2, F_GETFL) = -1 EBADF (Bad file descriptor) 11057 fcntl64(2, F_SETFL, O_NONBLOCK|O_SYNC|O_ASYNC|O_DIRECT|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW|O_NOATIME|0xfff80000) = -1 EBADF (Bad file descriptor) 11057 fcntl64(1, F_GETFL) = -1 EBADF (Bad file descriptor) 11057 fcntl64(1, F_SETFL, O_NONBLOCK|O_SYNC|O_ASYNC|O_DIRECT|O_LARGEFILE|O_DIRECTORY|O_NOFOLLOW|O_NOATIME|0xfff80000) = -1 EBADF (Bad file descriptor) 11057 fcntl64(0, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(0, F_SETFL, O_RDONLY) = 0 11057 fcntl64(0, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(0, F_GETFL) = 0 (flags O_RDONLY) 11057 fcntl64(0, F_SETFL, O_RDONLY) = 0 11057 fcntl64(0, F_GETFL) = 0 (flags O_RDONLY) 11057 write(1, "", 0) = -1 EBADF (Bad file descriptor) 11057 close(0) = 0 11057 exit_group(0) = ? ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. From stephane.malo at gmail.com Thu Jan 11 16:43:34 2007 From: stephane.malo at gmail.com (Stephane Malo) Date: Thu, 11 Jan 2007 11:43:34 -0500 Subject: [rancid] CISCO username problem Message-ID: <7fe2ba3a0701110843t4a4b5a82uc49718b500b8c64@mail.gmail.com> Hello all, I`m new to RANCID and i was just assigned to work on it. I've read some of the threads but due to my lack of knowledge i would need an "idiot proof" explanation. Problem is with CISCO CAT switches. Q1 What is the difference that RANCID needs to know if its a CISCO CAT IOS or if its a CISCO IOS? When i try to do a clogin SW1 it gets stuck on the username $ clogin sw1 sw1 Tryning with username : password : password : telnet : 3des : spawn telnet sw1 Destination sw1 found for customer XYZ. Trying 10.x.x.x... Connected to 10.x.x.x. Escape character is '^]'. Cisco Systems, Inc. Console ################################################################################## # # # You are about to access an Enterprise Network # # # # The programs and data stored on this system are licensed to or are the # # private property of the enterprise and are lawfully available only to # # authorized users for approved purposes. Unauthorized access to any # # program or data on this system is not permitted, and any unauthorized # # access beyond this point may lead to prosecution. # # # # This system may be monitored at any time for operational reasons. # # Therefore, if you are not an authorized user, do not attempt to log in. # # # ################################################################################## # Vous etes sur le point d'acceder au reseau de l'entreprise # # # # Les programmes et les donnees compris dans ce systeme sont regis # # par une licence ou sont la propriete privee de l'entreprise et ils ne # # sont accessibles legalement qu'aux usagers autorises a des fins # # autorisees. Il est interdit d'y acceder sans autorisation et tout acces # # non autorise au-dela de ce point peut entrainer des poursuites. # # # # Le systeme peut en tout temps faire l'objet d'une surveillance. Si vous # # n'etes pas un usager autorise n'essayez pas d'y acceder. # # v1.1 # ################################################################################## Username: Username: My .cloginrc file looks like: add password sw1 password add user sw1 username add method sw1 telnet add autoenable sw1 1 When i log manually into my CISCO the prompt look like: SW1 (enable) Q2. Do i need to change it? If yes then what command should i do on the CISCO? Q3. Should i put: set prompt SW1# Q4. Should autoenable be set to 0 or 1 In general i saw multiple threads with various loggin problems on the CISCO cat switches. Q5. Is there a permanent fix? Thanks for your help -- Best regards Stephane Malo 514-963-6256 "Insanity is doing the same thing over and over, and expecting a different result." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/ef070de0/attachment.html From jsherrill at currentcomm.net Thu Jan 11 17:55:13 2007 From: jsherrill at currentcomm.net (Sherrill, Justin) Date: Thu, 11 Jan 2007 12:55:13 -0500 Subject: [rancid] Re: CISCO username problem Message-ID: <7D3405B5488C0648B39948C26AE91A9B028ACC36@rocexch01.currentcomm.com> My guess is that the # symbols in your login banner, along with autoenable, are confusing Rancid. It looks for those to indicate a prompt in enable mode, so it thinks it's already at a prompt when it's just the banner scrolling in, so it issues commands too early and waits for them to return. Try changing your banner to use some other character for the border. ----------------------------------------- Justin C. Sherrill - CURRENT Communications 220 Kenneth Drive Rochester, New York 14623 P: 585.486.0549 F: 585.486.0030 ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Stephane Malo Sent: Thursday, January 11, 2007 11:44 AM To: rancid-discuss at shrubbery.net Subject: [rancid] CISCO username problem Hello all, I`m new to RANCID and i was just assigned to work on it. I've read some of the threads but due to my lack of knowledge i would need an "idiot proof" explanation. Problem is with CISCO CAT switches. Q1 What is the difference that RANCID needs to know if its a CISCO CAT IOS or if its a CISCO IOS? When i try to do a clogin SW1 it gets stuck on the username $ clogin sw1 sw1 Tryning with username : password : password : telnet : 3des : spawn telnet sw1 Destination sw1 found for customer XYZ. Trying 10.x.x.x... Connected to 10.x.x.x. Escape character is '^]'. Cisco Systems, Inc. Console ######################################################################## ########## # # # You are about to access an Enterprise Network # # # # The programs and data stored on this system are licensed to or are the # # private property of the enterprise and are lawfully available only to # # authorized users for approved purposes. Unauthorized access to any # # program or data on this system is not permitted, and any unauthorized # # access beyond this point may lead to prosecution. # # # # This system may be monitored at any time for operational reasons. # # Therefore, if you are not an authorized user, do not attempt to log in. # # # ######################################################################## ########## # Vous etes sur le point d'acceder au reseau de l'entreprise # # # # Les programmes et les donnees compris dans ce systeme sont regis # # par une licence ou sont la propriete privee de l'entreprise et ils ne # # sont accessibles legalement qu'aux usagers autorises a des fins # # autorisees. Il est interdit d'y acceder sans autorisation et tout acces # # non autorise au-dela de ce point peut entrainer des poursuites. # # # # Le systeme peut en tout temps faire l'objet d'une surveillance. Si vous # # n'etes pas un usager autorise n'essayez pas d'y acceder. # # v1.1 # ######################################################################## ########## Username: Username: My .cloginrc file looks like: add password sw1 password add user sw1 username add method sw1 telnet add autoenable sw1 1 When i log manually into my CISCO the prompt look like: SW1 (enable) Q2. Do i need to change it? If yes then what command should i do on the CISCO? Q3. Should i put: set prompt SW1# Q4. Should autoenable be set to 0 or 1 In general i saw multiple threads with various loggin problems on the CISCO cat switches. Q5. Is there a permanent fix? Thanks for your help -- Best regards Stephane Malo 514-963-6256 "Insanity is doing the same thing over and over, and expecting a different result." ***CONFIDENTIALITY NOTICE*** The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this message from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/e8f434ef/attachment.html From heas at shrubbery.net Thu Jan 11 19:28:18 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 11:28:18 -0800 Subject: [rancid] Re: Firewall ports In-Reply-To: <082FEA82DC985B4F8A6B412D5AC4E22052FC04@exchange.Equivoice.local> References: <082FEA82DC985B4F8A6B412D5AC4E22052FC04@exchange.Equivoice.local> Message-ID: <20070111192818.GD25460@shrubbery.net> Thu, Jan 11, 2007 at 10:52:10AM -0600, Todd Heide: > What needs to be opened up for Rancid to work on a Cisco SDM router? > > depending upon configuration, telnet or ssh (and possibly rsh) are used to connect to devices. From heas at shrubbery.net Thu Jan 11 19:31:21 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 11:31:21 -0800 Subject: [rancid] Re: CISCO username problem In-Reply-To: <7D3405B5488C0648B39948C26AE91A9B028ACC36@rocexch01.currentcomm.com> References: <7D3405B5488C0648B39948C26AE91A9B028ACC36@rocexch01.currentcomm.com> Message-ID: <20070111193121.GE25460@shrubbery.net> Thu, Jan 11, 2007 at 12:55:13PM -0500, Sherrill, Justin: > My guess is that the # symbols in your login banner, along with > autoenable, are confusing Rancid. It looks for those to indicate a > prompt in enable mode, so it thinks it's already at a prompt when it's > just the banner scrolling in, so it issues commands too early and waits > for them to return. Try changing your banner to use some other > character for the border. Also see clogin(1), esp CAVEATS and BUGS sections. From heas at shrubbery.net Thu Jan 11 19:40:23 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 11:40:23 -0800 Subject: [rancid] Re: On Cisco routers and PIXs, the line ': Written by ..." In-Reply-To: <4E03EDD62CB1CB4599E6BD71DBEDFD200225AD97@usmitry-exm1.corp.lear.com> References: <4E03EDD62CB1CB4599E6BD71DBEDFD200225AD97@usmitry-exm1.corp.lear.com> Message-ID: <20070111194023.GG25460@shrubbery.net> Thu, Jan 11, 2007 at 11:22:52AM -0500, Miotke, Ron: > > Hello, > I'm running RANCID 2.3.1 without any issues and also it was a great > learning experience. > > There might be a small patch for this already. Please point me in the > correct direction; but on Cisco routers and Cisco PIX firewalls when the > configuration is written by using a 'copy running-config startup-config' > or on a PIX a 'write mem' the config listing will show: > > : Written by johndoe at 09:35:47.673 EST Wed Jan 3 2007 > > The existing versions of rancid doesn't show this line when there was a > written change. Perhaps it is filtered, don't know. > > 1. Is there a small mod that can be made in some of the script files so > that this line is documented? > 2. If this has been asked before where can I find change. Lines at the head with a leading ':' are filtered at the top of writeterm. Of course, who writes the config may not be who made the changes. From heas at shrubbery.net Thu Jan 11 20:10:34 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 12:10:34 -0800 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 In-Reply-To: <20070111200643.9E34111CE2D@ni.shrubbery.net> <4CBACF4FA9CE1046907D5132920D794D018C322A@clw1.SKT.ICT> References: <20070111200643.9E34111CE2D@ni.shrubbery.net> <4CBACF4FA9CE1046907D5132920D794D018C322A@clw1.SKT.ICT> Message-ID: <20070111201034.GJ25460@shrubbery.net> I am still concerned about how this will affect other users of clogin. Specifically, Cisco CSS, Force10, Juniper ERX, Procket, Redback, and Extreme. Could those with access to these please try this patch? Wed, Jan 10, 2007 at 05:51:42PM -0600, Justin Shore: > Here's the patch against RANCID 2.3.2a5. *** clogin_orig Fri Aug 9 16:54:10 2002 --- clogin Sun Apr 6 19:20:42 2003 *************** *** 455,460 **** --- 455,462 ---- send "set length 0\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } regsub -all "\[)(]" $prompt {\\&} reprompt # match cisco config mode prompts too, but not for catalyst ie: (enable) *************** *** 699,704 **** --- 701,708 ---- send "set logging session disable\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } expect -re $prompt {} source $sfile RANCID 2.3.2a6 Index: clogin.in =================================================================== RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v retrieving revision 1.107 diff -d -u -r1.107 clogin.in --- clogin.in 8 Dec 2006 21:28:25 -0000 1.107 +++ clogin.in 11 Jan 2007 03:51:29 -0000 @@ -582,6 +582,8 @@ set command "set logging session disable;$command" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } # escape any parens in the prompt, such as "(enable)" regsub -all {[)(]} $prompt {\\&} reprompt @@ -869,6 +871,8 @@ send "set logging session disable\r" } else { send "term length 0\r" + expect -re $prompt {} + send "term width 80\r" } expect -re $prompt {} source $sfile From stephane.malo at gmail.com Thu Jan 11 21:19:01 2007 From: stephane.malo at gmail.com (Stephane Malo) Date: Thu, 11 Jan 2007 16:19:01 -0500 Subject: [rancid] RANCID with Nortel Message-ID: <7fe2ba3a0701111319v2ee2cceesd9884ea727dbe46@mail.gmail.com> Now that i`ve got RANCID working with my CISCO i am now faced with NORTEL (which i have no experience at all) Tried blogin and it did not work. Got further with clogin but problem seems that there is no command line interface for (CLI) BayStack 450-24T. Got the 1st menu asking for CTRL-Y ******************************************************* * Nortel Networks * * Copyright (c) 1996,2000 * * All Rights Reserved * * BayStack 450-24T * * Versions: HW:RevL FW:V1.47 SW:v3.1.0.22 ISVN:1 * ******************************************************* Enter Ctrl-Y to begin. Then other menu asking for password BayStack 450-24T HW:RevL FW:V1.47 SW:v3.1.0.22 ISVN:1 Switch Password: [ *************** ] Enter Password: ******** then got final menu, which you can navigatre with up/down arrows BayStack 450-24T Main Menu IP Configuration/Setup... SNMP Configuration... System Characteristics... Switch Configuration... Console/Comm Port Configuration... Display Hardware Units... Spanning Tree Configuration... TELNET/SNMP Mgr List Configuration... Software Download... Configuration File... Display Event Log Save Current Settings Reset Reset to Default Settings Logout Use arrow keys to highlight option, press or to select option. Question is, how can RANSID query these systems? Did anybody ever do a c or blogin file to take into account these menus or is there a way to log into the BayStacks with CLI that RANCID can use. -- Best regards Stephane Malo 514-963-6256 "Insanity is doing the same thing over and over, and expecting a different result." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/654127a0/attachment.html From heas at shrubbery.net Fri Jan 12 03:55:28 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 19:55:28 -0800 Subject: [rancid] Re: Cisco 1900 configuration retrieval issue In-Reply-To: <822588.12750.qm@web50512.mail.yahoo.com> References: <822588.12750.qm@web50512.mail.yahoo.com> Message-ID: <20070112035528.GP1186@shrubbery.net> Thu, Jan 11, 2007 at 09:03:24AM -0800, Laker Netman: > strace posted at end.... > ... > > expect: continuing expect > > > > expect: does "--More--\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > > "[\n\r]+"? yes > > expect: set expect_out(0,string) "\r\n" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "--More--\r\n" > > --More-- > > expect: continuing expect > > > > expect: does "" (spawn_id exp4) match regular expression "\u0008+"? no > > "^[^\n\r *]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no > > "^[^\n\r]*frk1924([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no > > "[\n\r]+"? no > > "[^\r\n]*Press to cont[^\r\n]*"? no > > "^ *--More--[^\n\r]*"? no > > "^<-+ More -+>[^\n\r]*"? no > > expect: timed out > > > > Error: TIMEOUT reached > > write() failed to write anything - will sleep(1) and retry... where is the handling for the 1900's pager prompt? please try 2.3.2a6 or it's clogin. From heas at shrubbery.net Fri Jan 12 04:03:58 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 11 Jan 2007 20:03:58 -0800 Subject: [rancid] Re: RANCID with Nortel In-Reply-To: <7fe2ba3a0701111319v2ee2cceesd9884ea727dbe46@mail.gmail.com> References: <7fe2ba3a0701111319v2ee2cceesd9884ea727dbe46@mail.gmail.com> Message-ID: <20070112040358.GR1186@shrubbery.net> Thu, Jan 11, 2007 at 04:19:01PM -0500, Stephane Malo: > > Use arrow keys to highlight option, press or to select > option. Sorry, there is no support for devices with playskool UIs. From justin.shore at sktbcs.com Fri Jan 12 06:06:24 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Fri, 12 Jan 2007 00:06:24 -0600 Subject: [rancid] Re: RANCID with Nortel Message-ID: <4CBACF4FA9CE1046907D5132920D794D018C334E@clw1.SKT.ICT> With a device like that you'd be better off looking into SNMP options to force it to write it's config out to a TFTP server. Then you could use local CVS commands on it. That reminds me of the old Cabletron switches. Ah the good old days... Justin -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of john heasley Sent: Thursday, January 11, 2007 10:04 PM To: Stephane Malo Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: RANCID with Nortel Thu, Jan 11, 2007 at 04:19:01PM -0500, Stephane Malo: > > Use arrow keys to highlight option, press or to select > option. Sorry, there is no support for devices with playskool UIs. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From antonio.pena at Intelsat.com Fri Jan 12 16:48:00 2007 From: antonio.pena at Intelsat.com (Pena, Antonio) Date: Fri, 12 Jan 2007 11:48:00 -0500 Subject: [rancid] /tmp/.networking.run.lock exists Message-ID: <642DFC23A5122746BB964E35A5F26D20565F97@US-EX2.na.ds.intelsat.com> Hello I started to get this message after Rancid runs: more networking.20070112.110101 starting: Fri Jan 12 11:01:01 EST 2007 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 Jan 12 10:01 /tmp/.networking.run.lock ending: Fri Jan 12 11:01:01 EST 2007 You have new mail in /var/spool/mail/root I deleted the file, but next time breaks again. Also found another file on /tmp/ called "rancid.networking.2447", if I cat this file comes with same message line.... cvs update: [16:46:32] waiting for rancid's lock in /usr/local/rancid//var/CVS/networking Any help is really appreciated Antonio Intelsat is the world's largest provider of fixed satellite services. Real-time, constant communications with people anywhere in the world is closer, by far. For more information about Intelsat, visit www.intelsat.com. This email message is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. From regnar.lyngso at aak.com Fri Jan 12 14:05:08 2007 From: regnar.lyngso at aak.com (Regnar Bang =?ISO-8859-1?Q?Lyngs=F8?=) Date: Fri, 12 Jan 2007 15:05:08 +0100 Subject: [rancid] Re: Cisco 1900 configuration retrieval issue In-Reply-To: <599441.37042.qm@web50503.mail.yahoo.com> Message-ID: Hi, > After reviewing the archives, I found and read a thread from 3/24/06 > which details the issue I appear to be experiencing. I could not > find a follow-up detailing a fix or workaround. The fix I have used (don't know the version of Rancid we are running - so no diff): Around Line 538 in clogin: for {set i 0} {$i < $num_commands} { incr i} { send "[subst -nocommands [lindex $commands $i]]\r" expect { -re "\b+" { exp_continue } Around line 553 in clogin: -re "^ *--More--\[^\n\r]*" { send " " exp_continue } Move the match for More up so that it is the first thing Expect tries to match - i.e., patched version from line 536: send "[subst -nocommands [lindex $commands $i]]\r" expect { -re "^ *--More--\[^\n\r]*" { send " " exp_continue } -re "\b+" { exp_continue } Works for us with Cat1900 (and doesn't break on our PIXs, 2924Ms, 2950s, 3548s, 3600s, 2948G-L3, and 3550 - be warned - it might break on other Cisco boxes). Regards, -- Regnar Bang Lyngs?, Network Administrator AarhusKarlshamn Denmark A/S M.P. Bruuns Gade 27, DK-8000 ?rhus C, Denmark Email: mailto:regnar.lyngso at aak.com Phone: +45 87 30 61 65 Mobile: +45 40 45 08 89 From stephane.malo at gmail.com Fri Jan 12 18:29:09 2007 From: stephane.malo at gmail.com (Stephane Malo) Date: Fri, 12 Jan 2007 13:29:09 -0500 Subject: [rancid] CISCO switches getting TIMEOUTs Message-ID: <7fe2ba3a0701121029s35d89f39w83ab4508ee858502@mail.gmail.com> When using clogin to log into a CISCO switch i am able to get to the enable prompt but i cannot issue any commands (see below) ... ... ... * Le systeme peut en tout temps faire l'objet d'une surveillance. Si vous * * n'etes pas un usager autorise n'essayez pas d'y acceder. * * v1.1 * ********************************************************************************** User Access Verification Username: GOT (Username|Login|login|user name): {username} Password: C45328SHEFFIELDSW1#sh ver Error: TIMEOUT reached [smadmin at dcoc2v configs]$ sh ver ver: ver: No such file or directory [smadmin at dcoc2v configs]$ As you can see i try to do the "show version" command but nothing happens. Funny thing is after i get the TIMEOUT error my command seems to be echoed to my unix prompt. Any ideas guys. -- Best regards Stephane Malo 514-963-6256 "Insanity is doing the same thing over and over, and expecting a different result." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070112/fa91e94c/attachment.html From justin.shore at sktbcs.com Fri Jan 12 20:05:27 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Fri, 12 Jan 2007 14:05:27 -0600 Subject: [rancid] Re: /tmp/.networking.run.lock exists Message-ID: <4CBACF4FA9CE1046907D5132920D794D018C33EA@clw1.SKT.ICT> It sounds like you're checking too many hosts in one single linear run and it's taking too long. You may want to either increase PAR_COUNT in etc/rancid.conf or you may want to run each of the groups listed in LIST_OF_GROUPS from cron separately. 0 */1 * * * rancid-run abc 0 */1 * * * rancid-run def 0 */1 * * * rancid-run ghi 0 */1 * * * rancid-run jkl 0 */1 * * * rancid-run mno I do both. I set PAR_COUNT to 5 and I run each of our POPs (how I break up LIST_OF_GROUPS) separately from cron. That way a slow speed link in one POP won't hold up the rancid on the other POPs. That's my take on your problem. Justin -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Pena, Antonio Sent: Friday, January 12, 2007 10:48 AM To: rancid-discuss at shrubbery.net Subject: [rancid] /tmp/.networking.run.lock exists Hello I started to get this message after Rancid runs: more networking.20070112.110101 starting: Fri Jan 12 11:01:01 EST 2007 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 Jan 12 10:01 /tmp/.networking.run.lock ending: Fri Jan 12 11:01:01 EST 2007 You have new mail in /var/spool/mail/root I deleted the file, but next time breaks again. Also found another file on /tmp/ called "rancid.networking.2447", if I cat this file comes with same message line.... cvs update: [16:46:32] waiting for rancid's lock in /usr/local/rancid//var/CVS/networking Any help is really appreciated Antonio Intelsat is the world's largest provider of fixed satellite services. Real-time, constant communications with people anywhere in the world is closer, by far. For more information about Intelsat, visit www.intelsat.com. This email message is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From antonio.pena at Intelsat.com Fri Jan 12 20:08:20 2007 From: antonio.pena at Intelsat.com (Pena, Antonio) Date: Fri, 12 Jan 2007 15:08:20 -0500 Subject: [rancid] Re: /tmp/.networking.run.lock exists In-Reply-To: <4CBACF4FA9CE1046907D5132920D794D018C33EA@clw1.SKT.ICT> Message-ID: <642DFC23A5122746BB964E35A5F26D20565FF3@US-EX2.na.ds.intelsat.com> Hello Justin Thank you so much, I think could be the issue, I recently added a bunch of additional routers, so maybe that is happening, I will try this to see that helps Thank you all Antonio -----Original Message----- From: Justin Shore [mailto:justin.shore at sktbcs.com] Sent: Friday, 12 January, 2007 3:05 PM To: Pena, Antonio; rancid-discuss at shrubbery.net Subject: RE: [rancid] /tmp/.networking.run.lock exists It sounds like you're checking too many hosts in one single linear run and it's taking too long. You may want to either increase PAR_COUNT in etc/rancid.conf or you may want to run each of the groups listed in LIST_OF_GROUPS from cron separately. 0 */1 * * * rancid-run abc 0 */1 * * * rancid-run def 0 */1 * * * rancid-run ghi 0 */1 * * * rancid-run jkl 0 */1 * * * rancid-run mno I do both. I set PAR_COUNT to 5 and I run each of our POPs (how I break up LIST_OF_GROUPS) separately from cron. That way a slow speed link in one POP won't hold up the rancid on the other POPs. That's my take on your problem. Justin -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Pena, Antonio Sent: Friday, January 12, 2007 10:48 AM To: rancid-discuss at shrubbery.net Subject: [rancid] /tmp/.networking.run.lock exists Hello I started to get this message after Rancid runs: more networking.20070112.110101 starting: Fri Jan 12 11:01:01 EST 2007 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 Jan 12 10:01 /tmp/.networking.run.lock ending: Fri Jan 12 11:01:01 EST 2007 You have new mail in /var/spool/mail/root I deleted the file, but next time breaks again. Also found another file on /tmp/ called "rancid.networking.2447", if I cat this file comes with same message line.... cvs update: [16:46:32] waiting for rancid's lock in /usr/local/rancid//var/CVS/networking Any help is really appreciated Antonio Intelsat is the world's largest provider of fixed satellite services. Real-time, constant communications with people anywhere in the world is closer, by far. For more information about Intelsat, visit www.intelsat.com. This email message is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From cmoody at qualcomm.com Fri Jan 12 20:23:48 2007 From: cmoody at qualcomm.com (Chris Moody) Date: Fri, 12 Jan 2007 12:23:48 -0800 Subject: [rancid] Re: /tmp/.networking.run.lock exists In-Reply-To: <642DFC23A5122746BB964E35A5F26D20565FF3@US-EX2.na.ds.intelsat.com> References: <642DFC23A5122746BB964E35A5F26D20565FF3@US-EX2.na.ds.intelsat.com> Message-ID: <45A7EE54.1050400@qualcomm.com> Good idea to split them if this is the case. I have defined groups as well. But, I also wrote a perl util that I run on a cron to do housekeeping and cleanup in case the rancid proc barfs and leaves .lock files. I make -0- claim of being a "good" coder, but the thing works and I'm happy. YMMV. Cheers, -Chris Pena, Antonio wrote: > Hello Justin > > Thank you so much, I think could be the issue, I recently added a bunch > of additional routers, so maybe that is happening, I will try this to > see that helps > > Thank you all > > Antonio #!/usr/bin/perl -w # # I need to do housekeeping so the rancid process works more smoothly # This includes: # - /tmp/.*lock files # - .ssh/known_hosts files (firewall backups - in case of failover) # - probably more to come... # ################### # Here ya go Samy # ################### use strict; #################################################### # Initialize Mail::Sender so we can e-mail results # #################################################### use Mail::Sender; #################### # Sweet File Utils # #################### use File::Copy; # stat(); produces the following 13-element array # [0]$dev - device name # [1]$ino - i-unit number # [2]$mode - access permissions # [3]$nlink - number of intercommections # [4]$uid - owner identificator # [5]$gid - group identificator # [6]$rdev - device type # [7]$size - file size in bytes # [8]$atime - date of last call # [9]$mtime - date of last modification # [10]$ctime - date of last status change # [11]$blksize - block size on disk # [12]$blocks - number of blocks in file. ########################################################## # E-mail address to mail the output report to by default # # This eventually needs to be a command line flag rather # # than a static variable # ########################################################## my $emailaddy="INSERT-YOUR-EMAIL-HERE"; my $fromaddress="INSERT-A-VALID-FROM-ADDRESS-HERE"; my $mailserver="INSERT-A-VALID-MAILSERVER-HERE"; ########################################### ########################################### ########## DEFINE VARIABLES HERE ########## ########################################### ########################################### my $lockdir="/tmp"; #my @LOCKS=`ls -a /tmp/.*lock*`; my @LOCKS=`ls -a /tmp/ | grep lock`; my $hostsfile="PATH-TO-RANCID-USER-DIR/.ssh/known_hosts"; my $DATE=`date +%m-%d-%y_%H%M%S`; my $HOSTNAME=`hostname`; chomp($HOSTNAME); ##################################### # Toggle this to enble debugging # ##################################### my $debug="0"; # 1 = on , 0 = off if ($debug eq "1"){print "\$emailaddy = $emailaddy\n";}; if ($debug eq "1"){print "\$fromaddress = $fromaddress\n";}; if ($debug eq "1"){print "\$mailserver = $mailserver\n";}; if ($debug eq "1"){print "\$hostsfile = $hostsfile\n";}; # remove any stale .lock files from /tmp # Ex> /tmp/.firewall-admins.run.lock if (@LOCKS){ if ($debug eq "1"){print "\@LOCKS = @LOCKS\n";}; foreach my $i (@LOCKS){ chomp ($i); if ($debug eq "1"){print "\$i = $i\n";}; unlink ("$i") || die "Can't unlink file $i"; ############################# # E-MAIL COPY OF THE REPORT # ############################# my $sender = new Mail::Sender { i smtp => "$mailserver", from => "$fromaddress", on_errors => undef, }; $sender->Open({ to => "$emailaddy", subject => "$HOSTNAME: Lockfile for $i removed - $DATE", }); $sender->Close(); if ($debug eq "1"){print "\$sender = $sender\n";}; } # Close foreach } # Close if # remove .known_hosts file from ~/.ssh/ # This will allow firewalls to get backed up if they fail over if (-f "$hostsfile") { if ($debug eq "1"){print "\$hostsfile = $hostsfile\n";}; unlink ("$hostsfile") || die "Can't unlink file $hostsfile"; ############################# # E-MAIL COPY OF THE REPORT # ############################# my $sender = new Mail::Sender { smtp => "$mailserver", from => "$fromaddress", on_errors => undef, }; $sender->Open({ to => "$emailaddy", subject => "$HOSTNAME: Known_hosts file removed - $DATE", }); $sender->Close(); if ($debug eq "1"){print "\$sender = $sender\n";}; } # Close if From antonio.pena at Intelsat.com Fri Jan 12 20:33:31 2007 From: antonio.pena at Intelsat.com (Pena, Antonio) Date: Fri, 12 Jan 2007 15:33:31 -0500 Subject: [rancid] Re: /tmp/.networking.run.lock exists In-Reply-To: <45A7EE54.1050400@qualcomm.com> Message-ID: <642DFC23A5122746BB964E35A5F26D20565FFC@US-EX2.na.ds.intelsat.com> Great tip! thanks -----Original Message----- From: Chris Moody [mailto:cmoody at qualcomm.com] Sent: Friday, 12 January, 2007 3:24 PM To: Pena, Antonio Cc: Justin Shore; rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: /tmp/.networking.run.lock exists Good idea to split them if this is the case. I have defined groups as well. But, I also wrote a perl util that I run on a cron to do housekeeping and cleanup in case the rancid proc barfs and leaves .lock files. I make -0- claim of being a "good" coder, but the thing works and I'm happy. YMMV. Cheers, -Chris Pena, Antonio wrote: > Hello Justin > > Thank you so much, I think could be the issue, I recently added a bunch > of additional routers, so maybe that is happening, I will try this to > see that helps > > Thank you all > > Antonio #!/usr/bin/perl -w # # I need to do housekeeping so the rancid process works more smoothly # This includes: # - /tmp/.*lock files # - .ssh/known_hosts files (firewall backups - in case of failover) # - probably more to come... # ################### # Here ya go Samy # ################### use strict; #################################################### # Initialize Mail::Sender so we can e-mail results # #################################################### use Mail::Sender; #################### # Sweet File Utils # #################### use File::Copy; # stat(); produces the following 13-element array # [0]$dev - device name # [1]$ino - i-unit number # [2]$mode - access permissions # [3]$nlink - number of intercommections # [4]$uid - owner identificator # [5]$gid - group identificator # [6]$rdev - device type # [7]$size - file size in bytes # [8]$atime - date of last call # [9]$mtime - date of last modification # [10]$ctime - date of last status change # [11]$blksize - block size on disk # [12]$blocks - number of blocks in file. ########################################################## # E-mail address to mail the output report to by default # # This eventually needs to be a command line flag rather # # than a static variable # ########################################################## my $emailaddy="INSERT-YOUR-EMAIL-HERE"; my $fromaddress="INSERT-A-VALID-FROM-ADDRESS-HERE"; my $mailserver="INSERT-A-VALID-MAILSERVER-HERE"; ########################################### ########################################### ########## DEFINE VARIABLES HERE ########## ########################################### ########################################### my $lockdir="/tmp"; #my @LOCKS=`ls -a /tmp/.*lock*`; my @LOCKS=`ls -a /tmp/ | grep lock`; my $hostsfile="PATH-TO-RANCID-USER-DIR/.ssh/known_hosts"; my $DATE=`date +%m-%d-%y_%H%M%S`; my $HOSTNAME=`hostname`; chomp($HOSTNAME); ##################################### # Toggle this to enble debugging # ##################################### my $debug="0"; # 1 = on , 0 = off if ($debug eq "1"){print "\$emailaddy = $emailaddy\n";}; if ($debug eq "1"){print "\$fromaddress = $fromaddress\n";}; if ($debug eq "1"){print "\$mailserver = $mailserver\n";}; if ($debug eq "1"){print "\$hostsfile = $hostsfile\n";}; # remove any stale .lock files from /tmp # Ex> /tmp/.firewall-admins.run.lock if (@LOCKS){ if ($debug eq "1"){print "\@LOCKS = @LOCKS\n";}; foreach my $i (@LOCKS){ chomp ($i); if ($debug eq "1"){print "\$i = $i\n";}; unlink ("$i") || die "Can't unlink file $i"; ############################# # E-MAIL COPY OF THE REPORT # ############################# my $sender = new Mail::Sender { i smtp => "$mailserver", from => "$fromaddress", on_errors => undef, }; $sender->Open({ to => "$emailaddy", subject => "$HOSTNAME: Lockfile for $i removed - $DATE", }); $sender->Close(); if ($debug eq "1"){print "\$sender = $sender\n";}; } # Close foreach } # Close if # remove .known_hosts file from ~/.ssh/ # This will allow firewalls to get backed up if they fail over if (-f "$hostsfile") { if ($debug eq "1"){print "\$hostsfile = $hostsfile\n";}; unlink ("$hostsfile") || die "Can't unlink file $hostsfile"; ############################# # E-MAIL COPY OF THE REPORT # ############################# my $sender = new Mail::Sender { smtp => "$mailserver", from => "$fromaddress", on_errors => undef, }; $sender->Open({ to => "$emailaddy", subject => "$HOSTNAME: Known_hosts file removed - $DATE", }); $sender->Close(); if ($debug eq "1"){print "\$sender = $sender\n";}; } # Close if Intelsat is the world's largest provider of fixed satellite services. Real-time, constant communications with people anywhere in the world is closer, by far. For more information about Intelsat, visit www.intelsat.com. This email message is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. From heas at shrubbery.net Fri Jan 12 21:25:04 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 12 Jan 2007 13:25:04 -0800 Subject: [rancid] Re: /tmp/.networking.run.lock exists In-Reply-To: <4CBACF4FA9CE1046907D5132920D794D018C33EA@clw1.SKT.ICT> References: <4CBACF4FA9CE1046907D5132920D794D018C33EA@clw1.SKT.ICT> Message-ID: <20070112212504.GA16548@shrubbery.net> Fri, Jan 12, 2007 at 02:05:27PM -0600, Justin Shore: > It sounds like you're checking too many hosts in one single linear run > and it's taking too long. You may want to either increase PAR_COUNT in > etc/rancid.conf or you may want to run each of the groups listed in > LIST_OF_GROUPS from cron separately. > > 0 */1 * * * rancid-run abc > 0 */1 * * * rancid-run def > 0 */1 * * * rancid-run ghi > 0 */1 * * * rancid-run jkl > 0 */1 * * * rancid-run mno > > I do both. I set PAR_COUNT to 5 and I run each of our POPs (how I break > up LIST_OF_GROUPS) separately from cron. That way a slow speed link in > one POP won't hold up the rancid on the other POPs. > > That's my take on your problem. > > Justin > > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Pena, Antonio > Sent: Friday, January 12, 2007 10:48 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] /tmp/.networking.run.lock exists > > Hello > > I started to get this message after Rancid runs: > > more networking.20070112.110101 > starting: Fri Jan 12 11:01:01 EST 2007 > > hourly config diffs failed: /tmp/.networking.run.lock exists > -rw-r----- 1 rancid netadm 0 Jan 12 10:01 /tmp/.networking.run.lock > > ending: Fri Jan 12 11:01:01 EST 2007 > You have new mail in /var/spool/mail/root > > I deleted the file, but next time breaks again. > > Also found another file on /tmp/ called "rancid.networking.2447", if I > cat this file comes with same message line.... > > cvs update: [16:46:32] waiting for rancid's lock in > /usr/local/rancid//var/CVS/networking more likely that (another) cvs is hanging, either due a buggered local repository or a user is holding the lock on the respository. cd /var/rancid/networking cvs update -AdP should not hang. From dave_stempien at urmc.rochester.edu Mon Jan 15 19:52:47 2007 From: dave_stempien at urmc.rochester.edu (David Stempien) Date: Mon, 15 Jan 2007 14:52:47 -0500 Subject: [rancid] rivlogin buffer problem Message-ID: <1168890767.24297.12.camel@dstempienlinux> I am trying to run the "arp show all" command on an Enterasys ER16 using the rivlogin command as follows: rivlogin -c "arp show all" Note that I had to fix the rivlogin script to send the $enapasswd in the do_enable procedure -- looks like a bug in the script was trying to send the $userpswd as the enable password, thus giving me an authentication failure. But I digress... Anyhow, in running the above command, everything starts running normally in retrieving the ARP table from the router. However, at some seemingly random point in the output, I get a "Connection closed by foreign host" and the output ends -- that is, prior to completing the display of the ARP table. The script finishes with an exit value of 0, confirming a successful run. I am experiencing what is an obvious buffering problem. I've tried adding a sleep statement in various spots throughout the script to try to pause expect long enough to finish dumping the output buffer before exiting. Needless to say, I've been unsuccessful. Might anyone have any words of wisdom in this matter? Regards, -- Dave Stempien, Network Security Engineer University of Rochester Medical Center Information Systems Division From stephane.malo at gmail.com Tue Jan 16 19:40:40 2007 From: stephane.malo at gmail.com (Stephane Malo) Date: Tue, 16 Jan 2007 14:40:40 -0500 Subject: [rancid] RANCID with RADWARE Message-ID: <7fe2ba3a0701161140r78f6ebeawe828e495491fcc5e@mail.gmail.com> Hello all, Thanks for the previous help, everything is now working fine. Except for 1 piece of equipment. I have a couple of RADWARE LinkProof equipments in the network. I'm not even sure what they do. But i still have to save the configuration with RANCID :) Here is a snapshot of how we actually log into a RADWARE [admin at server bin]$ telnet radware1 Destination radware1 found for customer XYZ. Connecting to radware1 using source IP of the client XYZ (192.168.1.125) Trying 192.168.1.110... Connected to 192.168.1.110. Escape character is '^]'. d rrrr aaa d w w w aaa rrrr eeee rr a dddd w w w a rr e e r aaaa d d w w w w aaaa r e e r a a d d w w w w a a r eeeee r a a d d w w a a r e r aa a dddd w w aa a r eeee LinkProof - Entry Level - US - with SynApps v3.73.08 User: admin Password: ******* Password OK LinkProof# system config ! !Device Configuration !Date: 16-01-2007 13:51:30 !Device Description: LinkProof - Entry Level - US - with SynApps !Base MAC Address: 00:03:b2:11:ae:08 !Software Version: 3.73.08 (build 50cb9c) ! ... {radware configuration} --More-- As you can see it prompts for the user to press a key (just like CISCO show run). To exit we need to type: LinkProof#logout I have no scripting or Perl experience. I tried to compare the rancid file and modify it but i haven't been able to get any good results. Can anybody spare me there knowledge on how i could do this. Thanks in advance -- Best regards Stephane Malo 514-963-6256 "Insanity is doing the same thing over and over, and expecting a different result." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070116/d16a5b7c/attachment.html From rancid at gheek.net Tue Jan 16 22:46:23 2007 From: rancid at gheek.net (Lance) Date: Tue, 16 Jan 2007 15:46:23 -0700 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: <20070116154622.8e114e4890519e5179c192e02d6bca26.bf33fe47d0.wbe@email.secureserver.net> An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070116/d69e2da2/attachment.html From rancid at gheek.net Tue Jan 16 23:23:44 2007 From: rancid at gheek.net (Lance) Date: Tue, 16 Jan 2007 16:23:44 -0700 Subject: [rancid] Re: CISCO switches getting TIMEOUTs Message-ID: <20070116162344.8e114e4890519e5179c192e02d6bca26.a563ba9536.wbe@email.secureserver.net> An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070116/93e5f0b0/attachment.html From arnold at nipper.de Tue Jan 16 23:29:42 2007 From: arnold at nipper.de (Arnold Nipper) Date: Wed, 17 Jan 2007 00:29:42 +0100 Subject: [rancid] Re: CISCO switches getting TIMEOUTs In-Reply-To: <20070116162344.8e114e4890519e5179c192e02d6bca26.a563ba9536.wbe@email.secureserver.net> References: <20070116162344.8e114e4890519e5179c192e02d6bca26.a563ba9536.wbe@email.secureserver.net> Message-ID: <45AD5FE6.3000205@nipper.de> On 17.01.2007 00:23 Lance wrote > Are you using clogin for the cisco switches? > > > -------- Original Message -------- > Subject: [rancid] CISCO switches getting TIMEOUTs > From: "Stephane Malo" > Date: Fri, January 12, 2007 11:29 am > To: rancid-discuss at shrubbery.net > > When using clogin to log into a CISCO switch i am able to get to the > enable prompt but i cannot issue any commands (see below) > ... > ... > ... > * Le systeme peut en tout temps faire l'objet d'une > surveillance. Si vous * > * n'etes pas un usager autorise n'essayez pas d'y > acceder. * > * > v1.1 * > ********************************************************************************** > > User Access Verification > Username: GOT (Username|Login|login|user name): > {username} > Password: > C45328SHEFFIELDSW1#sh ver As far as I remember you should see a double prompt, i.e. something like C45328SHEFFIELDSW1# C45328SHEFFIELDSW1# Toggle autoenable to see if you get different results hth, Arnold > Error: TIMEOUT reached > [smadmin at dcoc2v configs]$ sh ver > ver: ver: No such file or directory > [smadmin at dcoc2v configs]$ > > As you can see i try to do the "show version" command but nothing > happens. Funny thing is after i get the TIMEOUT error my command > seems to be echoed to my unix prompt. > > Any ideas guys. > -- > Best regards > Stephane Malo > 514-963-6256 > "Insanity is doing the same thing over and over, and expecting a > different result." > ------------------------------------------------------------------------ > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold at nipper.de phone: +49 6224 9259 299 mobile: +49 172 2650958 fax: +49 6224 9259 333 From heas at shrubbery.net Tue Jan 16 23:53:05 2007 From: heas at shrubbery.net (john heasley) Date: Tue, 16 Jan 2007 15:53:05 -0800 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 In-Reply-To: <20070116154622.8e114e4890519e5179c192e02d6bca26.bf33fe47d0.wbe@email.secureserver.net> References: <20070116154622.8e114e4890519e5179c192e02d6bca26.bf33fe47d0.wbe@email.secureserver.net> Message-ID: <20070116235305.GR15223@shrubbery.net> Tue, Jan 16, 2007 at 03:46:23PM -0700, Lance: >
John,
>
>
My CSSes code does not support "term width xxx".
that is ok; does patch break collection of the CSS? ps. please stop sending HTML mail From rancid at gheek.net Wed Jan 17 19:39:02 2007 From: rancid at gheek.net (Lance) Date: Wed, 17 Jan 2007 12:39:02 -0700 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: <20070117123902.8e114e4890519e5179c192e02d6bca26.1ebd0d42bb.wbe@email.secureserver.net> John, Sorry about the HTML I didn't realize I had HTML enabled. :( I checked the CSS diffs from yesterday to today and I do not see a difference. I also check all of my IOS based devices that would have VLANs and they all went from multiple lines to a single line. let me know if you want me to check anything else. -lance > -------- Original Message -------- > Subject: Re: [rancid] Re: Vlans getting toggled on Cisco 6500 > From: john heasley > Date: Tue, January 16, 2007 4:53 pm > To: Lance > Cc: rancid-discuss at shrubbery.net, Justin Shore > , Terry Kennedy > > Tue, Jan 16, 2007 at 03:46:23PM -0700, Lance: > >
John,
> >
> >
My CSSes code does not support "term width xxx".
> > that is ok; does patch break collection of the CSS? > > ps. please stop sending HTML mail From rancid at gheek.net Wed Jan 17 19:41:58 2007 From: rancid at gheek.net (Lance) Date: Wed, 17 Jan 2007 12:41:58 -0700 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: <20070117124158.8e114e4890519e5179c192e02d6bca26.fa76a85a91.wbe@email.secureserver.net> All, I also noticed that it acutally is worse with the width being set. Previously I use to get all of the vlans now I only get vlan 1 and not even all of it. Maybe it is just my experience but to me this doesn't work it actually makes it worse for me. > -------- Original Message -------- > Subject: RE: [rancid] Re: Vlans getting toggled on Cisco 6500 > From: Lance > Date: Wed, January 17, 2007 12:39 pm > To: john heasley > Cc: rancid-discuss at shrubbery.net, Justin Shore > , Terry Kennedy > > John, > > Sorry about the HTML I didn't realize I had HTML enabled. :( > > I checked the CSS diffs from yesterday to today and I do not see a > difference. > > I also check all of my IOS based devices that would have VLANs and they > all went from multiple lines to a single line. > > let me know if you want me to check anything else. > > -lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Re: Vlans getting toggled on Cisco 6500 > > From: john heasley > > Date: Tue, January 16, 2007 4:53 pm > > To: Lance > > Cc: rancid-discuss at shrubbery.net, Justin Shore > > , Terry Kennedy > > > > Tue, Jan 16, 2007 at 03:46:23PM -0700, Lance: > > >
John,
> > >
> > >
My CSSes code does not support "term width xxx".
> > > > that is ok; does patch break collection of the CSS? > > > > ps. please stop sending HTML mail From heas at shrubbery.net Thu Jan 18 17:40:08 2007 From: heas at shrubbery.net (john heasley) Date: Thu, 18 Jan 2007 09:40:08 -0800 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 In-Reply-To: <20070117123902.8e114e4890519e5179c192e02d6bca26.1ebd0d42bb.wbe@email.secureserver.net> References: <20070117123902.8e114e4890519e5179c192e02d6bca26.1ebd0d42bb.wbe@email.secureserver.net> Message-ID: <20070118174008.GB9043@shrubbery.net> Wed, Jan 17, 2007 at 12:39:02PM -0700, Lance: > John, > > Sorry about the HTML I didn't realize I had HTML enabled. :( > > I checked the CSS diffs from yesterday to today and I do not see a > difference. presumably you checked the log files to for outright failures. > I also check all of my IOS based devices that would have VLANs and they > all went from multiple lines to a single line. truncated? router or switch? IOS version? > let me know if you want me to check anything else. > > -lance > > > -------- Original Message -------- > > Subject: Re: [rancid] Re: Vlans getting toggled on Cisco 6500 > > From: john heasley > > Date: Tue, January 16, 2007 4:53 pm > > To: Lance > > Cc: rancid-discuss at shrubbery.net, Justin Shore > > , Terry Kennedy > > > > Tue, Jan 16, 2007 at 03:46:23PM -0700, Lance: > > >
John,
> > >
> > >
My CSSes code does not support "term width xxx".
> > > > that is ok; does patch break collection of the CSS? > > > > ps. please stop sending HTML mail From rancid at gheek.net Fri Jan 19 06:55:57 2007 From: rancid at gheek.net (Lance) Date: Thu, 18 Jan 2007 23:55:57 -0700 Subject: [rancid] Re: Vlans getting toggled on Cisco 6500 Message-ID: <20070118235557.8e114e4890519e5179c192e02d6bca26.1087779082.wbe@email.secureserver.net> John, I check all logs and I don't see anything in them except for normal stuff. The truncating only takes place with IOS based switches that I see at the moment. I haven't looked at all of the different logs, but that looks to be the only issue is with the IOS switches and their vlan listing. Anyone else observe thing? > -------- Original Message -------- > Subject: Re: [rancid] Re: Vlans getting toggled on Cisco 6500 > From: john heasley > Date: Thu, January 18, 2007 10:40 am > To: Lance > Cc: john heasley , rancid-discuss at shrubbery.net, > Justin Shore , Terry Kennedy > > Wed, Jan 17, 2007 at 12:39:02PM -0700, Lance: > > John, > > > > Sorry about the HTML I didn't realize I had HTML enabled. :( > > > > I checked the CSS diffs from yesterday to today and I do not see a > > difference. > > presumably you checked the log files to for outright failures. > > > I also check all of my IOS based devices that would have VLANs and they > > all went from multiple lines to a single line. > > truncated? router or switch? IOS version? > > > let me know if you want me to check anything else. > > > > -lance > > > > > -------- Original Message -------- > > > Subject: Re: [rancid] Re: Vlans getting toggled on Cisco 6500 > > > From: john heasley > > > Date: Tue, January 16, 2007 4:53 pm > > > To: Lance > > > Cc: rancid-discuss at shrubbery.net, Justin Shore > > > , Terry Kennedy > > > > > > Tue, Jan 16, 2007 at 03:46:23PM -0700, Lance: > > > >
John,
> > > >
> > > >
My CSSes code does not support "term width xxx".
> > > > > > that is ok; does patch break collection of the CSS? > > > > > > ps. please stop sending HTML mail From DylanV at semaphore.com Fri Jan 19 23:08:36 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Fri, 19 Jan 2007 15:08:36 -0800 Subject: [rancid] clogin requires .cloginrc entry even if password is set Message-ID: Trying to do this from the command line: HOME=/home/rancid /usr/local/rancid/bin/clogin -autoenable -c 'show run' -p ******* -u username routername And get this result: routername Error: no password for routername in /home/rancid/.cloginrc. This seems like it shouldn't happen if I have a username and password specified on the command line. Is there any way around this? Thanks, Dylan From heas at shrubbery.net Sat Jan 20 03:12:35 2007 From: heas at shrubbery.net (john heasley) Date: Fri, 19 Jan 2007 19:12:35 -0800 Subject: [rancid] Re: clogin requires .cloginrc entry even if password is set In-Reply-To: References: Message-ID: <20070120031235.GA6537@shrubbery.net> Fri, Jan 19, 2007 at 03:08:36PM -0800, Dylan Vanderhoof: > Trying to do this from the command line: > > HOME=/home/rancid /usr/local/rancid/bin/clogin -autoenable -c 'show > run' -p ******* -u username routername it really want an enable password; so add -e ''. guess we can whack that based on -autoenable. > And get this result: > > routername > > Error: no password for routername in /home/rancid/.cloginrc. > > This seems like it shouldn't happen if I have a username and password > specified on the command line. Is there any way around this? > > Thanks, > Dylan > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From DylanV at semaphore.com Sat Jan 20 19:12:59 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Sat, 20 Jan 2007 11:12:59 -0800 Subject: [rancid] Re: clogin requires .cloginrc entry even if password is set Message-ID: Ah ha. That did it, thanks. Expected -e and -v to be passed even if unused. -D > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Friday, January 19, 2007 7:13 PM > To: Dylan Vanderhoof > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] clogin requires .cloginrc entry even if > password is set > > > Fri, Jan 19, 2007 at 03:08:36PM -0800, Dylan Vanderhoof: > > Trying to do this from the command line: > > > > HOME=/home/rancid /usr/local/rancid/bin/clogin -autoenable -c 'show > > run' -p ******* -u username routername > > it really want an enable password; so add -e ''. guess we > can whack that > based on -autoenable. > > > And get this result: > > > > routername > > > > Error: no password for routername in /home/rancid/.cloginrc. > > > > This seems like it shouldn't happen if I have a username > and password > > specified on the command line. Is there any way around this? > > > > Thanks, > > Dylan > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From DylanV at semaphore.com Sat Jan 20 19:17:33 2007 From: DylanV at semaphore.com (Dylan Vanderhoof) Date: Sat, 20 Jan 2007 11:17:33 -0800 Subject: [rancid] Re: clogin requires .cloginrc entry even if password is set Message-ID: > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Friday, January 19, 2007 7:13 PM > To: Dylan Vanderhoof > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] clogin requires .cloginrc entry even if > password is set > > > Fri, Jan 19, 2007 at 03:08:36PM -0800, Dylan Vanderhoof: > > Trying to do this from the command line: > > > > HOME=/home/rancid /usr/local/rancid/bin/clogin -autoenable -c 'show > > run' -p ******* -u username routername > > it really want an enable password; so add -e ''. guess we > can whack that > based on -autoenable. > Hm, next question. How do I do the equivalent of: add method routername {ssh:12345} >From the clogin command line? -Emethod'ssh:12345' didn't seem to work, and I'm not seeing any way to set the login method in the man page. Thanks, Dylan From lllorente at amadeus.com Mon Jan 22 11:48:55 2007 From: lllorente at amadeus.com (Lourdes Llorente) Date: Mon, 22 Jan 2007 12:48:55 +0100 Subject: [rancid] Rancid - clogin -hangs on a cisco router Message-ID: Hi All... Getting a problem with Rancid. Rancid doesn't dowload the configurations. It hangs with "show running config" Any ideas ? Rancid is: rancid-2.3.2a6 TCL is 8.5a4 Expect is 5.43 Solaris 8 Thanks for your help, Cheers, bash-3.00$ ./rancid -d atlrtp02 executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;show running-config;write term" atlrtp02 PROMPT MATCH: ATLRTP02# HIT COMMAND:ATLRTP02#admin show version In ShowVersion: ATLRTP02#admin show version HIT COMMAND:ATLRTP02#show version In ShowVersion: ATLRTP02#show version TYPE = 7200 HIT COMMAND:ATLRTP02#show redundancy secondary In ShowRedundancy: ATLRTP02#show redundancy secondary HIT COMMAND:ATLRTP02#show idprom backplane In ShowIDprom: ATLRTP02#show idprom backplane HIT COMMAND:ATLRTP02#show install active In ShowInstallActive: ATLRTP02#show install active HIT COMMAND:ATLRTP02#admin show env all In ShowEnv: ATLRTP02#admin show env all HIT COMMAND:ATLRTP02#show env all In ShowEnv: ATLRTP02#show env all HIT COMMAND:ATLRTP02#show rsp chassis-info In ShowRSP: ATLRTP02#show rsp chassis-info HIT COMMAND:ATLRTP02#show gsr chassis In ShowGSR: ATLRTP02#show gsr chassis HIT COMMAND:ATLRTP02#show diag chassis-info In ShowGSR: ATLRTP02#show diag chassis-info HIT COMMAND:ATLRTP02#show boot In ShowBoot: ATLRTP02#show boot HIT COMMAND:ATLRTP02#show bootvar In ShowBoot: ATLRTP02#show bootvar HIT COMMAND:ATLRTP02#admin show variables boot In ShowBoot: ATLRTP02#admin show variables boot HIT COMMAND:ATLRTP02#show variables boot In ShowBoot: ATLRTP02#show variables boot HIT COMMAND:ATLRTP02#show flash In ShowFlash: ATLRTP02#show flash HIT COMMAND:ATLRTP02#dir /all nvram: In DirSlotN: ATLRTP02#dir /all nvram: HIT COMMAND:ATLRTP02#dir /all bootflash: In DirSlotN: ATLRTP02#dir /all bootflash: HIT COMMAND:ATLRTP02#dir /all slot0: In DirSlotN: ATLRTP02#dir /all slot0: HIT COMMAND:ATLRTP02#dir /all disk0: In DirSlotN: ATLRTP02#dir /all disk0: HIT COMMAND:ATLRTP02#dir /all slot1: In DirSlotN: ATLRTP02#dir /all slot1: HIT COMMAND:ATLRTP02#dir /all disk1: In DirSlotN: ATLRTP02#dir /all disk1: HIT COMMAND:ATLRTP02#dir /all slot2: In DirSlotN: ATLRTP02#dir /all slot2: HIT COMMAND:ATLRTP02#dir /all disk2: In DirSlotN: ATLRTP02#dir /all disk2: HIT COMMAND:ATLRTP02#dir /all harddisk: In DirSlotN: ATLRTP02#dir /all harddisk: HIT COMMAND:ATLRTP02#dir /all harddiska: In DirSlotN: ATLRTP02#dir /all harddiska: HIT COMMAND:ATLRTP02#dir /all harddiskb: In DirSlotN: ATLRTP02#dir /all harddiskb: HIT COMMAND:ATLRTP02#dir /all sup-bootflash: In DirSlotN: ATLRTP02#dir /all sup-bootflash: HIT COMMAND:ATLRTP02#dir /all sup-microcode: In DirSlotN: ATLRTP02#dir /all sup-microcode: HIT COMMAND:ATLRTP02#dir /all slavenvram: In DirSlotN: ATLRTP02#dir /all slavenvram: HIT COMMAND:ATLRTP02#dir /all slavebootflash: In DirSlotN: ATLRTP02#dir /all slavebootflash: HIT COMMAND:ATLRTP02#dir /all slaveslot0: In DirSlotN: ATLRTP02#dir /all slaveslot0: HIT COMMAND:ATLRTP02#dir /all slavedisk0: In DirSlotN: ATLRTP02#dir /all slavedisk0: HIT COMMAND:ATLRTP02#dir /all slaveslot1: In DirSlotN: ATLRTP02#dir /all slaveslot1: HIT COMMAND:ATLRTP02#dir /all slavedisk1: In DirSlotN: ATLRTP02#dir /all slavedisk1: HIT COMMAND:ATLRTP02#dir /all slaveslot2: In DirSlotN: ATLRTP02#dir /all slaveslot2: HIT COMMAND:ATLRTP02#dir /all slavedisk2: In DirSlotN: ATLRTP02#dir /all slavedisk2: HIT COMMAND:ATLRTP02#dir /all slavesup-bootflash: In DirSlotN: ATLRTP02#dir /all slavesup-bootflash: HIT COMMAND:ATLRTP02#dir /all sec-nvram: In DirSlotN: ATLRTP02#dir /all sec-nvram: HIT COMMAND:ATLRTP02#dir /all sec-bootflash: In DirSlotN: ATLRTP02#dir /all sec-bootflash: HIT COMMAND:ATLRTP02#dir /all sec-slot0: In DirSlotN: ATLRTP02#dir /all sec-slot0: HIT COMMAND:ATLRTP02#dir /all sec-disk0: In DirSlotN: ATLRTP02#dir /all sec-disk0: HIT COMMAND:ATLRTP02#dir /all sec-slot1: In DirSlotN: ATLRTP02#dir /all sec-slot1: HIT COMMAND:ATLRTP02#dir /all sec-disk1: In DirSlotN: ATLRTP02#dir /all sec-disk1: HIT COMMAND:ATLRTP02#dir /all sec-slot2: In DirSlotN: ATLRTP02#dir /all sec-slot2: HIT COMMAND:ATLRTP02#dir /all sec-disk2: In DirSlotN: ATLRTP02#dir /all sec-disk2: HIT COMMAND:ATLRTP02#show controllers In ShowContAll: ATLRTP02#show controllers HIT COMMAND:ATLRTP02#show controllers cbus In ShowContCbus: ATLRTP02#show controllers cbus HIT COMMAND:ATLRTP02#show diagbus In ShowDiagbus: ATLRTP02#show diagbus HIT COMMAND:ATLRTP02#admin show diag In ShowDiag: ATLRTP02#admin show diag HIT COMMAND:ATLRTP02#show diag In ShowDiag: ATLRTP02#show diag HIT COMMAND:ATLRTP02#show module In ShowModule: ATLRTP02#show module HIT COMMAND:ATLRTP02#show spe version In ShowSpeVersion: ATLRTP02#show spe version HIT COMMAND:ATLRTP02#show c7200 In ShowC7200: ATLRTP02#show c7200 HIT COMMAND:ATLRTP02#show inventory raw In ShowInventory: ATLRTP02#show inventory raw HIT COMMAND:ATLRTP02#show vtp status In ShowVTP: ATLRTP02#show vtp status HIT COMMAND:ATLRTP02#show vlan In ShowVLAN: ATLRTP02#show vlan HIT COMMAND:ATLRTP02#show vlan-switch In ShowVLAN: ATLRTP02#show vlan-switch HIT COMMAND:ATLRTP02#show debug In ShowDebug: ATLRTP02#show debug HIT COMMAND:ATLRTP02#show running-config In WriteTerm: ATLRTP02#show running-config The list of processes are: bash-3.00$ ps -ef | grep rancid rancid 2675 2672 0 09:30:34 ? 0:01 /usr/local/sbin/sshd -R rancid 7356 7354 0 11:42:05 pts/4 0:00 telnet atlrtp02 rancid 2678 2677 0 09:30:40 pts/1 0:00 /usr/local/bin/bash rancid 7352 7271 50 11:42:05 pts/8 6:03 /usr/bin/perl ./rancid -d atlrtp02 rancid 2677 2675 0 09:30:35 pts/1 0:00 -sh rancid 7370 7351 0 11:48:24 pts/7 0:00 grep rancid rancid 7351 7350 0 11:41:16 pts/7 0:00 /usr/local/bin/bash rancid 7353 7352 0 11:42:05 pts/8 0:00 sh -c clogin -t 90 -c "admin show version;show version;show redundancy secondar rancid 7350 7348 0 11:41:13 pts/7 0:00 -sh rancid 2691 2689 0 09:34:03 pts/2 0:00 -sh rancid 7354 7353 0 11:42:05 pts/8 0:01 /usr/local/bin/expect -- /usr/local/rancid/bin/clogin -t 90 -c admin show versi rancid 7270 7268 0 11:10:19 pts/8 0:00 -sh rancid 7271 7270 0 11:10:23 pts/8 0:00 /usr/local/bin/bash rancid 2689 2686 0 09:34:03 ? 0:02 /usr/local/sbin/sshd -R rancid 7348 7345 0 11:41:12 ? 0:00 /usr/local/sbin/sshd -R rancid 7268 7265 0 11:10:19 ? 0:01 /usr/local/sbin/sshd -R rancid 2702 2691 0 09:44:25 pts/2 0:00 /usr/local/bin/bash -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070122/9c6f1b4c/attachment.html From justin.shore at sktbcs.com Mon Jan 22 14:47:23 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Mon, 22 Jan 2007 08:47:23 -0600 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router Message-ID: <4CBACF4FA9CE1046907D5132920D794D018C3BAE@clw1.SKT.ICT> Is the config excessively long or is the router under an unusually high amount of load? For example I had a 3660 with too little RAM that was terminating about 1200 ATM PVCs. The config is around 17,000 lines long. When it started running low on RAM it stopped giving me all of the output in "show run". Eventually it stopped giving me any output what-so-ever (shortly before it fell off the network with OSPF ran out of RAM to operate in). It's a thought. Justin ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Lourdes Llorente Sent: Monday, January 22, 2007 5:49 AM To: rancid-discuss Subject: [rancid] Rancid - clogin -hangs on a cisco router Hi All... Getting a problem with Rancid. Rancid doesn't dowload the configurations. It hangs with "show running config" Any ideas ? Rancid is: rancid-2.3.2a6 TCL is 8.5a4 Expect is 5.43 Solaris 8 Thanks for your help, Cheers, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070122/cfb3ca9c/attachment.html From jmccourt at jeremymccourt.com Tue Jan 23 04:39:54 2007 From: jmccourt at jeremymccourt.com (Jeremy McCourt) Date: Mon, 22 Jan 2007 21:39:54 -0700 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router In-Reply-To: <4CBACF4FA9CE1046907D5132920D794D018C3BAE@clw1.SKT.ICT> References: <4CBACF4FA9CE1046907D5132920D794D018C3BAE@clw1.SKT.ICT> Message-ID: <45B5919A.4050006@jeremymccourt.com> I had an issue with this recently as well, only every now and then I would get a complete router config. For me my issue happened to be a switch port was set to auto-negotiate and the gateway firewall wasn't, this was causing some major network slowdowns and rancid would eventually timeout. Most people turn off autoneg on their switches/NIC's and hardcode it to 100/full (or whatever the max speed on both ends is) on both just to be on the safe side. running an scp or a ftp through the environment can give you a good indication of how fast you end to end connectivity is. -Jeremy > ------------------------------------------------------------------------ > > *From:* rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Lourdes > Llorente > *Sent:* Monday, January 22, 2007 5:49 AM > *To:* rancid-discuss > *Subject:* [rancid] Rancid - clogin -hangs on a cisco router > > > > > Hi All... > > Getting a problem with Rancid. > Rancid doesn't dowload the configurations. It hangs with "show running > config" > > Any ideas ? > Rancid is: rancid-2.3.2a6 > TCL is 8.5a4 > Expect is 5.43 > Solaris 8 > > Thanks for your help, > Cheers, > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From jmccourt at jeremymccourt.com Tue Jan 23 05:00:05 2007 From: jmccourt at jeremymccourt.com (Jeremy McCourt) Date: Mon, 22 Jan 2007 22:00:05 -0700 Subject: [rancid] do you automate enable password changes using Rancid, if so how? Message-ID: <45B59655.4060301@jeremymccourt.com> I've been combining my commands in the -c part of clogin. i.e. /usr/local/rancid/bin/clogin -c "conf t\renable secret $new_password\renable password $old_password\rline con 0\rpassword $new_password\rexit\rline vty 0 4\rpassword $new_password\rexit\rline vty 5 15\rpassword $new_password\rexit\rexit\rwr mem\r" $hostname I'm just wondering how everyone else does it. if you do... and if not, this works well for me. -Jeremy From heas at shrubbery.net Tue Jan 23 08:43:55 2007 From: heas at shrubbery.net (john heasley) Date: Tue, 23 Jan 2007 00:43:55 -0800 Subject: [rancid] Re: clogin requires .cloginrc entry even if password is set In-Reply-To: References: Message-ID: <20070123084355.GB2433@shrubbery.net> Sat, Jan 20, 2007 at 11:17:33AM -0800, Dylan Vanderhoof: > Hm, next question. How do I do the equivalent of: > > add method routername {ssh:12345} > > >From the clogin command line? -Emethod'ssh:12345' didn't seem to work, > and I'm not seeing any way to set the login method in the man page. no, there is no cmd-line equivalent of method. with -Ewhatever, the resulting variable would be Ewhatever. From lllorente at amadeus.com Tue Jan 23 09:34:08 2007 From: lllorente at amadeus.com (Lourdes Llorente) Date: Tue, 23 Jan 2007 10:34:08 +0100 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router In-Reply-To: <45B5919A.4050006@jeremymccourt.com> Message-ID: Thanks for the suggestion.. But connectiviy is there. A ping works pretty well ...Round trip delay is 123 ms. Cheers, Lourdes Jeremy McCourt To Justin Shore , rancid-discuss cc bcc Subject [rancid] Re: Rancid - clogin -hangs on a cisco router Jeremy McCourt Please respond to jmccourt at jeremymccourt.com Sent by: rancid-discuss-bounces at shrubbery.net 01/23/07 05:39 AM I had an issue with this recently as well, only every now and then I would get a complete router config. For me my issue happened to be a switch port was set to auto-negotiate and the gateway firewall wasn't, this was causing some major network slowdowns and rancid would eventually timeout. Most people turn off autoneg on their switches/NIC's and hardcode it to 100/full (or whatever the max speed on both ends is) on both just to be on the safe side. running an scp or a ftp through the environment can give you a good indication of how fast you end to end connectivity is. -Jeremy > ------------------------------------------------------------------------ > > *From:* rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Lourdes > Llorente > *Sent:* Monday, January 22, 2007 5:49 AM > *To:* rancid-discuss > *Subject:* [rancid] Rancid - clogin -hangs on a cisco router > > > > > Hi All... > > Getting a problem with Rancid. > Rancid doesn't dowload the configurations. It hangs with "show running > config" > > Any ideas ? > Rancid is: rancid-2.3.2a6 > TCL is 8.5a4 > Expect is 5.43 > Solaris 8 > > Thanks for your help, > Cheers, > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070123/8238ecc7/attachment.html From heas at shrubbery.net Tue Jan 23 16:08:45 2007 From: heas at shrubbery.net (john heasley) Date: Tue, 23 Jan 2007 16:08:45 +0000 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router In-Reply-To: <45B5919A.4050006@jeremymccourt.com> References: <4CBACF4FA9CE1046907D5132920D794D018C3BAE@clw1.SKT.ICT> <45B5919A.4050006@jeremymccourt.com> Message-ID: <20070123160845.GC6459@shrubbery.net> Mon, Jan 22, 2007 at 09:39:54PM -0700, Jeremy McCourt: > I had an issue with this recently as well, only every now and then I > would get a complete router config. > For me my issue happened to be a switch port was set to auto-negotiate > and the gateway firewall wasn't, this was causing some major network > slowdowns and rancid would eventually timeout. "timeout". that is important; it should not hang. if it is in fact hanging, have you applied the expect patch for solaris that is linked on rancid web page? > Most people turn off autoneg on their switches/NIC's and hardcode it to > 100/full (or whatever the max speed on both ends is) on both just to be > on the safe side. > running an scp or a ftp through the environment can give you a good > indication of how fast you end to end connectivity is. > > -Jeremy > > ------------------------------------------------------------------------ > > > > *From:* rancid-discuss-bounces at shrubbery.net > > [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Lourdes > > Llorente > > *Sent:* Monday, January 22, 2007 5:49 AM > > *To:* rancid-discuss > > *Subject:* [rancid] Rancid - clogin -hangs on a cisco router > > > > > > > > > > Hi All... > > > > Getting a problem with Rancid. > > Rancid doesn't dowload the configurations. It hangs with "show running > > config" > > > > Any ideas ? > > Rancid is: rancid-2.3.2a6 > > TCL is 8.5a4 > > Expect is 5.43 > > Solaris 8 > > > > Thanks for your help, > > Cheers, > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From lllorente at amadeus.com Tue Jan 23 16:16:13 2007 From: lllorente at amadeus.com (Lourdes Llorente) Date: Tue, 23 Jan 2007 17:16:13 +0100 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router In-Reply-To: <20070123160845.GC6459@shrubbery.net> Message-ID: Hi John, I tried to applied but I did not suceed compiling it. Do you know where I could get the expect with the patch applied already compiled for sparc solaris 8 ? Thanks, Lourdes john heasley To Jeremy McCourt cc rancid-discuss bcc Subject [rancid] Re: Rancid - clogin -hangs on a cisco router john heasley Sent by: rancid-discuss-bounces at shrubbery.net 01/23/07 05:08 PM Mon, Jan 22, 2007 at 09:39:54PM -0700, Jeremy McCourt: > I had an issue with this recently as well, only every now and then I > would get a complete router config. > For me my issue happened to be a switch port was set to auto-negotiate > and the gateway firewall wasn't, this was causing some major network > slowdowns and rancid would eventually timeout. "timeout". that is important; it should not hang. if it is in fact hanging, have you applied the expect patch for solaris that is linked on rancid web page? > Most people turn off autoneg on their switches/NIC's and hardcode it to > 100/full (or whatever the max speed on both ends is) on both just to be > on the safe side. > running an scp or a ftp through the environment can give you a good > indication of how fast you end to end connectivity is. > > -Jeremy > > ------------------------------------------------------------------------ > > > > *From:* rancid-discuss-bounces at shrubbery.net > > [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Lourdes > > Llorente > > *Sent:* Monday, January 22, 2007 5:49 AM > > *To:* rancid-discuss > > *Subject:* [rancid] Rancid - clogin -hangs on a cisco router > > > > > > > > > > Hi All... > > > > Getting a problem with Rancid. > > Rancid doesn't dowload the configurations. It hangs with "show running > > config" > > > > Any ideas ? > > Rancid is: rancid-2.3.2a6 > > TCL is 8.5a4 > > Expect is 5.43 > > Solaris 8 > > > > Thanks for your help, > > Cheers, > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070123/cf2e35aa/attachment.html From jmccourt at jeremymccourt.com Tue Jan 23 16:57:56 2007 From: jmccourt at jeremymccourt.com (Jeremy McCourt) Date: Tue, 23 Jan 2007 09:57:56 -0700 Subject: [rancid] Re: Rancid - clogin -hangs on a cisco router In-Reply-To: References: Message-ID: <45B63E94.2020500@jeremymccourt.com> Lourdes, Don't use ping, ICMP (ping) packets are so small that they may give you a misrepresentation of how your network is running, try a real transfer with FTP, SCP, SFTP, something that will be able to transfer large amounts of data. Lets say like a 10meg file, when I would try to transfer it with the slowdown it would take anywhere between 5-10 mins, I'm currently on wireless, and get about 300KB/sec and takes 35seconds, wired I can xfer that in under 10 seconds. if you have access to your switch that the solaris machine is plugged into check that it is 100/full, and by using ndd on the solaris box you can set it to 100/full as well. http://www.brandonhutchinson.com/Solaris_NIC_speed_and_duplex_settings.html (this page explains how to make the interface changes using ndd) When I was having my issues, my ping was quick, I was even able to pull webpages off my server (but sometimes slow), but only once in a while I would be able to pull a full config off a router, I would see the raw files in the config directory, they would change size in chunks, and it would take quite some time. **you can have it use temp (raw) files by editing the rancid.conf file, and modify the nopipe setting. NOPIPE=YES; export NOPIPE ** -Jeremy Lourdes Llorente wrote: > > Thanks for the suggestion.. > > But connectiviy is there. A ping works pretty well ...Round trip delay > is 123 ms. > > Cheers, > Lourdes > > > *Jeremy McCourt * > To > Justin Shore , rancid-discuss > > cc > > bcc > > Subject > [rancid] Re: Rancid - clogin -hangs on a cisco router > > > > > > > > *Jeremy McCourt * > > Please respond to jmccourt at jeremymccourt.com > > Sent by: rancid-discuss-bounces at shrubbery.net > 01/23/07 05:39 AM > > > > > I had an issue with this recently as well, only every now and then I > would get a complete router config. > For me my issue happened to be a switch port was set to auto-negotiate > and the gateway firewall wasn't, this was causing some major network > slowdowns and rancid would eventually timeout. > Most people turn off autoneg on their switches/NIC's and hardcode it to > 100/full (or whatever the max speed on both ends is) on both just to be > on the safe side. > running an scp or a ftp through the environment can give you a good > indication of how fast you end to end connectivity is. > > -Jeremy > > ------------------------------------------------------------------------ > > > > *From:* rancid-discuss-bounces at shrubbery.net > > [mailto:rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Lourdes > > Llorente > > *Sent:* Monday, January 22, 2007 5:49 AM > > *To:* rancid-discuss > > *Subject:* [rancid] Rancid - clogin -hangs on a cisco router > > > > > > > > > > Hi All... > > > > Getting a problem with Rancid. > > Rancid doesn't dowload the configurations. It hangs with "show running > > config" > > > > Any ideas ? > > Rancid is: rancid-2.3.2a6 > > TCL is 8.5a4 > > Expect is 5.43 > > Solaris 8 > > > > Thanks for your help, > > Cheers, > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From Anton.Schweitzer at o2.com Wed Jan 24 08:47:11 2007 From: Anton.Schweitzer at o2.com (Anton.Schweitzer at o2.com) Date: Wed, 24 Jan 2007 09:47:11 +0100 Subject: [rancid] CVS Trouble In-Reply-To: <45B63E94.2020500@jeremymccourt.com> Message-ID: Hi All, this night seems my RANCID run in into trouble, i got this Error messages for all my groups and every device : cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/munacs1' cvs [commit aborted]: correct above errors first! Can someone give me a hint what is gone wrong ? Cheers Anton Anton Schweitzer CNO IP Backoffice o2 (Germany) GmbH & Co.OHG Georg Brauchle-Ring 23-25, D-80992 M?nchen Tel +49(0)89-2442-5794 Mobil +49(0)176-23407715 Fax +49(0)89-2442-5632 anton.schweitzer at o2.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070124/ba96b45b/attachment.html From bpeck at chimesnet.com Wed Jan 24 17:48:53 2007 From: bpeck at chimesnet.com (Bob Peck) Date: Wed, 24 Jan 2007 12:48:53 -0500 Subject: [rancid] VLAN.DAT Message-ID: <45B79C05.9090703@chimesnet.com> Hello... Rancid emails me daily stating the vlan.dat file changes daily even though no changes have been made for years. Any Ideas folks.. !Flash: Directory of flash:/ !Flash: 2 -rwx 27 Oct 25 2006 11:49:47 -04:00 private-config.text - !Flash: 3 -rwx 1036 Jan 22 2007 03:00:02 -05:00 vlan.dat + !Flash: 3 -rwx 1036 Jan 23 2007 02:58:27 -05:00 vlan.dat !Flash: 4 -rwx 1849 Oct 25 2006 11:49:47 -04:00 config.text !Flash: 5 drwx 192 Feb 28 1993 19:05:31 -05:00 c3750-ipbase-mz.122-25.SEB Best -- Bob Peck Network Architect Chimes, Inc 5455 Corporate Drive, Suite 303 Troy MI 48098 office (248) 293-6767 ext 270 mobile (586) 604-4665 From jmccourt at jeremymccourt.com Wed Jan 24 17:55:23 2007 From: jmccourt at jeremymccourt.com (Jeremy McCourt) Date: Wed, 24 Jan 2007 10:55:23 -0700 Subject: [rancid] Re: VLAN.DAT In-Reply-To: <45B79C05.9090703@chimesnet.com> References: <45B79C05.9090703@chimesnet.com> Message-ID: <45B79D8B.1040908@jeremymccourt.com> Just a quick thought.. Are you running VTP transparent or are you using VTP domains? Here is what I am thinking, if you use VTP domains the VTP servers may be sending out vlan updates to make sure everything is still up to date. Bob Peck wrote: > Hello... > > Rancid emails me daily stating the vlan.dat file changes daily even though no changes have been made for years. > > Any Ideas folks.. > > > !Flash: Directory of flash:/ > !Flash: 2 -rwx 27 Oct 25 2006 11:49:47 -04:00 private-config.text > - !Flash: 3 -rwx 1036 Jan 22 2007 03:00:02 -05:00 vlan.dat > + !Flash: 3 -rwx 1036 Jan 23 2007 02:58:27 -05:00 vlan.dat > !Flash: 4 -rwx 1849 Oct 25 2006 11:49:47 -04:00 config.text > !Flash: 5 drwx 192 Feb 28 1993 19:05:31 -05:00 c3750-ipbase-mz.122-25.SEB > > > Best > > From rancid at gheek.net Wed Jan 24 18:08:52 2007 From: rancid at gheek.net (Lance) Date: Wed, 24 Jan 2007 11:08:52 -0700 Subject: [rancid] Re: CVS Trouble Message-ID: <20070124110852.8e114e4890519e5179c192e02d6bca26.957a8da2c4.wbe@email.secureserver.net> this is answered in the 3rd question of CVS section of the FAQ. http://www.shrubbery.net/rancid/FAQ > -------- Original Message -------- > Subject: [rancid] CVS Trouble > From: Anton.Schweitzer at o2.com > Date: Wed, January 24, 2007 1:47 am > To: Rancid-discuss at shrubbery.net > > > Hi All, > > this night seems my RANCID run in into trouble, i got this Error messages for all my groups and every device : > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > cvs commit: Up-to-date check failed for `configs/munacs1' > cvs [commit aborted]: correct above errors first! > > Can someone give me a hint what is gone wrong ? > > Cheers > > Anton > > > > Anton Schweitzer > CNO IP Backoffice > o2 (Germany) GmbH & Co.OHG > Georg Brauchle-Ring 23-25, D-80992 M?nchen > Tel +49(0)89-2442-5794 > Mobil +49(0)176-23407715 > Fax +49(0)89-2442-5632 > anton.schweitzer at o2.com > --------------------------------------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From lance at gheek.net Wed Jan 24 18:13:24 2007 From: lance at gheek.net (Lance Vermilion) Date: Wed, 24 Jan 2007 11:13:24 -0700 Subject: [rancid] Re: VLAN.DAT Message-ID: <20070124111324.8e114e4890519e5179c192e02d6bca26.8c6860d903.wbe@email.secureserver.net> Bob, Try doing a more flash:/vlan.dat See what the contents of the file is. maybe a list of vlan belonging....ports....etc. If you don't want to see it then go into /bin/rancid and update the code. I skip the whole dir portions. I have them commented out. I don't have any particular need for them and files are always changing. > -------- Original Message -------- > Subject: [rancid] Re: VLAN.DAT > From: Jeremy McCourt > Date: Wed, January 24, 2007 10:55 am > To: Bob Peck > Cc: Rancid-discuss at shrubbery.net > > Just a quick thought.. Are you running VTP transparent or are you using > VTP domains? Here is what I am thinking, if you use VTP domains the VTP > servers may be sending out vlan updates to make sure everything is still > up to date. > > Bob Peck wrote: > > Hello... > > > > Rancid emails me daily stating the vlan.dat file changes daily even though no changes have been made for years. > > > > Any Ideas folks.. > > > > > > !Flash: Directory of flash:/ > > !Flash: 2 -rwx 27 Oct 25 2006 11:49:47 -04:00 private-config.text > > - !Flash: 3 -rwx 1036 Jan 22 2007 03:00:02 -05:00 vlan.dat > > + !Flash: 3 -rwx 1036 Jan 23 2007 02:58:27 -05:00 vlan.dat > > !Flash: 4 -rwx 1849 Oct 25 2006 11:49:47 -04:00 config.text > > !Flash: 5 drwx 192 Feb 28 1993 19:05:31 -05:00 c3750-ipbase-mz.122-25.SEB > > > > > > Best > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From bpeck at chimesnet.com Wed Jan 24 18:19:50 2007 From: bpeck at chimesnet.com (Bob Peck) Date: Wed, 24 Jan 2007 13:19:50 -0500 Subject: [rancid] New to Rancid Message-ID: <45B7A346.6000802@chimesnet.com> Hello ... I'm new fairly new to rancid and have a question... I know rancid can "get" the cisco configure but can it be configured to "put" the config back on the switch if/when device loses config?? Best..Thanks -- Bob Peck Network Architect Chimes, Inc 5455 Corporate Drive, Suite 303 Troy MI 48098 office (248) 293-6767 ext 270 mobile (586) 604-4665 From rancid at gheek.net Wed Jan 24 18:52:52 2007 From: rancid at gheek.net (Lance) Date: Wed, 24 Jan 2007 11:52:52 -0700 Subject: [rancid] Re: New to Rancid Message-ID: <20070124115252.8e114e4890519e5179c192e02d6bca26.adb384943a.wbe@email.secureserver.net> Bob, Are you talking about putting the config back on the devices automatically...without you triggering it? FYI, Rancid is just a series of scripts (perl/expect/etc) that go out and get the configs and other info and then parse all the information and put it into CVS. So In otherwords you can have rancid do anything you want it to as long as it is a command it can run from the CLI. -Lance > -------- Original Message -------- > Subject: [rancid] New to Rancid > From: Bob Peck > Date: Wed, January 24, 2007 11:19 am > To: Rancid-discuss at shrubbery.net > > Hello ... > > I'm new fairly new to rancid and have a question... I know rancid can > "get" the cisco configure but can it be configured to "put" the config > back on the switch if/when device loses config?? > > Best..Thanks > > -- > Bob Peck > Network Architect > Chimes, Inc > 5455 Corporate Drive, Suite 303 > Troy MI 48098 > > office (248) 293-6767 ext 270 > mobile (586) 604-4665 > > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From rancid at gheek.net Wed Jan 24 18:53:54 2007 From: rancid at gheek.net (Lance) Date: Wed, 24 Jan 2007 11:53:54 -0700 Subject: [rancid] Re: VLAN.DAT Message-ID: <20070124115354.8e114e4890519e5179c192e02d6bca26.23919ba157.wbe@email.secureserver.net> Bob, Try doing a more flash:/vlan.dat See what the contents of the file is. maybe a list of vlan belonging....ports....etc. If you don't want to see it then go into /bin/rancid and update the code. I skip the whole dir portions. I have them commented out. I don't have any particular need for them and files are always changing. > -------- Original Message -------- > Subject: [rancid] Re: VLAN.DAT > From: Jeremy McCourt > Date: Wed, January 24, 2007 10:55 am > To: Bob Peck > Cc: Rancid-discuss at shrubbery.net > > Just a quick thought.. Are you running VTP transparent or are you using > VTP domains? Here is what I am thinking, if you use VTP domains the VTP > servers may be sending out vlan updates to make sure everything is still > up to date. > > Bob Peck wrote: > > Hello... > > > > Rancid emails me daily stating the vlan.dat file changes daily even though no changes have been made for years. > > > > Any Ideas folks.. > > > > > > !Flash: Directory of flash:/ > > !Flash: 2 -rwx 27 Oct 25 2006 11:49:47 -04:00 private-config.text > > - !Flash: 3 -rwx 1036 Jan 22 2007 03:00:02 -05:00 vlan.dat > > + !Flash: 3 -rwx 1036 Jan 23 2007 02:58:27 -05:00 vlan.dat > > !Flash: 4 -rwx 1849 Oct 25 2006 11:49:47 -04:00 config.text > > !Flash: 5 drwx 192 Feb 28 1993 19:05:31 -05:00 c3750-ipbase-mz.122-25.SEB > > > > > > Best > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From eravin at panix.com Wed Jan 24 19:00:48 2007 From: eravin at panix.com (Ed Ravin) Date: Wed, 24 Jan 2007 14:00:48 -0500 Subject: [rancid] Re: New to Rancid In-Reply-To: <20070124115252.8e114e4890519e5179c192e02d6bca26.adb384943a.wbe@email.secureserver.net> References: <20070124115252.8e114e4890519e5179c192e02d6bca26.adb384943a.wbe@email.secureserver.net> Message-ID: <20070124190048.GA15501@panix.com> Don't forget that RANCID, by default, does not store the exact config file of the router - it is post-processed to remove most passwords. Also, line numbers of some things get removed, and unless this has been recently fixed, ACLs get sorted which may cause subtle differences in processing. In nearly all cases, those differences don't matter, but you should understand exactly what's going on so that you don't get tripped up. On Wed, Jan 24, 2007 at 11:52:52AM -0700, Lance wrote: > Bob, > > Are you talking about putting the config back on the devices > automatically...without you triggering it? > > FYI, > > Rancid is just a series of scripts (perl/expect/etc) that go out and get > the configs and other info and then parse all the information and put it > into CVS. So In otherwords you can have rancid do anything you want it > to as long as it is a command it can run from the CLI. From jsherrill at currentcomm.net Thu Jan 25 22:07:15 2007 From: jsherrill at currentcomm.net (Sherrill, Justin) Date: Thu, 25 Jan 2007 17:07:15 -0500 Subject: [rancid] Connecting to a Cisco Service Control Engine Message-ID: <7D3405B5488C0648B39948C26AE91A9B028ACC9E@rocexch01.currentcomm.com> I've got a number of Cisco SCE units (formerly known as P-Cube). They don't prompt for a username, just a password. Connecting to them with clogin will log in, but they hang once the user prompt shows. The prompt is the normal type that Rancid recognizes - "hostname>". It appears that Rancid emits the password normally, and then waits for something other than the user prompt, which leads to the timeout. I don't know what that something is. Looking at clogin, it appears that it should enter the password and happily continue when it sees the '>' in the prompt, unless I'm reading it wrong. Will clogin look for the user prompt if the username hasn't been entered? (Details - .cloginrc): add password 10.0.0.1 pass1 pass2 add method 10.0.0.1 {telnet} (what I see) $ ./bin/clogin -c 'show vers' 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 (10.0.0.1). Escape character is '^]'. User Access Verification Password: hostname> Error: TIMEOUT reached ----------------------------------------- Justin C. Sherrill - CURRENT Communications 220 Kenneth Drive Rochester, New York 14623 P: 585.486.0549 F: 585.486.0030 ***CONFIDENTIALITY NOTICE*** The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this message from your system. From justin.shore at sktbcs.com Thu Jan 25 22:53:36 2007 From: justin.shore at sktbcs.com (Justin Shore) Date: Thu, 25 Jan 2007 16:53:36 -0600 Subject: [rancid] Re: Connecting to a Cisco Service Control Engine Message-ID: <4CBACF4FA9CE1046907D5132920D794D0192C874@clw1.SKT.ICT> This is of great interest to me as well. I just bought 2 2020s and I'm going to want to use RANCID on them as well. Justin -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sherrill, Justin Sent: Thursday, January 25, 2007 4:07 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Connecting to a Cisco Service Control Engine I've got a number of Cisco SCE units (formerly known as P-Cube). They don't prompt for a username, just a password. Connecting to them with clogin will log in, but they hang once the user prompt shows. The prompt is the normal type that Rancid recognizes - "hostname>". It appears that Rancid emits the password normally, and then waits for something other than the user prompt, which leads to the timeout. I don't know what that something is. Looking at clogin, it appears that it should enter the password and happily continue when it sees the '>' in the prompt, unless I'm reading it wrong. Will clogin look for the user prompt if the username hasn't been entered? (Details - .cloginrc): add password 10.0.0.1 pass1 pass2 add method 10.0.0.1 {telnet} (what I see) $ ./bin/clogin -c 'show vers' 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 (10.0.0.1). Escape character is '^]'. User Access Verification Password: hostname> Error: TIMEOUT reached ----------------------------------------- Justin C. Sherrill - CURRENT Communications 220 Kenneth Drive Rochester, New York 14623 P: 585.486.0549 F: 585.486.0030 ***CONFIDENTIALITY NOTICE*** The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this message from your system. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From mnoriega at amnetcorp.com Fri Jan 26 18:52:40 2007 From: mnoriega at amnetcorp.com (Manuel Noriega) Date: Fri, 26 Jan 2007 12:52:40 -0600 Subject: [rancid] Re: Connecting to a Cisco Service Control Engine In-Reply-To: <7D3405B5488C0648B39948C26AE91A9B028ACC9E@rocexch01.currentcomm.com> References: <7D3405B5488C0648B39948C26AE91A9B028ACC9E@rocexch01.currentcomm.com> Message-ID: <4B32E640-EF85-4561-A37F-E8CFCFA3A1BE@amnetcorp.com> I had a similar situation with Tellabs equipment which don't ask for user or password and login immediately. What I used in .cloginrc was: add userprompt tellabs* ">" I guess in your case something similar may work using add enableprompt 10.0.0.1 ">" Sincerely, Manuel Noriega ISP Engineer -------------- next part -------------- A non-text attachment was scrubbed... Name: AmnetDatos-Little.jpg Type: image/jpeg Size: 12703 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070126/0f0cd616/attachment.jpg -------------- next part -------------- 13 CALLE 3-40, ZONA 10 15 NIVEL, OFICINA 15-01 GUATEMALA CITY, C.A. PBX (502) 2279 0099 FAX (502) 2279 0003 www.amnetdatos.com On Jan 25, 2007, at 4:07 PM, Sherrill, Justin wrote: > I've got a number of Cisco SCE units (formerly known as P-Cube). They > don't prompt for a username, just a password. Connecting to them with > clogin will log in, but they hang once the user prompt shows. > > The prompt is the normal type that Rancid recognizes - > "hostname>". It > appears that Rancid emits the password normally, and then waits for > something other than the user prompt, which leads to the timeout. I > don't know what that something is. > > Looking at clogin, it appears that it should enter the password and > happily continue when it sees the '>' in the prompt, unless I'm > reading > it wrong. > > Will clogin look for the user prompt if the username hasn't been > entered? > > (Details - .cloginrc): > > add password 10.0.0.1 pass1 pass2 > add method 10.0.0.1 {telnet} > > (what I see) > > $ ./bin/clogin -c 'show vers' 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 (10.0.0.1). > Escape character is '^]'. > > > User Access Verification > > Password: > hostname> > Error: TIMEOUT reached > > ----------------------------------------- > Justin C. Sherrill - CURRENT Communications > 220 Kenneth Drive > Rochester, New York 14623 > P: 585.486.0549 F: 585.486.0030 > > > > ***CONFIDENTIALITY NOTICE*** > The information in this email may be confidential and/or > privileged. This email is intended to be reviewed by only the > individual or organization named above. If you are not the intended > recipient or an authorized representative of the intended > recipient, you are hereby notified that any review, dissemination > or copying of this email and its attachments, if any, or the > information contained herein is prohibited. If you have received > this email in error, please immediately notify the sender by return > email and delete this message from your system. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From rancid at gheek.net Fri Jan 26 20:00:47 2007 From: rancid at gheek.net (Lance) Date: Fri, 26 Jan 2007 13:00:47 -0700 Subject: [rancid] Re: Connecting to a Cisco Service Control Engine Message-ID: <20070126130047.8e114e4890519e5179c192e02d6bca26.fd13300eea.wbe@email.secureserver.net> Does it work at all on any devices that don't have a username prompt. I have a ton of devices that don't have user prompts and mine works just fine. I know that doesn't answer the question, but just a curious question. > -------- Original Message -------- > Subject: [rancid] Re: Connecting to a Cisco Service Control Engine > From: Manuel Noriega > Date: Fri, January 26, 2007 11:52 am > To: "Sherrill, Justin" > Cc: rancid-discuss at shrubbery.net > > I had a similar situation with Tellabs equipment which don't ask for > user or password and login immediately. What I used in .cloginrc was: > > add userprompt tellabs* ">" > > I guess in your case something similar may work using > > add enableprompt 10.0.0.1 ">" > > > > Sincerely, > > Manuel Noriega > ISP Engineer > > > --------------------------------------------------------------------- > > > > 13 CALLE 3-40, ZONA 10 > 15 NIVEL, OFICINA 15-01 > GUATEMALA CITY, C.A. > PBX (502) 2279 0099 > FAX (502) 2279 0003 > > www.amnetdatos.com > > > On Jan 25, 2007, at 4:07 PM, Sherrill, Justin wrote: > > > I've got a number of Cisco SCE units (formerly known as P-Cube). > They > > don't prompt for a username, just a password. Connecting to them > with > > clogin will log in, but they hang once the user prompt shows. > > > > The prompt is the normal type that Rancid recognizes - > > "hostname>". It > > appears that Rancid emits the password normally, and then waits for > > something other than the user prompt, which leads to the timeout. I > > don't know what that something is. > > > > Looking at clogin, it appears that it should enter the password and > > happily continue when it sees the '>' in the prompt, unless I'm > > reading > > it wrong. > > > > Will clogin look for the user prompt if the username hasn't been > > entered? > > > > (Details - .cloginrc): > > > > add password 10.0.0.1 pass1 pass2 > > add method 10.0.0.1 {telnet} > > > > (what I see) > > > > $ ./bin/clogin -c 'show vers' 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 (10.0.0.1). > > Escape character is '^]'. > > > > > > User Access Verification > > > > Password: > > hostname> > > Error: TIMEOUT reached > > > > ----------------------------------------- > > Justin C. Sherrill - CURRENT Communications > > 220 Kenneth Drive > > Rochester, New York 14623 > > P: 585.486.0549 F: 585.486.0030 > > > > > > > > ***CONFIDENTIALITY NOTICE*** > > The information in this email may be confidential and/or > > privileged. This email is intended to be reviewed by only the > > individual or organization named above. If you are not the intended > > > recipient or an authorized representative of the intended > > recipient, you are hereby notified that any review, dissemination > > or copying of this email and its attachments, if any, or the > > information contained herein is prohibited. If you have received > > this email in error, please immediately notify the sender by return > > > email and delete this message from your system. > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > --------------------------------------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From jsherrill at currentcomm.net Fri Jan 26 22:00:02 2007 From: jsherrill at currentcomm.net (Sherrill, Justin) Date: Fri, 26 Jan 2007 17:00:02 -0500 Subject: [rancid] Re: Connecting to a Cisco Service Control Engine Message-ID: <7D3405B5488C0648B39948C26AE91A9B028ACCAA@rocexch01.currentcomm.com> In this case, it doesn't work. Since the normal prompt includes '>', it goes into a loop. It looks like without the normal prompt, it never leaves the login loop. ----------------------------------------- Justin C. Sherrill - CURRENT Communications 220 Kenneth Drive Rochester, New York 14623 P: 585.486.0549 F: 585.486.0030 -----Original Message----- From: Manuel Noriega [mailto:mnoriega at amnetcorp.com] Sent: Friday, January 26, 2007 1:53 PM To: Sherrill, Justin Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Connecting to a Cisco Service Control Engine I had a similar situation with Tellabs equipment which don't ask for user or password and login immediately. What I used in .cloginrc was: add userprompt tellabs* ">" I guess in your case something similar may work using add enableprompt 10.0.0.1 ">" Sincerely, Manuel Noriega ISP Engineer ***CONFIDENTIALITY NOTICE*** The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this message from your system. From yuvalba at netvision.net.il Sun Jan 28 10:57:17 2007 From: yuvalba at netvision.net.il (Yuval Ben-Ari) Date: Sun, 28 Jan 2007 12:57:17 +0200 Subject: [rancid] sub groups Message-ID: <58D14E53A4F69C4EAF4D29171C447CC491FF9D@NTX-CL.forest.netvision.net.il> Hi, Is it possible to configure sub groups in rancid ? I want to create a group that will have it's own group's inside. (think of scenario where two networks merge etc ...) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070128/4caa3936/attachment.html From rancid at gheek.net Mon Jan 29 01:47:47 2007 From: rancid at gheek.net (Lance) Date: Sun, 28 Jan 2007 18:47:47 -0700 Subject: [rancid] Re: sub groups Message-ID: <20070128184747.8e114e4890519e5179c192e02d6bca26.dae73c687e.wbe@email.secureserver.net> Why not just create a network group for each company? -Lance > -------- Original Message -------- > Subject: [rancid] sub groups > From: "Yuval Ben-Ari" > Date: Sun, January 28, 2007 3:57 am > To: > > Hi, Is it possible to configure sub groups in rancid ? I want to create a group that will have it's own group's inside. (think of scenario where two networks merge etc ...) Thanks > --------------------------------------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From prcdacster at gmail.com Sun Jan 28 14:04:56 2007 From: prcdacster at gmail.com (pradyut pradyut) Date: Sun, 28 Jan 2007 19:34:56 +0530 Subject: [rancid] Regarding Rancid Installation in Fedora Message-ID: <45b6afc40701280604o5afc4cf4n5749e93c31956223@mail.gmail.com> Dear Sir It is asking for windres may I know what are the dependent utilities require before the rancid wil be running in browser. I am installing it for the first time. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070128/430c3420/attachment.html From saku+rancid at ytti.fi Mon Jan 29 17:36:48 2007 From: saku+rancid at ytti.fi (Saku Ytti) Date: Mon, 29 Jan 2007 19:36:48 +0200 Subject: [rancid] Re: sub groups In-Reply-To: <58D14E53A4F69C4EAF4D29171C447CC491FF9D@NTX-CL.forest.netvision.net.il> References: <58D14E53A4F69C4EAF4D29171C447CC491FF9D@NTX-CL.forest.netvision.net.il> Message-ID: <20070129173648.GA27450@mx.ytti.net> On (2007-01-28 12:57 +0200), Yuval Ben-Ari wrote: > Is it possible to configure sub groups in rancid ? > I want to create a group that will have it's own group's inside. > (think of scenario where two networks merge etc ...) What I've done is differentiated regions with dot. So you could have eg. Switch.North, Switch.Italy, Switch.Dublin or what not. Might not work for you, but at least it allows you to create helper scripts to just look boxes from certain region or just boxes of certain function from all regions. -- ++ytti From rancid at gheek.net Mon Jan 29 18:08:33 2007 From: rancid at gheek.net (Lance) Date: Mon, 29 Jan 2007 11:08:33 -0700 Subject: [rancid] Re: Regarding Rancid Installation in Fedora Message-ID: <20070129110833.8e114e4890519e5179c192e02d6bca26.e3b8d9c5e7.wbe@email.secureserver.net> Maybe it is just me, but I don't really understand your question. If you are installing for the first time make sure you read the FAQ. It will provide you will a lot of answers to most of the common questions like this one. > -------- Original Message -------- > Subject: [rancid] Regarding Rancid Installation in Fedora > From: "pradyut pradyut" > Date: Sun, January 28, 2007 7:04 am > To: rancid-discuss at shrubbery.net > > Dear Sir > It is asking for windres may I know what are the dependent utilities require before the rancid wil be running in browser. I am installing it for the first time. > > --------------------------------------------------------------------- > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From neil-johnson at uiowa.edu Mon Jan 29 18:23:25 2007 From: neil-johnson at uiowa.edu (Johnson, Neil M) Date: Mon, 29 Jan 2007 12:23:25 -0600 Subject: [rancid] Using a remote subversion repository Message-ID: <6A490BD35632EF48871355D69A79517C4326F1@IOWAEVS02.iowa.uiowa.edu> I would like to run RANCID on a UNIX box and locate the SVN repository on a Windows machine (don't blame me, I'm just the messenger). Can you do it with SVN or do you have to use CVS ? Thanks. -- Neil Johnson Network Engineering Group Telecommunications and Network Services The University of Iowa 319 384-0938 (Work) 319 330-2235 (Cell) -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3088 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070129/ab598283/attachment.bin From rancid at gheek.net Tue Jan 30 04:33:26 2007 From: rancid at gheek.net (Lance) Date: Mon, 29 Jan 2007 21:33:26 -0700 Subject: [rancid] Re: Using a remote subversion repository Message-ID: <20070129213326.8e114e4890519e5179c192e02d6bca26.a4126416b7.wbe@email.secureserver.net> The first thing that comes to mind is samba. Ever try that. > -------- Original Message -------- > Subject: [rancid] Using a remote subversion repository > From: "Johnson, Neil M" > Date: Mon, January 29, 2007 11:23 am > To: > > I would like to run RANCID on a UNIX box and locate the SVN repository on a > Windows machine (don't blame me, I'm just the messenger). > > Can you do it with SVN or do you have to use CVS ? > > Thanks. > > -- > Neil Johnson > Network Engineering Group > Telecommunications and Network Services > The University of Iowa > 319 384-0938 (Work) > 319 330-2235 (Cell) From mstefani at redhat.com Tue Jan 30 09:54:19 2007 From: mstefani at redhat.com (Michael Stefaniuc) Date: Tue, 30 Jan 2007 10:54:19 +0100 Subject: [rancid] Re: Using a remote subversion repository In-Reply-To: <6A490BD35632EF48871355D69A79517C4326F1@IOWAEVS02.iowa.uiowa.edu> References: <6A490BD35632EF48871355D69A79517C4326F1@IOWAEVS02.iowa.uiowa.edu> Message-ID: <45BF15CB.3030207@redhat.com> Johnson, Neil M wrote: > > I would like to run RANCID on a UNIX box and locate the SVN repository on a > Windows machine (don't blame me, I'm just the messenger). > > Can you do it with SVN or do you have to use CVS ? Even the rancid homepage says that SVN is supported http://www.shrubbery.net/rancid/ And as long as the SVN on the Windows box is reachable from the network your proposed setup will work too. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Sr. Network Engineer Fax.: +49-711-96437-111 Red Hat GmbH Email: mstefani at redhat.com Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart From neil-johnson at uiowa.edu Tue Jan 30 16:38:27 2007 From: neil-johnson at uiowa.edu (Johnson, Neil M) Date: Tue, 30 Jan 2007 10:38:27 -0600 Subject: [rancid] Re: Using a remote subversion repository In-Reply-To: <45BF15CB.3030207@redhat.com> References: <6A490BD35632EF48871355D69A79517C4326F1@IOWAEVS02.iowa.uiowa.edu> <45BF15CB.3030207@redhat.com> Message-ID: <6A490BD35632EF48871355D69A79517C432869@IOWAEVS02.iowa.uiowa.edu> I looked at the source for both rancid-cvs and control_rancid. Unfortunately RANCID only supports a file based subversion repository. When using Subversion the CVSROOT variable is wrapped in side of a file statement (file://$CVSROOT/$GROUP). When using CVS the CVSROOT can actually be defined as a link to a server. I'm not sure why the decsion was made to implement Subversion this way. Looks like I'm going to need to use CVS. That means I will have to install CVSNT and a SSH server on the Windows box. -Neil -- Neil Johnson Network Engineering Group Telecommunications and Network Services The University of Iowa 319 384-0938 (Work) 319 330-2235 (Cell) -----Original Message----- From: Michael Stefaniuc [mailto:mstefani at redhat.com] Sent: Tuesday, January 30, 2007 3:54 AM To: Johnson, Neil M Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Using a remote subversion repository Johnson, Neil M wrote: > > I would like to run RANCID on a UNIX box and locate the SVN repository > on a Windows machine (don't blame me, I'm just the messenger). > > Can you do it with SVN or do you have to use CVS ? Even the rancid homepage says that SVN is supported http://www.shrubbery.net/rancid/ And as long as the SVN on the Windows box is reachable from the network your proposed setup will work too. bye michael -- Michael Stefaniuc Tel.: +49-711-96437-199 Sr. Network Engineer Fax.: +49-711-96437-111 Red Hat GmbH Email: mstefani at redhat.com Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3088 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070130/05f11f6a/attachment.bin