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 "(Use