From c.shekar1987 at gmail.com Tue Aug 1 07:07:01 2017 From: c.shekar1987 at gmail.com (Shekar) Date: Tue, 1 Aug 2017 12:37:01 +0530 Subject: [rancid] Adding motorola & Ruckus Controllers for backup generation under rancid Message-ID: Hello All, I am using rancid 3.4.1, would like to know if i can add morotola and ruckus controllers for taking backup under rancid. I couldn't figure out any docs / links w.r.to. same. Any pointers are greatly helpful. Cheers, Shekar -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.vak at gmail.com Tue Aug 1 10:20:07 2017 From: tom.vak at gmail.com (Tom Vaknin) Date: Tue, 1 Aug 2017 13:20:07 +0300 Subject: [rancid] problem with get config from asa (version 8.x) Message-ID: Hi all ASAs with version lower then 9.2 are not support auto-enable. therefore, my .cloginrc file look like this: *.cloginrc:* add user FWASA rancid add password FWASA userpass enablepass add autoenable FWASA 0 *i can see on tac log that rancid login and logout couple of times:* 2017-08-01 08:27:04 +0000,1.1.1.1,rancid,482,2.2.2.2,shell login succeeded 2017-08-01 08:27:17 +0000,1.1.1.1,rancid,483,2.2.2.2,shell login succeeded 2017-08-01 08:27:31 +0000,1.1.1.1,rancid,484,2.2.2.2,shell login succeeded 2017-08-01 08:27:45 +0000,1.1.1.1,rancid,485,2.2.2.2,shell login succeeded *and run the following commands:* 2017-08-01 08:27:07 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:12 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:20 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:26 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:33 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:40 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:48 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:53 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, *the rancid log look like this:* Trying to get all of the configs. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 1. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 2. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 3. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 4. 1.1.1.1: End of run not found Any idea what am i missing here? Thanks. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Tue Aug 1 14:48:53 2017 From: rwest at zyedge.com (Ryan West) Date: Tue, 1 Aug 2017 14:48:53 +0000 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: References: Message-ID: Hello, On Tue, Aug 01, 2017 at 06:20:07, Tom Vaknin wrote: > Subject: [rancid] problem with get config from asa (version 8.x) > > Hi all > > ASAs with version lower then 9.2 are not support auto-enable. > therefore, my .cloginrc file look like this: > > .cloginrc: > add user FWASA rancid > add password FWASA userpass enablepass add autoenable FWASA 0 Your cloginrc looks fine to me. What happens when you try connect 'clogin FWASA' ? > Any idea what am i missing here? > Thanks. > Tom -ryan From cgauthier at comscore.com Tue Aug 1 14:50:22 2017 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 1 Aug 2017 14:50:22 +0000 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: References: Message-ID: Chris GauthierSenior Network Engineer | comScore, Inc. o +1 503-331-2704cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR97204 ............................................................................................................................................................................................................................ From: Rancid-discuss on behalf of Tom Vaknin Date: Tuesday, August 1, 2017 at 7:36 AM To: "rancid-discuss at shrubbery.net" Subject: [rancid] problem with get config from asa (version 8.x) Hi all ASAs with version lower then 9.2 are not support auto-enable. therefore, my .cloginrc file look like this: .cloginrc: add user FWASA rancid add password FWASA userpass enablepass add autoenable FWASA 0 i can see on tac log that rancid login and logout couple of times: 2017-08-01 08:27:04 +0000,1.1.1.1,rancid,482,2.2.2.2,shell login succeeded 2017-08-01 08:27:17 +0000,1.1.1.1,rancid,483,2.2.2.2,shell login succeeded 2017-08-01 08:27:31 +0000,1.1.1.1,rancid,484,2.2.2.2,shell login succeeded 2017-08-01 08:27:45 +0000,1.1.1.1,rancid,485,2.2.2.2,shell login succeeded and run the following commands: 2017-08-01 08:27:07 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:12 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:20 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:26 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:33 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:40 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, 2017-08-01 08:27:48 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,show,version 2017-08-01 08:27:53 +0000,1.1.1.1,rancid,22,2.2.2.2,permit,exit, the rancid log look like this: Trying to get all of the configs. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 1. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 2. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 3. 1.1.1.1: End of run not found ! ===================================== Getting missed routers: round 4. 1.1.1.1: End of run not found Any idea what am i missing here? Thanks. Tom Tom, Have you tried Export NOPIPE=YES /usr/local/rancid/bin/rancid ?d ?t cisco device.example.com Take a look at both the .new file and the .raw file. I find the .raw file is more useful for this kind of issue, but you can see what is happening. --Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Aug 1 15:06:02 2017 From: heas at shrubbery.net (heasley) Date: Tue, 1 Aug 2017 15:06:02 +0000 Subject: [rancid] Adding motorola & Ruckus Controllers for backup generation under rancid In-Reply-To: References: Message-ID: <20170801150602.GE76730@shrubbery.net> Tue, Aug 01, 2017 at 12:37:01PM +0530, Shekar: > Hello All, > > I am using rancid 3.4.1, would like to know if i can add morotola and > ruckus controllers for taking backup under rancid. I couldn't figure out > any docs / links w.r.to. same. > Any pointers are greatly helpful. The rancid FAQ has information about extending rancid. From tom.vak at gmail.com Tue Aug 1 15:09:13 2017 From: tom.vak at gmail.com (Tom Vaknin) Date: Tue, 1 Aug 2017 18:09:13 +0300 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: References: Message-ID: Hi Ryan, im able to connect: [root at RANCID ~]# clogin FWASA FWASA spawn ssh -x -l rancid FWASA rancid at FWASA 's password: Type help or '?' for a list of available commands. FWASA /act> FWASA /act> FWASA /act> i can continue manually and type 'enable' and then the enable password from the .cloginrc file. thanks for the help. 2017-08-01 17:48 GMT+03:00 Ryan West : > Hello, > > On Tue, Aug 01, 2017 at 06:20:07, Tom Vaknin wrote: > > Subject: [rancid] problem with get config from asa (version 8.x) > > > > Hi all > > > > ASAs with version lower then 9.2 are not support auto-enable. > > therefore, my .cloginrc file look like this: > > > > .cloginrc: > > add user FWASA rancid > > add password FWASA userpass enablepass add autoenable FWASA 0 > > Your cloginrc looks fine to me. What happens when you try connect 'clogin > FWASA' ? > > > > Any idea what am i missing here? > > Thanks. > > Tom > > -ryan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwest at zyedge.com Tue Aug 1 15:16:03 2017 From: rwest at zyedge.com (Ryan West) Date: Tue, 1 Aug 2017 15:16:03 +0000 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: References: Message-ID: <30ce758f8c1242ee9f8b1478c3ddbe83@zy-colo-mbx1.zyedge.local> On Tue, Aug 01, 2017 at 11:09:13, Tom Vaknin wrote: > Subject: Re: [rancid] problem with get config from asa (version 8.x) > > Hi Ryan, > > im able to connect: > [root at RANCID ~]# clogin FWASA > FWASA > > spawn ssh -x -l rancid FWASA > rancid at FWASA 's password: > Type help or '?' for a list of available commands. > FWASA /act> > FWASA /act> > FWASA /act> > You're not getting to enable, it might be an issue with the password file. Have you tried putting the password in {}? Clogin for that device should go enable automatically with your .cloginrc file. -ryan From cgauthier at comscore.com Tue Aug 1 14:46:19 2017 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 1 Aug 2017 14:46:19 +0000 Subject: [rancid] F5 BIG-IP issue In-Reply-To: <20170731225610.GI49389@shrubbery.net> References: <57FD84723C05BB4FA3BB5F66AC609F64014DB75D3F@XCH-IL-MB2.888holdings.corp> <20170731221859.GH49389@shrubbery.net> <3B98D614-44FB-473C-82ED-56CFFF640657@comscore.com> <20170731225610.GI49389@shrubbery.net> Message-ID: <08414D6D-715F-47BF-A2AA-FC832FB107B5@comscore.com> Chris GauthierSenior Network Engineer | comScore, Inc. o +1 503-331-2704cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR97204 ............................................................................................................................................................................................................................ On 7/31/17, 3:56 PM, "heasley" wrote: Mon, Jul 31, 2017 at 10:25:40PM +0000, Gauthier, Chris: > > Rancid version we are running rancid 3.2.99 is fairly old but very stable ! > 3.2.99 i think would be just f5rancid/device type f5; is therefore the > command cat /config/bigip.license? I though perhaps it was just being > slow or hanging, but seems unlikely with cat. so, i suspect you have > modified the base rancid; how so? > > Actually, rancid.types.base shows that ?bigip? as being for F5 versions 11+ and ?f5? being used for versions <=10. So, he is using the correct type in this case. I?m about to consider 13, so it would be good to know about. > he wrote 3.2.99 and i think that bigip didnt appear until 3.5. -=-=-=-=- Ooops. This is called ?foot in mouth? syndrome. ;) My brain totally forgot it was an earlier version. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Aug 1 17:58:21 2017 From: heas at shrubbery.net (heasley) Date: Tue, 1 Aug 2017 17:58:21 +0000 Subject: [rancid] Fortigate Cluster uptime In-Reply-To: References: <20170731214743.GE49389@shrubbery.net> Message-ID: <20170801175821.GE47846@shrubbery.net> Mon, Jul 31, 2017 at 10:39:40PM +0000, Ryan: > Hi, > > > Thanks for the help. "get system status" also produces the line: Index: bin/fnrancid.in =================================================================== --- bin/fnrancid.in (revision 3719) +++ bin/fnrancid.in (working copy) @@ -188,6 +188,8 @@ next if (/^\s*Extended DB: .*/); next if (/^\s*IPS-DB: .*/); next if (/^FortiClient application signature package:/); + # Cluster uptime + next if (/^\s*Cluster uptime:/); ProcessHistory("","","","#$_"); } > DCPGFW1 # get system status > > Current HA mode: a-p, master > Cluster uptime: 37 days, 10 hours, 14 minutes, 55 seconds > System time: Tue Aug 1 10:35:45 2017 > > FYI I removed the ! from the line (next if (/^\s*Cluster uptime:/);) but I get a mail with the following: > > > #FIPS-CC mode: disable > > #Current HA mode: a-p, master > > - #Cluster uptime: 35 days, 20 hours, 37 minutes, 22 seconds > > + #Cluster uptime: 37 days, 10 hours, 16 minutes, 50 seconds > > > Thanks again. > > > > ________________________________ > From: heasley > Sent: 31 July 2017 21:47:43 > To: Ryan > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Fortigate Cluster uptime > > Sun, Jul 30, 2017 at 09:26:18AM +0000, Ryan: > > Hi All, > > > > > > Sorry to mail this out but I have searched through a number of groups and cant find anything that actually works. I recently upgraded my Fortinet FW cluster and, unfortunately, the config status displays a new line, "Cluster uptime", from the "get system ha status" cli. e.g. > > > > rancid does not use that command. it uses only get system status. is that > command including this output now or have you changed your distribution? > > > !Virtual domains status: 1 in NAT mode, 0 in TP mode > > > > !Virtual domain configuration: disable > > > > !FIPS-CC mode: disable > > > > !Current HA mode: a-p, master > > > > - !Cluster uptime: 35 days, 19 hours, 40 minutes, 13 seconds > > > > + !Cluster uptime: 35 days, 20 hours, 40 minutes, 13 seconds > > > > !Branch point: 1449 > > > > !Release Version Information: GA > > > > > > The "Cluster uptime" means that I get an updated FW version mailed to me every hour of the day. I have tried a number of things to resolve this including: > > > > > > 1. I updated the fnrancid file with the below but both attempts failed: > > > > > > sub GetConf { > > print STDERR " In GetConf: $_" if ($debug); > > > > while () { > > tr/\015//d; > > next if /^\s*$/; > > last if (/$prompt/); > > > > # System time is fortigate extraction time > > next if (/^\s*!System time:/); > > # remove occurrances of conf_file_ver > > next if (/^#?conf_file_ver=/); > > > > > > # First think I tried > > > > #remove occurances of Cluster Uptime > > next if (/^\s*!Cluster uptime:/); > > no !. > > > > > # next thing I tried. > > > > #if (/^\s*!Cluster uptime:/) { > > # ProcessHistory("","","","","","#$_"); > > # next; > > #} > > > > > > 2. I tried other options e.g. writing something similar to the cycling password but I am afraid I reached the end of my skillset. > > > > 3. Finally I thought my Rancid server is pretty old 2.3.6 so I built a new rancid server (3.3.0) using Ubuntu 16.04 and updated the fnrancid again without success. > > > > > > Two questions if I may: > > > > 1. Anyone know how I can ignore the Cluster uptime line? > > 2. If I move to using the new server is there a way to export the CVS history on the old server and import it on the new? > > > > > > Thanks in advance! Your help is appreciated! > > > > > > Cheers, > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From heas at shrubbery.net Tue Aug 1 18:08:59 2017 From: heas at shrubbery.net (heasley) Date: Tue, 1 Aug 2017 18:08:59 +0000 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: <30ce758f8c1242ee9f8b1478c3ddbe83@zy-colo-mbx1.zyedge.local> References: <30ce758f8c1242ee9f8b1478c3ddbe83@zy-colo-mbx1.zyedge.local> Message-ID: <20170801180859.GA7694@shrubbery.net> Tue, Aug 01, 2017 at 03:16:03PM +0000, Ryan West: > On Tue, Aug 01, 2017 at 11:09:13, Tom Vaknin wrote: > > Subject: Re: [rancid] problem with get config from asa (version 8.x) > > > > Hi Ryan, > > > > im able to connect: > > [root at RANCID ~]# clogin FWASA > > FWASA > > > > spawn ssh -x -l rancid FWASA > > rancid at FWASA 's password: > > Type help or '?' for a list of available commands. > > FWASA /act> > > FWASA /act> > > FWASA /act> > > > > You're not getting to enable, it might be an issue with the password file. Have you tried putting the password in {}? Clogin for that device should go enable automatically with your .cloginrc file. assuming a more recent version of rancid, try clogin -m FWASA it will show you which cloginrc lines were matched. it may not be matching what you think. From me at falz.net Tue Aug 1 20:21:32 2017 From: me at falz.net (Chris Wopat) Date: Tue, 1 Aug 2017 15:21:32 -0500 Subject: [rancid] Fixed Ciena-ws Rancid 3.6.2 In-Reply-To: <20170731212449.GB49389@shrubbery.net> References: <20170731212449.GB49389@shrubbery.net> Message-ID: On 07/31/2017 04:24 PM, heasley wrote: > Fri, Jul 28, 2017 at 12:50:51PM -0500, Chris Wopat: >> I'm not sure what it is. Confirm that it is indeed in the .raw files I >> sent you a while back. >> >> The configuration guide doesn't mention it at all, it does specify >> what we already know about > vs #: >> >> "When a user with super access privileges is logged in, >> the CLI prompt for that session contains a # (hash >> or pound) character (for example, Waveserver #)." > > hrm, well, its clearly there. would you try the patch below (or the > current alpha)? based on the examples that i have, it ought to work. > > Index: lib/wavesvros.pm.in > =================================================================== > --- lib/wavesvros.pm.in (revision 3720) > +++ lib/wavesvros.pm.in (working copy) > @@ -65,10 +65,13 @@ > while (/[>#]\s*($cmds_regexp)\s*$/) { > $cmd = $1; > if (!defined($prompt)) { > - $prompt = ($_ =~ /^([^>#]+[>#])/)[0]; > + $_ =~ /^([^>#*^]+)([*^])?([>#])/; > + $prompt = $1; > + my($tail) = $3; > $prompt =~ s/([][}{)(\\])/\\$1/g; > - # prompt changes when config is unsaved - "foo*> " > - $prompt =~ s/\*/\\\*/; > + # prompt changes when config is unsaved - "foo*> " and may be > + # "foo$> " for some unknown reason. > + $prompt .= "[*^]?" . $tail . " ?"; > print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); > } > print STDERR ("HIT COMMAND:$_") if ($debug); > I applied this to the previously patched (http://www.shrubbery.net/pipermail/rancid-discuss/2017-July/009768.html) version and it does indeed seem to work. I had this one line still in place as well (http://www.shrubbery.net/pipermail/rancid-discuss/2017-July/009772.html). It seems to work with or without it in place, so I opted to go without it and it seems fine, tested on 4 waveservers. Curious if the others have success as well? I'm on WaveserverOS 1.3, not yet 1.4. From heas at shrubbery.net Tue Aug 1 22:25:35 2017 From: heas at shrubbery.net (heasley) Date: Tue, 1 Aug 2017 22:25:35 +0000 Subject: [rancid] Fixed Ciena-ws Rancid 3.6.2 In-Reply-To: References: <20170731212449.GB49389@shrubbery.net> Message-ID: <20170801222535.GA63744@shrubbery.net> Tue, Aug 01, 2017 at 03:21:32PM -0500, Chris Wopat: > On 07/31/2017 04:24 PM, heasley wrote: > > Fri, Jul 28, 2017 at 12:50:51PM -0500, Chris Wopat: > >> I'm not sure what it is. Confirm that it is indeed in the .raw files I > >> sent you a while back. > >> > >> The configuration guide doesn't mention it at all, it does specify > >> what we already know about > vs #: > >> > >> "When a user with super access privileges is logged in, > >> the CLI prompt for that session contains a # (hash > >> or pound) character (for example, Waveserver #)." > > > > hrm, well, its clearly there. would you try the patch below (or the > > current alpha)? based on the examples that i have, it ought to work. > > > > > Index: lib/wavesvros.pm.in > > =================================================================== > > --- lib/wavesvros.pm.in (revision 3720) > > +++ lib/wavesvros.pm.in (working copy) > > @@ -65,10 +65,13 @@ > > while (/[>#]\s*($cmds_regexp)\s*$/) { > > $cmd = $1; > > if (!defined($prompt)) { > > - $prompt = ($_ =~ /^([^>#]+[>#])/)[0]; > > + $_ =~ /^([^>#*^]+)([*^])?([>#])/; > > + $prompt = $1; > > + my($tail) = $3; > > $prompt =~ s/([][}{)(\\])/\\$1/g; > > - # prompt changes when config is unsaved - "foo*> " > > - $prompt =~ s/\*/\\\*/; > > + # prompt changes when config is unsaved - "foo*> " and may be > > + # "foo$> " for some unknown reason. > > + $prompt .= "[*^]?" . $tail . " ?"; > > print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); > > } > > print STDERR ("HIT COMMAND:$_") if ($debug); > > > > I applied this to the previously patched > (http://www.shrubbery.net/pipermail/rancid-discuss/2017-July/009768.html) > version and it does indeed seem to work. > > I had this one line still in place as well > (http://www.shrubbery.net/pipermail/rancid-discuss/2017-July/009772.html). > It seems to work with or without it in place, so I opted to go without > it and it seems fine, tested on 4 waveservers. > > Curious if the others have success as well? I'm on WaveserverOS 1.3, not > yet 1.4. outstanding. on to the asa problem, then package 3.7. From merlin_rbs at hotmail.com Tue Aug 1 21:07:39 2017 From: merlin_rbs at hotmail.com (Ryan) Date: Tue, 1 Aug 2017 21:07:39 +0000 Subject: [rancid] Fortigate Cluster uptime In-Reply-To: <20170801175821.GE47846@shrubbery.net> References: <20170731214743.GE49389@shrubbery.net> , <20170801175821.GE47846@shrubbery.net> Message-ID: Thanks! That worked. I had the "cluster uptime" line located in the wrong place. moving it to the location you showed (Line 184 in the script) sorted it out. next if (/^FortiClient application signature package:/); + # Cluster uptime + next if (/^\s*Cluster uptime:/); ProcessHistory("","","","#$_"); } Cheers! ________________________________ From: heasley Sent: 01 August 2017 17:58:21 To: Ryan Cc: heasley; rancid-discuss at shrubbery.net Subject: Re: [rancid] Fortigate Cluster uptime Mon, Jul 31, 2017 at 10:39:40PM +0000, Ryan: > Hi, > > > Thanks for the help. "get system status" also produces the line: Index: bin/fnrancid.in =================================================================== --- bin/fnrancid.in (revision 3719) +++ bin/fnrancid.in (working copy) @@ -188,6 +188,8 @@ next if (/^\s*Extended DB: .*/); next if (/^\s*IPS-DB: .*/); next if (/^FortiClient application signature package:/); + # Cluster uptime + next if (/^\s*Cluster uptime:/); ProcessHistory("","","","#$_"); } > DCPGFW1 # get system status > > Current HA mode: a-p, master > Cluster uptime: 37 days, 10 hours, 14 minutes, 55 seconds > System time: Tue Aug 1 10:35:45 2017 > > FYI I removed the ! from the line (next if (/^\s*Cluster uptime:/);) but I get a mail with the following: > > > #FIPS-CC mode: disable > > #Current HA mode: a-p, master > > - #Cluster uptime: 35 days, 20 hours, 37 minutes, 22 seconds > > + #Cluster uptime: 37 days, 10 hours, 16 minutes, 50 seconds > > > Thanks again. > > > > ________________________________ > From: heasley > Sent: 31 July 2017 21:47:43 > To: Ryan > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Fortigate Cluster uptime > > Sun, Jul 30, 2017 at 09:26:18AM +0000, Ryan: > > Hi All, > > > > > > Sorry to mail this out but I have searched through a number of groups and cant find anything that actually works. I recently upgraded my Fortinet FW cluster and, unfortunately, the config status displays a new line, "Cluster uptime", from the "get system ha status" cli. e.g. > > > > rancid does not use that command. it uses only get system status. is that > command including this output now or have you changed your distribution? > > > !Virtual domains status: 1 in NAT mode, 0 in TP mode > > > > !Virtual domain configuration: disable > > > > !FIPS-CC mode: disable > > > > !Current HA mode: a-p, master > > > > - !Cluster uptime: 35 days, 19 hours, 40 minutes, 13 seconds > > > > + !Cluster uptime: 35 days, 20 hours, 40 minutes, 13 seconds > > > > !Branch point: 1449 > > > > !Release Version Information: GA > > > > > > The "Cluster uptime" means that I get an updated FW version mailed to me every hour of the day. I have tried a number of things to resolve this including: > > > > > > 1. I updated the fnrancid file with the below but both attempts failed: > > > > > > sub GetConf { > > print STDERR " In GetConf: $_" if ($debug); > > > > while () { > > tr/\015//d; > > next if /^\s*$/; > > last if (/$prompt/); > > > > # System time is fortigate extraction time > > next if (/^\s*!System time:/); > > # remove occurrances of conf_file_ver > > next if (/^#?conf_file_ver=/); > > > > > > # First think I tried > > > > #remove occurances of Cluster Uptime > > next if (/^\s*!Cluster uptime:/); > > no !. > > > > > # next thing I tried. > > > > #if (/^\s*!Cluster uptime:/) { > > # ProcessHistory("","","","","","#$_"); > > # next; > > #} > > > > > > 2. I tried other options e.g. writing something similar to the cycling password but I am afraid I reached the end of my skillset. > > > > 3. Finally I thought my Rancid server is pretty old 2.3.6 so I built a new rancid server (3.3.0) using Ubuntu 16.04 and updated the fnrancid again without success. > > > > > > Two questions if I may: > > > > 1. Anyone know how I can ignore the Cluster uptime line? > > 2. If I move to using the new server is there a way to export the CVS history on the old server and import it on the new? > > > > > > Thanks in advance! Your help is appreciated! > > > > > > Cheers, > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.vak at gmail.com Wed Aug 2 11:35:46 2017 From: tom.vak at gmail.com (Tom Vaknin) Date: Wed, 2 Aug 2017 14:35:46 +0300 Subject: [rancid] problem with get config from asa (version 8.x) In-Reply-To: <20170801180859.GA7694@shrubbery.net> References: <30ce758f8c1242ee9f8b1478c3ddbe83@zy-colo-mbx1.zyedge.local> <20170801180859.GA7694@shrubbery.net> Message-ID: while running clogin -m i find the following: FWASA autoenable:/opt/rancid/.cloginrc:334: FWASA 0 noenable:/opt/rancid/.cloginrc:128: * 1 password:/opt/rancid/.cloginrc:333: FWASA userpass enablepass user:/opt/rancid/.cloginrc:332: FWASA rancid method:/opt/rancid/.cloginrc:209: FWASA ssh i found our that it matches to line noenable. it was global line to all .cloginrc file. thanks a lot! much appreciate 2017-08-01 21:08 GMT+03:00 heasley : > Tue, Aug 01, 2017 at 03:16:03PM +0000, Ryan West: > > On Tue, Aug 01, 2017 at 11:09:13, Tom Vaknin wrote: > > > Subject: Re: [rancid] problem with get config from asa (version 8.x) > > > > > > Hi Ryan, > > > > > > im able to connect: > > > [root at RANCID ~]# clogin FWASA > > > FWASA > > > > > > spawn ssh -x -l rancid FWASA > > > rancid at FWASA 's password: > > > Type help or '?' for a list of available commands. > > > FWASA /act> > > > FWASA /act> > > > FWASA /act> > > > > > > > You're not getting to enable, it might be an issue with the password > file. Have you tried putting the password in {}? Clogin for that device > should go enable automatically with your .cloginrc file. > > assuming a more recent version of rancid, try > clogin -m FWASA > > it will show you which cloginrc lines were matched. it may not be matching > what you think. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Boulianne at cpu.ca Fri Aug 4 18:15:01 2017 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Fri, 4 Aug 2017 14:15:01 -0400 Subject: [rancid] Backup Sonicwall with Rancid. Message-ID: <5FE0959288C73D448BB44CB7E9CC320F5E3EDC75F7@CPUMAIL2.cpu.qc.ca> Hi, I already use Rancid to backup a ton of Fortigate / Cisco switches, routers... I did many researchs on Google but I cant get enough informations to know how backup a Sonicwall router / firewall. Anyone can give me a cue please ? Thanks S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Fri Aug 4 21:09:46 2017 From: rancid at ale.cx (Alex DEKKER) Date: Fri, 4 Aug 2017 22:09:46 +0100 Subject: [rancid] Backup Sonicwall with Rancid. In-Reply-To: <5FE0959288C73D448BB44CB7E9CC320F5E3EDC75F7@CPUMAIL2.cpu.qc.ca> References: <5FE0959288C73D448BB44CB7E9CC320F5E3EDC75F7@CPUMAIL2.cpu.qc.ca> Message-ID: <15bcc008-61e3-ac54-ed3b-9ee0849704ba@ale.cx> On 04/08/17 19:15, Sebastien.Boulianne at cpu.ca wrote: > > Hi, > > I already use Rancid to backup a ton of Fortigate / Cisco switches, > routers? > > I did many researchs on Google but I cant get enough informations to > know how backup a Sonicwall router / firewall. > > Anyone can give me a cue please ? > There have been a couple of attempts at this I can see already on the internet and I have attempted my own based on the Mikrotik RANCID poller, but it just isn't usable, yet. alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Boulianne at cpu.ca Sat Aug 5 16:52:29 2017 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Sat, 5 Aug 2017 12:52:29 -0400 Subject: [rancid] Backup Sonicwall with Rancid. In-Reply-To: <15bcc008-61e3-ac54-ed3b-9ee0849704ba@ale.cx> References: <5FE0959288C73D448BB44CB7E9CC320F5E3EDC75F7@CPUMAIL2.cpu.qc.ca> <15bcc008-61e3-ac54-ed3b-9ee0849704ba@ale.cx> Message-ID: <5FE0959288C73D448BB44CB7E9CC320F5E3EDC7609@CPUMAIL2.cpu.qc.ca> Thanks you very much Alex for your answer. I could be great if someone can do something to fix that. Just a hint. Thanks! S?bastien De : Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] De la part de Alex DEKKER Envoy? : 4 ao?t 2017 17:10 ? : rancid-discuss at shrubbery.net Objet : Re: [rancid] Backup Sonicwall with Rancid. On 04/08/17 19:15, Sebastien.Boulianne at cpu.ca wrote: Hi, I already use Rancid to backup a ton of Fortigate / Cisco switches, routers... I did many researchs on Google but I cant get enough informations to know how backup a Sonicwall router / firewall. Anyone can give me a cue please ? There have been a couple of attempts at this I can see already on the internet and I have attempted my own based on the Mikrotik RANCID poller, but it just isn't usable, yet. alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From wadeb at bablam.com Thu Aug 10 21:45:13 2017 From: wadeb at bablam.com (Wade Blackwell) Date: Thu, 10 Aug 2017 14:45:13 -0700 Subject: [rancid] Mikrotik issues ssh on 6.35.4 Message-ID: <066501d31221$f31c8670$d9559350$@bablam.com> Good afternoon from the Central Coast of Ca. I'm new to both Rancid and Mikrotik and getting a successful config pull from a MT 6.35.4 VM is proving difficult. I've read quite allot today and tried most everything I read. The result is rancid can login via ssh but pulls a zero byte config. First issue appeared to be a timeout issue which I addressed in the config. Now the issue appears to be "missed cmd(s)". Details below; Rancid Verion 2.3.8 Server OS CentOS 6 (Vmware guest) Mikrotik version 6.35.4 (Vmware guest) Error messages (rounds 1-4) "missed cmd(s): system license print,system routerboard print,export" Group in rancid.conf "LIST_OF_GROUPS="CHC_Creston": .cloginrc pertinent config changes below #*****YOUR CONFIG HERE****** # add noenable * {1} add method 172.31.0.210 {ssh} add user 172.31.0.210 {admin} add password 172.31.0.210 {abc123} {} add timeout 172.31.0.210 500 add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid} # routers.up contains "172.31.0.210:mikrotik" router.db contains "172.31.0.210:mikrotik:up" configs directory shows the host with zero byte config; [root at cre-util-01 configs]# pwd /usr/local/rancid/var/CHC_Creston/configs [root at cre-util-01 configs]# ll total 4 -rw-r----- 1 rancid netadm 0 Aug 10 13:36 172.31.0.210 drwxr-x--- 2 rancid netadm 4096 Aug 10 13:36 CVS [root at cre-util-01 configs]# more 172.31.0.210 [root at cre-util-01 configs]# I must be missing something simple here as I see allot of folks have been using rancid for a long time on the MT platform. Any feedback on where I'm falling down would be great, thanks so much. -W Wade Blackwell (D) 805.457.8825 Creston Hills Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Aug 11 00:59:14 2017 From: heas at shrubbery.net (heasley) Date: Fri, 11 Aug 2017 00:59:14 +0000 Subject: [rancid] Mikrotik issues ssh on 6.35.4 In-Reply-To: <066501d31221$f31c8670$d9559350$@bablam.com> References: <066501d31221$f31c8670$d9559350$@bablam.com> Message-ID: <20170811005914.GI56265@shrubbery.net> Thu, Aug 10, 2017 at 02:45:13PM -0700, Wade Blackwell: > Good afternoon from the Central Coast of Ca. > > I'm new to both Rancid and Mikrotik and getting a successful > config pull from a MT 6.35.4 VM is proving difficult. I've read quite allot > today and tried most everything I read. The result is rancid can login via > ssh but pulls a zero byte config. First issue appeared to be a timeout issue > which I addressed in the config. Now the issue appears to be "missed > cmd(s)". Details below; > > Rancid Verion 2.3.8 please upgrade to 3.6.2. We can't support 2.x any longer. > Server OS CentOS 6 (Vmware guest) > > Mikrotik version 6.35.4 (Vmware guest) > > Error messages (rounds 1-4) "missed cmd(s): system license print,system > routerboard print,export" in the rancid FAQ S3 Q2 there is some guidance for failing collections. From timoid at timoid.org Fri Aug 11 01:01:35 2017 From: timoid at timoid.org (Tim Warnock) Date: Fri, 11 Aug 2017 01:01:35 +0000 Subject: [rancid] Mikrotik issues ssh on 6.35.4 In-Reply-To: <066501d31221$f31c8670$d9559350$@bablam.com> References: <066501d31221$f31c8670$d9559350$@bablam.com> Message-ID: add password 172.31.0.210 {abc123} #add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid} Tried that? If you're having to call mtrancid, do you have mikrotik in as a vendor? https://forum.mikrotik.com/viewtopic.php?t=32676 -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Wade Blackwell Sent: Friday, 11 August 2017 7:45 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Mikrotik issues ssh on 6.35.4 Good afternoon from the Central Coast of Ca. I'm new to both Rancid and Mikrotik and getting a successful config pull from a MT 6.35.4 VM is proving difficult. I've read quite allot today and tried most everything I read. The result is rancid can login via ssh but pulls a zero byte config. First issue appeared to be a timeout issue which I addressed in the config. Now the issue appears to be "missed cmd(s)". Details below; Rancid Verion 2.3.8 Server OS CentOS 6 (Vmware guest) Mikrotik version 6.35.4 (Vmware guest) Error messages (rounds 1-4) "missed cmd(s): system license print,system routerboard print,export" Group in rancid.conf "LIST_OF_GROUPS="CHC_Creston": .cloginrc pertinent config changes below #*****YOUR CONFIG HERE****** # add noenable * {1} add method 172.31.0.210 {ssh} add user 172.31.0.210 {admin} add password 172.31.0.210 {abc123} {} add timeout 172.31.0.210 500 add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid} # routers.up contains "172.31.0.210:mikrotik" router.db contains "172.31.0.210:mikrotik:up" configs directory shows the host with zero byte config; [root at cre-util-01 configs]# pwd /usr/local/rancid/var/CHC_Creston/configs [root at cre-util-01 configs]# ll total 4 -rw-r----- 1 rancid netadm 0 Aug 10 13:36 172.31.0.210 drwxr-x--- 2 rancid netadm 4096 Aug 10 13:36 CVS [root at cre-util-01 configs]# more 172.31.0.210 [root at cre-util-01 configs]# I must be missing something simple here as I see allot of folks have been using rancid for a long time on the MT platform. Any feedback on where I'm falling down would be great, thanks so much. -W Wade Blackwell (D) 805.457.8825 Creston Hills Consulting From zanchey at ucc.gu.uwa.edu.au Sat Aug 12 07:06:05 2017 From: zanchey at ucc.gu.uwa.edu.au (David Adam) Date: Sat, 12 Aug 2017 15:06:05 +0800 (AWST) Subject: [rancid] VLAN information flapping since 3.0 Message-ID: Over the years, I see many threads[1][2][3] discussing the oscillating/flapping of output as VLAN members change in response to links going up and down. The consensus seems to be that this is not desirable behaviour. Interestingly, we've just upgraded from 2.3.8 to 3.6.2 and this behaviour has appeared. It looks like the test was changed in 3.0[4] to switch from showing VLANs except in transparent/server VTP mode to showing VLANs except in VTP client mode. We have VTP disabled entirely (VTP Operating Mode: Off) on our Cisco 4507, but are having problems with frequent updates to the configuration appearing in our system with machines being powered up and down[5]. In ios.pm, is there any sense in setting "DO_SHOW_VLAN" to 1 in cases where VTP is disabled entirely? All the VLAN configuration is contained in `show running-config`, so it's not like we're losing anything here. I've patched my local version for now. Alternatively, could it be stripped if FILTER_OSC is turned on? My perl is very ordinary, but it seems like the variable is misnamed: I think it should be called DONT_SHOW_VLAN. Thanks David Adam zanchey at ucc.gu.uwa.edu.au [1]: http://www.shrubbery.net/pipermail/rancid-discuss/2010-July/005054.html [2]: http://www.shrubbery.net/pipermail/rancid-discuss/2011-February/005487.html [3]: http://www.shrubbery.net/pipermail/rancid-discuss/2017-January/009387.html [4]: http://www.shrubbery.net/pipermail/rancid-discuss/2013-August/007001.html [5]: http://cvs.ucc.asn.au/cgi-bin/viewvc.cgi/rancid/ucc/configs/bitumen.ucc.gu.uwa.edu.au?r1=398&r2=399 From wadeb at bablam.com Tue Aug 15 23:48:30 2017 From: wadeb at bablam.com (Wade Blackwell) Date: Tue, 15 Aug 2017 16:48:30 -0700 Subject: [rancid] Mikrotik issues ssh on 6.35.4 In-Reply-To: <20170811005914.GI56265@shrubbery.net> References: <066501d31221$f31c8670$d9559350$@bablam.com> <20170811005914.GI56265@shrubbery.net> Message-ID: <016701d31621$003ce900$00b6bb00$@bablam.com> Thanks so much, So I did perform a clean install of 3.6.2. Still getting the following issues (I did change the router.db syntax to semicolons). Test login succeeds and a manual run of gives me this; -bash-4.2$ /usr/local/src/rancid-3.6.2/bin/mtrancid -d 172.31.0.210 executing mtlogin -t 90 -c"system package print detail without-paging;system routerboard print;system license print;export" 172.31.0.210 sh: mtlogin: command not found 172.31.0.210: missed cmd(s): all commands 172.31.0.210: End of run not found I broke up the stated commands and ran them individually and the only issue I saw was the output from "system routerboard print" was "no". Rancid-run still fails even through the .cloginrc test passes. It looks like CVS took care of adding the device but the collection still times out. Pertinent portion of .cloginrc is directly below and the rancid-run log is below that. Thanks so much. -------------begin .cloginrc----------------- add noenable * {1} add method 172.31.0.210 ssh add user 172.31.0.210 WccRancid add password 172.31.0.210 abc123 add timeout 172.31.0.210 500 #add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid} --------------end .cloginrc---------------- --------------begin log---------------- cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `172.31.0.210' cvs [commit aborted]: correct above errors first! Added 172.31.0.210 cvs status: cannot open CVS/Entries for reading: No such file or directory cvs status: use `cvs add' to create an entry for 172.31.0.210 cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `172.31.0.210' cvs [commit aborted]: correct above errors first! cvs added missing router 172.31.0.210 Trying to get all of the configs. 172.31.0.210: missed cmd(s): all commands 172.31.0.210: End of run not found 172.31.0.210 mtlogin error: Error: TIMEOUT reached # ===================================== Getting missed routers: round 1. 172.31.0.210: missed cmd(s): all commands 172.31.0.210: End of run not found 172.31.0.210 mtlogin error: Error: TIMEOUT reached # ===================================== Getting missed routers: round 2. 172.31.0.210: missed cmd(s): all commands 172.31.0.210: End of run not found 172.31.0.210 mtlogin error: Error: TIMEOUT reached # ===================================== Getting missed routers: round 3. 172.31.0.210: missed cmd(s): all commands 172.31.0.210: End of run not found 172.31.0.210 mtlogin error: Error: TIMEOUT reached # ===================================== Getting missed routers: round 4. cvs diff: in directory .: cvs [diff aborted]: there is no version here; run 'cvs checkout' first cvs commit: in directory .: cvs [commit aborted]: there is no version here; run 'cvs checkout' first -bash-4.2$ cvs checkout cvs checkout: No CVSROOT specified! Please use the `-d' option cvs [checkout aborted]: or set the CVSROOT environment variable. --------------end log---------------- Wade Blackwell (D) 805.457.8825 Creston Hills Consulting -----Original Message----- From: heasley [mailto:heas at shrubbery.net] Sent: Thursday, August 10, 2017 5:59 PM To: Wade Blackwell Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Mikrotik issues ssh on 6.35.4 Thu, Aug 10, 2017 at 02:45:13PM -0700, Wade Blackwell: > Good afternoon from the Central Coast of Ca. > > I'm new to both Rancid and Mikrotik and getting a > successful config pull from a MT 6.35.4 VM is proving difficult. I've > read quite allot today and tried most everything I read. The result is > rancid can login via ssh but pulls a zero byte config. First issue > appeared to be a timeout issue which I addressed in the config. Now > the issue appears to be "missed cmd(s)". Details below; > > Rancid Verion 2.3.8 please upgrade to 3.6.2. We can't support 2.x any longer. > Server OS CentOS 6 (Vmware guest) > > Mikrotik version 6.35.4 (Vmware guest) > > Error messages (rounds 1-4) "missed cmd(s): system license > print,system routerboard print,export" in the rancid FAQ S3 Q2 there is some guidance for failing collections. From dan.w.anderson at gmail.com Wed Aug 16 02:38:14 2017 From: dan.w.anderson at gmail.com (Dan Anderson) Date: Tue, 15 Aug 2017 22:38:14 -0400 Subject: [rancid] Mikrotik issues ssh on 6.35.4 In-Reply-To: <016701d31621$003ce900$00b6bb00$@bablam.com> References: <066501d31221$f31c8670$d9559350$@bablam.com> <20170811005914.GI56265@shrubbery.net> <016701d31621$003ce900$00b6bb00$@bablam.com> Message-ID: <358e05be-5941-4ab9-998b-25b522ddb910@Spark> The "mtlogin command not found" message makes it seem like the PATH of the user running the command doesn't include the RANCID bin directory. -- Dan On Aug 15, 2017, 7:56 PM -0400, Wade Blackwell , wrote: > Thanks so much, > So I did perform a clean install of 3.6.2. Still getting the > following issues (I did change the router.db syntax to semicolons). Test > login succeeds and a manual run of gives me this; > > -bash-4.2$ /usr/local/src/rancid-3.6.2/bin/mtrancid -d 172.31.0.210 > executing mtlogin -t 90 -c"system package print detail without-paging;system > routerboard print;system license print;export" 172.31.0.210 > sh: mtlogin: command not found > 172.31.0.210: missed cmd(s): all commands > 172.31.0.210: End of run not found > > I broke up the stated commands and ran them individually and the only issue > I saw was the output from "system routerboard print" was "no". Rancid-run > still fails even through the .cloginrc test passes. It looks like CVS took > care of adding the device but the collection still times out. Pertinent > portion of .cloginrc is directly below and the rancid-run log is below that. > Thanks so much. > > -------------begin .cloginrc----------------- > add noenable * {1} > add method 172.31.0.210 ssh > add user 172.31.0.210 WccRancid > add password 172.31.0.210 abc123 > add timeout 172.31.0.210 500 > #add sshcmd 172.31.0.210 {/usr/local/rancid/bin/mtrancid} > --------------end .cloginrc---------------- > --------------begin log---------------- > cvs add: in directory .: > cvs [add aborted]: there is no version here; do 'cvs checkout' first > cvs commit: cannot open CVS/Entries for reading: No such file or directory > cvs commit: nothing known about `172.31.0.210' > cvs [commit aborted]: correct above errors first! > Added 172.31.0.210 > > cvs status: cannot open CVS/Entries for reading: No such file or directory > cvs status: use `cvs add' to create an entry for 172.31.0.210 > cvs add: in directory .: > cvs [add aborted]: there is no version here; do 'cvs checkout' first > cvs commit: cannot open CVS/Entries for reading: No such file or directory > cvs commit: nothing known about `172.31.0.210' > cvs [commit aborted]: correct above errors first! > cvs added missing router 172.31.0.210 > > > Trying to get all of the configs. > 172.31.0.210: missed cmd(s): all commands > 172.31.0.210: End of run not found > 172.31.0.210 mtlogin error: Error: TIMEOUT reached > # > ===================================== > Getting missed routers: round 1. > 172.31.0.210: missed cmd(s): all commands > 172.31.0.210: End of run not found > 172.31.0.210 mtlogin error: Error: TIMEOUT reached > # > ===================================== > Getting missed routers: round 2. > 172.31.0.210: missed cmd(s): all commands > 172.31.0.210: End of run not found > 172.31.0.210 mtlogin error: Error: TIMEOUT reached > # > ===================================== > Getting missed routers: round 3. > 172.31.0.210: missed cmd(s): all commands > 172.31.0.210: End of run not found > 172.31.0.210 mtlogin error: Error: TIMEOUT reached > # > ===================================== > Getting missed routers: round 4. > > cvs diff: in directory .: > cvs [diff aborted]: there is no version here; run 'cvs checkout' first > cvs commit: in directory .: > cvs [commit aborted]: there is no version here; run 'cvs checkout' first > -bash-4.2$ cvs checkout > cvs checkout: No CVSROOT specified! Please use the `-d' option > cvs [checkout aborted]: or set the CVSROOT environment variable. > --------------end log---------------- > > Wade Blackwell > (D) 805.457.8825 > Creston Hills Consulting > > -----Original Message----- > From: heasley [mailto:heas at shrubbery.net] > Sent: Thursday, August 10, 2017 5:59 PM > To: Wade Blackwell Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Mikrotik issues ssh on 6.35.4 > > Thu, Aug 10, 2017 at 02:45:13PM -0700, Wade Blackwell: > > Good afternoon from the Central Coast of Ca. > > > > I'm new to both Rancid and Mikrotik and getting a > > successful config pull from a MT 6.35.4 VM is proving difficult. I've > > read quite allot today and tried most everything I read. The result is > > rancid can login via ssh but pulls a zero byte config. First issue > > appeared to be a timeout issue which I addressed in the config. Now > > the issue appears to be "missed cmd(s)". Details below; > > > > Rancid Verion 2.3.8 > > please upgrade to 3.6.2. We can't support 2.x any longer. > > > Server OS CentOS 6 (Vmware guest) > > > > Mikrotik version 6.35.4 (Vmware guest) > > > > Error messages (rounds 1-4) "missed cmd(s): system license > > print,system routerboard print,export" > > in the rancid FAQ S3 Q2 there is some guidance for failing collections. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Aug 16 15:19:57 2017 From: heas at shrubbery.net (heasley) Date: Wed, 16 Aug 2017 15:19:57 +0000 Subject: [rancid] Mikrotik issues ssh on 6.35.4 In-Reply-To: <358e05be-5941-4ab9-998b-25b522ddb910@Spark> References: <066501d31221$f31c8670$d9559350$@bablam.com> <20170811005914.GI56265@shrubbery.net> <016701d31621$003ce900$00b6bb00$@bablam.com> <358e05be-5941-4ab9-998b-25b522ddb910@Spark> Message-ID: <20170816151957.GC24100@shrubbery.net> Tue, Aug 15, 2017 at 10:38:14PM -0400, Dan Anderson: > The "mtlogin command not found" message makes it seem like the PATH of the user running the command doesn't include the RANCID bin directory. correct. if you are going to run it manually, you must source the rancid.conf or alter your environment to include the path that is in rancid.conf. > > --------------begin log---------------- > > cvs add: in directory .: > > cvs [add aborted]: there is no version here; do 'cvs checkout' first > > cvs commit: cannot open CVS/Entries for reading: No such file or directory > > cvs commit: nothing known about `172.31.0.210' > > cvs [commit aborted]: correct above errors first! > > Added 172.31.0.210 > > > > cvs status: cannot open CVS/Entries for reading: No such file or directory > > cvs status: use `cvs add' to create an entry for 172.31.0.210 > > cvs add: in directory .: > > cvs [add aborted]: there is no version here; do 'cvs checkout' first > > cvs commit: cannot open CVS/Entries for reading: No such file or directory > > cvs commit: nothing known about `172.31.0.210' > > cvs [commit aborted]: correct above errors first! > > cvs added missing router 172.31.0.210 seems that your group directory was not initialized by using rancid-cvs or that you are not using CVS and have not merged your existing rancid.conf and the new one from 3.6.2. From mnewton at pofp.com Sat Aug 19 00:08:45 2017 From: mnewton at pofp.com (Michael Newton) Date: Fri, 18 Aug 2017 17:08:45 -0700 Subject: [rancid] New HP/Aruba Switch Error In-Reply-To: <20170720125414.GB63334@shrubbery.net> References: <20170720125414.GB63334@shrubbery.net> Message-ID: I'm seeing the same behaviour on HP/Aruba firmware version 16.03.004. We have hundreds of HP switches on lower firmware versions up to 16.02.0012 which work fine. Running RANCID 3.5.1 on Perl 5.10. The switch prompt is very basic alphanumeric characters. Any debugging I can run to narrow it down? -- Michael Newton On 20 July 2017 at 05:54, heasley wrote: > Tue, Jul 18, 2017 at 02:24:11PM -0400, Alan Sklar: > > I have a couple of HP and Aruba switches. Just recent one of the HP > > switches needed to be replaced. I replaced the switch with a comparable > > model that HP sent. After fixing the SSH key issues, I am getting the > below > > error when attempting to get a backup. the switch log shows rancid is > > making a connection and hlogin is able to login. Any ideas > > you havent told us what version youre using. This may be a problem that > was fixed in rancid 3.5. > > > Getting missed routers: round 4. > > couldn't compile regular expression pattern: parentheses () not balanced > > while executing > > "expect { > > -re $reprompt {} > > -re "\[\n\r]+" { exp_continue } > > }" > > (procedure "run_commands" line 9) > > invoked from within > > "run_commands $prompt $command" > > ("foreach" body line 161) > > invoked from within > > "foreach router [lrange $argv $i end] { > > set router [string tolower $router] > > send_user "$router\n" > > > > # device timeout > > set timeout [find t..." > > (file "/usr/local/rancid/bin/hlogin" line 626) > > 10.16.100.11: missed cmd(s): all commands > > 10.16.100.11: End of run not found > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGriesser at anexia-it.com Tue Aug 22 20:21:55 2017 From: AGriesser at anexia-it.com (Alexander Griesser) Date: Tue, 22 Aug 2017 20:21:55 +0000 Subject: [rancid] Dell D4012 Switches anyone? Message-ID: Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I've created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGriesser at anexia-it.com Tue Aug 22 21:08:07 2017 From: AGriesser at anexia-it.com (Alexander Griesser) Date: Tue, 22 Aug 2017 21:08:07 +0000 Subject: [rancid] Dell D4012 Switches anyone? In-Reply-To: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> References: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> Message-ID: <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> Thanks, Chris. Doesn?t work though and maybe that?s also the reason why the collection doesn?t work: $ export NOPIPE=YES;rancid -d -t dellgump 10.100.55.251 loadtype: device type dellgump login script not defined for device type dellgump Although this has been defined as far as I can see? $ grep dellglump /etc/rancid/rancid.types.conf dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:04 An: Alexander Griesser ; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Rancid-discuss > on behalf of Alexander Griesser > Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" > Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGriesser at anexia-it.com Tue Aug 22 21:23:14 2017 From: AGriesser at anexia-it.com (Alexander Griesser) Date: Tue, 22 Aug 2017 21:23:14 +0000 Subject: [rancid] Dell D4012 Switches anyone? In-Reply-To: References: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> Message-ID: Ah damn? Thanks for pointing that out. I don?t use them normally too, but this customer has them running and I?m trying to at least store the config in an automated way? Output looks different now: $ export NOPIPE=yes;rancid -d -t dellglump 10.100.55.251 loadtype: device type dellglump loadtype: found device type dellglump in /etc/rancid/rancid.types.conf executing dlogin -t 300 -c"show system;show running-config" 10.100.55.251 HIT COMMAND:d4012-01.domain...#show system In GetSystem: d4012-01.domain...#show system HIT COMMAND:d4012-01.domain...#show running-config In GetConf: d4012-01.domain...#show running-config 10.100.55.251: End of run not found eee enable Does that help? Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:19 An: Alexander Griesser ; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? There is a typo in there between ?dellgLump? and ?dellgump? ? May be my error in typing earlier. I don?t use dell normally. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Alexander Griesser > Date: Tuesday, August 22, 2017 at 2:08 PM To: "Gauthier, Chris" >, "rancid-discuss at shrubbery.net" > Subject: AW: [rancid] Dell D4012 Switches anyone? Thanks, Chris. Doesn?t work though and maybe that?s also the reason why the collection doesn?t work: $ export NOPIPE=YES;rancid -d -t dellgump 10.100.55.251 loadtype: device type dellgump login script not defined for device type dellgump Although this has been defined as far as I can see? $ grep dellglump /etc/rancid/rancid.types.conf dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:04 An: Alexander Griesser >; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Rancid-discuss > on behalf of Alexander Griesser > Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" > Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgauthier at comscore.com Tue Aug 22 21:30:02 2017 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 22 Aug 2017 21:30:02 +0000 Subject: [rancid] Dell D4012 Switches anyone? In-Reply-To: References: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> Message-ID: <6B005682-B850-4ED1-A196-3F2A7F5801BE@comscore.com> Take a look at the .raw file. It?s very useful. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris GauthierSenior Network Engineer | comScore, Inc. o +1 503-331-2704cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR97204 ............................................................................................................................................................................................................................ From: Alexander Griesser Date: Tuesday, August 22, 2017 at 2:23 PM To: "Gauthier, Chris" , "rancid-discuss at shrubbery.net" Subject: AW: [rancid] Dell D4012 Switches anyone? Ah damn? Thanks for pointing that out. I don?t use them normally too, but this customer has them running and I?m trying to at least store the config in an automated way? Output looks different now: $ export NOPIPE=yes;rancid -d -t dellglump 10.100.55.251 loadtype: device type dellglump loadtype: found device type dellglump in /etc/rancid/rancid.types.conf executing dlogin -t 300 -c"show system;show running-config" 10.100.55.251 HIT COMMAND:d4012-01.domain...#show system In GetSystem: d4012-01.domain...#show system HIT COMMAND:d4012-01.domain...#show running-config In GetConf: d4012-01.domain...#show running-config 10.100.55.251: End of run not found eee enable Does that help? Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:19 An: Alexander Griesser ; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? There is a typo in there between ?dellgLump? and ?dellgump? ? May be my error in typing earlier. I don?t use dell normally. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Alexander Griesser > Date: Tuesday, August 22, 2017 at 2:08 PM To: "Gauthier, Chris" >, "rancid-discuss at shrubbery.net" > Subject: AW: [rancid] Dell D4012 Switches anyone? Thanks, Chris. Doesn?t work though and maybe that?s also the reason why the collection doesn?t work: $ export NOPIPE=YES;rancid -d -t dellgump 10.100.55.251 loadtype: device type dellgump login script not defined for device type dellgump Although this has been defined as far as I can see? $ grep dellglump /etc/rancid/rancid.types.conf dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:04 An: Alexander Griesser >; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Rancid-discuss > on behalf of Alexander Griesser > Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" > Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGriesser at anexia-it.com Tue Aug 22 21:35:29 2017 From: AGriesser at anexia-it.com (Alexander Griesser) Date: Tue, 22 Aug 2017 21:35:29 +0000 Subject: [rancid] Dell D4012 Switches anyone? In-Reply-To: <6B005682-B850-4ED1-A196-3F2A7F5801BE@comscore.com> References: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> <6B005682-B850-4ED1-A196-3F2A7F5801BE@comscore.com> Message-ID: <04ab666d08d74c0cb1c768830b779b60@anx-i-dag01.anx.local> These are the last lines of the .raw file: More: , Quit: q or CTRL+Z, One line: ^M ^Mflow-control off^M mdix auto^M no back-pressure^M ^M interface vlan 1^M interface port-channel 1 - 12^M ^M spanning-tree^M spanning-tree mode RSTP^M ^M qos basic^M qos trust cos^M eee enable^M d4012-01.domain...#exit^M ^MConnection to 10.100.55.251 closed.^M^M So to me it looks as if the pagination doesn?t really work, as you can see in the first line of this output. But besides that, ?eee enable? is really the last line of the config and it also managed to ?exit? the interface properly. Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:30 An: Alexander Griesser ; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? Take a look at the .raw file. It?s very useful. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Alexander Griesser > Date: Tuesday, August 22, 2017 at 2:23 PM To: "Gauthier, Chris" >, "rancid-discuss at shrubbery.net" > Subject: AW: [rancid] Dell D4012 Switches anyone? Ah damn? Thanks for pointing that out. I don?t use them normally too, but this customer has them running and I?m trying to at least store the config in an automated way? Output looks different now: $ export NOPIPE=yes;rancid -d -t dellglump 10.100.55.251 loadtype: device type dellglump loadtype: found device type dellglump in /etc/rancid/rancid.types.conf executing dlogin -t 300 -c"show system;show running-config" 10.100.55.251 HIT COMMAND:d4012-01.domain...#show system In GetSystem: d4012-01.domain...#show system HIT COMMAND:d4012-01.domain...#show running-config In GetConf: d4012-01.domain...#show running-config 10.100.55.251: End of run not found eee enable Does that help? Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:19 An: Alexander Griesser >; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? There is a typo in there between ?dellgLump? and ?dellgump? ? May be my error in typing earlier. I don?t use dell normally. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Alexander Griesser > Date: Tuesday, August 22, 2017 at 2:08 PM To: "Gauthier, Chris" >, "rancid-discuss at shrubbery.net" > Subject: AW: [rancid] Dell D4012 Switches anyone? Thanks, Chris. Doesn?t work though and maybe that?s also the reason why the collection doesn?t work: $ export NOPIPE=YES;rancid -d -t dellgump 10.100.55.251 loadtype: device type dellgump login script not defined for device type dellgump Although this has been defined as far as I can see? $ grep dellglump /etc/rancid/rancid.types.conf dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:04 An: Alexander Griesser >; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Rancid-discuss > on behalf of Alexander Griesser > Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" > Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgauthier at comscore.com Tue Aug 22 21:03:57 2017 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 22 Aug 2017 21:03:57 +0000 Subject: [rancid] Dell D4012 Switches anyone? Message-ID: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris GauthierSenior Network Engineer | comScore, Inc. o +1 503-331-2704cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR97204 ............................................................................................................................................................................................................................ From: Rancid-discuss on behalf of Alexander Griesser Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnewton at pofp.com Tue Aug 22 23:31:25 2017 From: mnewton at pofp.com (Michael Newton) Date: Tue, 22 Aug 2017 16:31:25 -0700 Subject: [rancid] New HP/Aruba Switch Error In-Reply-To: References: <20170720125414.GB63334@shrubbery.net> Message-ID: There appears to be a problem parsing the prompt, which looks to contain some hidden characters. I'm guessing that maybe the error message is misleading and it's actually brackets [ ] not balanced. Full output follows, but this is the interesting part: Example_Switch56# expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# " expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# " send: sending "no page\r" to { exp3 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re "\[\n\r]+" { exp_continue } -re $reprompt {} }" (procedure "run_commands" line 12) invoked from within "run_commands $prompt $command" ("foreach" body line 159) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/usr/local/bin/hlogin" line 657) ---------------------- root at marceline:~ ??? su -lc 'hlogin -d -t 90 -c "show version" switch.example.com:7056' rancid switch.example.com:7056 spawn hpuifilter -- /usr/local/bin/sshport -c aes256-cbc,3des-cbc -x -l admin switch.example.com:7056 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {24629} Gate keeper glob pattern for '(Connection refused|Secure connection [^ ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS CHANGED* (yes/no)\?'. Activating booster. Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. Activating booster. Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: remote host denied authentication agent forwarding?'. Activating booster. Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '[^ ]*[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '(>|#) ?' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "denied"? no "% Bad passwords"? no expect: does "\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\r\r\n" expect: continuing expect expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "denied"? no "% Bad passwords"? no HP J9729A 2920-48G-POE+ Switch Software revision WB.16.03.0004 (C) Copyright 2017 Hewlett Packard Enterprise Development LP RESTRICTED RIGHTS LEGEND Confidential computer software. Valid license from Hewlett Packard Enterprise Development LP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n" expect: continuing expect expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n" expect: continuing expect expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n" expect: continuing expect expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " RESTRICTED RIGHTS LEGEND\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " RESTRICTED RIGHTS LEGEND\r\r\n" expect: continuing expect expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n" expect: continuing expect expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Development LP required for possession, use or copying. Consistent with FAR\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " Development LP required for possession, use or copying. Consistent with FAR\r\r\n" expect: continuing expect expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n" expect: continuing expect expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n" expect: continuing expect expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" expect: continuing expect expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "denied"? no "% Bad passwords"? no Press any key to continue expect: does "Press any key to continue" (spawn_id exp3) match glob pattern "Press any key to continue"? yes expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "Press any key to continue" send: sending " " to { exp3 } expect: continuing expect expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "denied"? no "% Bad passwords"? no Your previous successful login (as manager) was on 2017-08-22 18:22:35 from 216.234.62.205 Example_Switch56# expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n" expect: continuing expect expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) " from 216.234.62.205\r\r\n" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) " from 216.234.62.205\r\r\n" expect: continuing expect expect: does "Example_Switch56# " (spawn_id exp3) match glob pattern "Press any key to continue"? no "Enter switch number to connect to or :"? no "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no "Host is unreachable"? no "No address associated with name"? no "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes re=no "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no expect: does "Example_Switch56# " (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no "unknown host\r"? no expect: does "Example_Switch56# " (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no "(>|#) ?"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "# " expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "Example_Switch56# " send: sending "\r" to { exp3 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+(>|#) ?' is ''. Not usable, disabling the performance booster. expect: does "" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no Example_Switch56# expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# " expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp3" expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# " send: sending "no page\r" to { exp3 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. couldn't compile regular expression pattern: parentheses () not balanced while executing "expect { -re "\[\n\r]+" { exp_continue } -re $reprompt {} }" (procedure "run_commands" line 12) invoked from within "run_commands $prompt $command" ("foreach" body line 159) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/usr/local/bin/hlogin" line 657) -- Michael Newton On 20 July 2017 at 11:24, Alan Sklar wrote: > Rancid 3.1 > > On Thu, Jul 20, 2017 at 8:54 AM, heasley wrote: > >> Tue, Jul 18, 2017 at 02:24:11PM -0400, Alan Sklar: >> > I have a couple of HP and Aruba switches. Just recent one of the HP >> > switches needed to be replaced. I replaced the switch with a comparable >> > model that HP sent. After fixing the SSH key issues, I am getting the >> below >> > error when attempting to get a backup. the switch log shows rancid is >> > making a connection and hlogin is able to login. Any ideas >> >> you havent told us what version youre using. This may be a problem that >> was fixed in rancid 3.5. >> >> > Getting missed routers: round 4. >> > couldn't compile regular expression pattern: parentheses () not balanced >> > while executing >> > "expect { >> > -re $reprompt {} >> > -re "\[\n\r]+" { exp_continue } >> > }" >> > (procedure "run_commands" line 9) >> > invoked from within >> > "run_commands $prompt $command" >> > ("foreach" body line 161) >> > invoked from within >> > "foreach router [lrange $argv $i end] { >> > set router [string tolower $router] >> > send_user "$router\n" >> > >> > # device timeout >> > set timeout [find t..." >> > (file "/usr/local/rancid/bin/hlogin" line 626) >> > 10.16.100.11: missed cmd(s): all commands >> > 10.16.100.11: End of run not found >> >> > _______________________________________________ >> > Rancid-discuss mailing list >> > Rancid-discuss at shrubbery.net >> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgauthier at comscore.com Tue Aug 22 21:19:15 2017 From: cgauthier at comscore.com (Gauthier, Chris) Date: Tue, 22 Aug 2017 21:19:15 +0000 Subject: [rancid] Dell D4012 Switches anyone? In-Reply-To: <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> References: <20B83C27-CF91-41DA-A8BA-F93B0B7654D9@comscore.com> <2652ac29974348d3a231a677f29ab49f@anx-i-dag01.anx.local> Message-ID: There is a typo in there between ?dellgLump? and ?dellgump? ? May be my error in typing earlier. I don?t use dell normally. Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris GauthierSenior Network Engineer | comScore, Inc. o +1 503-331-2704cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR97204 ............................................................................................................................................................................................................................ From: Alexander Griesser Date: Tuesday, August 22, 2017 at 2:08 PM To: "Gauthier, Chris" , "rancid-discuss at shrubbery.net" Subject: AW: [rancid] Dell D4012 Switches anyone? Thanks, Chris. Doesn?t work though and maybe that?s also the reason why the collection doesn?t work: $ export NOPIPE=YES;rancid -d -t dellgump 10.100.55.251 loadtype: device type dellgump login script not defined for device type dellgump Although this has been defined as far as I can see? $ grep dellglump /etc/rancid/rancid.types.conf dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 Von: Gauthier, Chris [mailto:cgauthier at comscore.com] Gesendet: Dienstag, 22. August 2017 23:04 An: Alexander Griesser ; rancid-discuss at shrubbery.net Betreff: Re: [rancid] Dell D4012 Switches anyone? I would set up the debug environment: (on CentOS 7): rancid at host ~# export NOPIPE=YES; /usr/local/rancid/bin/rancid -d -t dellglump switch.fqdn.example.com Look for the switch.fqdn.example.com.raw file. That will help. There will also be a switch.fqdn.example.com.new file that will contain info. Since you know the login works, above is where I would start. Cheers, Chris Gauthier, CCNP R&S, CCNA Security, BACP Senior Network Engineer comScore, Inc. (503) 331-2704 (Single # Reach) cgauthier at comscore.com ?To invent an airplane is nothing. To build one is something. To fly is everything.? ? Ferdinand Ferber, 1908 Chris Gauthier Senior Network Engineer | comScore, Inc. o +1 503-331-2704 cgauthier at comscore.com 317 SW Alder St, Suite 500 | Portland | OR 97204 ............................................................................................................................................................................................................................ From: Rancid-discuss > on behalf of Alexander Griesser > Date: Tuesday, August 22, 2017 at 1:22 PM To: "rancid-discuss at shrubbery.net" > Subject: [rancid] Dell D4012 Switches anyone? Hey there, has anyone ever succeeded in monitoring Dell D4012 switches? They are a somewhat crippled version of the more feature-rich Dell PowerConnect Switches and do only offer limited capabilities on the GUI, but rancid is able do `dlogin? into those switches and I?ve created a new device template in rancid.types.conf for them with commands that are definitely working after `dlogin` to the switches: dellglump;script;rancid -t dellglump dellglump;login;dlogin dellglump;module;dell dellglump;inloop;dell::inloop dellglump;command;dell::GetSystem;show system dellglump;command;dell::GetConf;show running-config But still, rancid seems to time out when trying to fetch data from them. This is what gets printed to the logs: Trying to get all of the configs. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 1. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 2. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable ===================================== Getting missed routers: round 3. 10.100.55.252: End of run not found eee enable 10.100.55.251: End of run not found eee enable ===================================== Getting missed routers: round 4. 10.100.55.251: End of run not found eee enable 10.100.55.252: End of run not found eee enable Any idea where to start my investigation? Best, Alexander Griesser Head of Systems Operations ANEXIA Internetdienstleistungs GmbH E-Mail: AGriesser at anexia-it.com Web: http://www.anexia-it.com Anschrift Hauptsitz Klagenfurt: Feldkirchnerstra?e 140, 9020 Klagenfurt Gesch?ftsf?hrer: Alexander Windbichler Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601 -------------- next part -------------- An HTML attachment was scrubbed... URL: From peo at chalmers.se Wed Aug 23 04:20:40 2017 From: peo at chalmers.se (Per-Olof Olsson) Date: Wed, 23 Aug 2017 06:20:40 +0200 Subject: [rancid] New HP/Aruba Switch Error In-Reply-To: References: <20170720125414.GB63334@shrubbery.net> Message-ID: <9201f0d8-3079-f40a-6501-f2997fefce15@chalmers.se> New HP/Aruba software need updates in hpuifilter.c to handle new ESC-codes. Look for Subject "rancid with hp5412 J8697A or hp5406" posted on this list mars 24 2017. or grab hpuifilter.c from alpha version. /Peo ---------------------------------------------------------- Per-Olof Olsson Email: peo at chalmers.se Chalmers tekniska h?gskola IT-avdelningen Arvid Hedvalls backe 6 412 96 G?teborg Tel: 031/772 6738 Mob: 0707 88 3708 ---------------------------------------------------------- On 08/23/2017 01:31 AM, Michael Newton wrote: > There appears to be a problem parsing the prompt, which looks to contain some hidden characters. I'm guessing > that maybe the error message is misleading and it's actually brackets [ ] not balanced. Full output follows, > but this is the interesting part: > > Example_Switch56# > expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match regular expression "[\r\n]+"? (No > Gate, RE only) gate=yes re=no > "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# " > expect: set expect_out(1,string) "#" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# " > send: sending "no page\r" to { exp3 } > Gate keeper glob pattern for '[ > ]+' is ''. Not usable, disabling the performance booster. > couldn't compile regular expression pattern: parentheses () not balanced > while executing > "expect { > -re "\[\n\r]+" { exp_continue } > -re $reprompt {} > }" > (procedure "run_commands" line 12) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 159) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # device timeout > set timeout [find t..." > (file "/usr/local/bin/hlogin" line 657) > > > ---------------------- > > > root at marceline:~ ??? su -lc 'hlogin -d -t 90 -c "show version" switch.example.com:7056 > ' rancid > > switch.example.com:7056 > spawn hpuifilter -- /usr/local/bin/sshport -c aes256-cbc,3des-cbc -x -l admin switch.example.com:7056 > > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {24629} > Gate keeper glob pattern for '(Connection refused|Secure connection [^ > ]+ refused|Connection closed by)' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for '(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?' > is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?' is 'HOST IDENTIFICATION HAS > CHANGED* (yes/no)\?'. Activating booster. > Gate keeper glob pattern for 'HOST IDENTIFICATION HAS CHANGED[^ > ]+' is 'HOST IDENTIFICATION HAS CHANGED*'. Activating booster. > Gate keeper glob pattern for 'Offending key for .* \(yes/no\)\?' is 'Offending key for * (yes/no)\?'. > Activating booster. > Gate keeper glob pattern for '^warning: remote host denied authentication agent forwarding.' is 'warning: > remote host denied authentication agent forwarding?'. Activating booster. > Gate keeper glob pattern for 'Enter passphrase.*: ' is 'Enter passphrase*: '. Activating booster. > Gate keeper glob pattern for '([Uu]sername|[Ll]ogin|user name|Login Name):' is ''. Not usable, disabling the > performance booster. > Gate keeper glob pattern for '([Pp]assword|passwd):' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for '[^ > ]*[ > ]+' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for '(>|#) ?' is ''. Not usable, disabling the performance booster. > > expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent > forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? > gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > "denied"? no > "% Bad passwords"? no > > > expect: does "\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied authentication > agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter > passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\r\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent > forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? > gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > "denied"? no > "% Bad passwords"? no > HP J9729A 2920-48G-POE+ Switch > Software revision WB.16.03.0004 > > (C) Copyright 2017 Hewlett Packard Enterprise Development LP > > RESTRICTED RIGHTS LEGEND > Confidential computer software. Valid license from Hewlett Packard Enterprise > Development LP required for possession, use or copying. Consistent with FAR > 12.211 and 12.212, Commercial Computer Software, Computer Software > Documentation, and Technical Data for Commercial Items are licensed to the > U.S. Government under vendor's standard commercial license. > > > expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) > Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS > LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob > pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) > Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS > LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host > denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "HP J9729A 2920-48G-POE+ Switch\r\r\r\nSoftware revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) > Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n RESTRICTED RIGHTS > LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "HP J9729A 2920-48G-POE+ Switch\r\r\r\n" > expect: continuing expect > > expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise > Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. > Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to > continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise > Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. > Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote > host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent > forwarding?"? gate=no > "unknown host\r"? no > > expect: does "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n (C) Copyright 2017 Hewlett Packard Enterprise > Development LP\r\r\n\r\r\n RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. > Valid license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "Software revision WB.16.03.0004\r\r\r\n\r\r\r\n" > expect: continuing expect > > expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n > RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard > Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n > RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard > Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate > "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n > RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid license from Hewlett Packard > Enterprise\r\r\n Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " (C) Copyright 2017 Hewlett Packard Enterprise Development LP\r\r\n\r\r\n" > expect: continuing expect > > expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid > license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to > continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid > license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote > host denied authentication agent forwarding."? Gate "warning: remote host denied authentication agent > forwarding?"? gate=no > "unknown host\r"? no > > expect: does " RESTRICTED RIGHTS LEGEND\r\r\n Confidential computer software. Valid > license from Hewlett Packard Enterprise\r\r\n Development LP required for possession, use or copying. > Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n > Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under > vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " RESTRICTED RIGHTS LEGEND\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " RESTRICTED RIGHTS LEGEND\r\r\n" > expect: continuing expect > > expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob > pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host > denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " Confidential computer software. Valid license from Hewlett Packard Enterprise\r\r\n Development > LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and 12.212, Commercial Computer > Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " Confidential computer software. Valid license from Hewlett Packard > Enterprise\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " Confidential computer software. Valid license from Hewlett Packard > Enterprise\r\r\n" > expect: continuing expect > > expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent forwarding."? Gate > "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " Development LP required for possession, use or copying. Consistent with FAR\r\r\n 12.211 and > 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and Technical Data for Commercial > Items are licensed to the\r\r\n U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " Development LP required for possession, use or copying. Consistent with > FAR\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " Development LP required for possession, use or copying. Consistent with > FAR\r\r\n" > expect: continuing expect > > expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and > Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard > commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and > Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard > commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "^warning: remote host denied > authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n Documentation, and > Technical Data for Commercial Items are licensed to the\r\r\n U.S. Government under vendor's standard > commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter > passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " 12.211 and 12.212, Commercial Computer Software, Computer Software\r\r\n" > expect: continuing expect > > expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. > Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match glob pattern "Press > any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. > Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression > "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied > authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n U.S. > Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match regular expression > "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " Documentation, and Technical Data for Commercial Items are licensed to > the\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " Documentation, and Technical Data for Commercial Items are licensed to the\r\r\n" > expect: continuing expect > > expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host > denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" (spawn_id exp3) match > regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " U.S. Government under vendor's standard commercial license.\r\r\n\r\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent > forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? > gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > "denied"? no > "% Bad passwords"? no > Press any key to continue > expect: does "Press any key to continue" (spawn_id exp3) match glob pattern "Press any key to continue"? yes > expect: set expect_out(0,string) "Press any key to continue" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "Press any key to continue" > send: sending " " to { exp3 } > expect: continuing expect > > expect: does "" (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "" (spawn_id exp3) match regular expression "^warning: remote host denied authentication agent > forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "" (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter passphrase*: "? > gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > "denied"? no > "% Bad passwords"? no > Your previous successful login (as manager) was on 2017-08-22 18:22:35 > from 216.234.62.205 > Example_Switch56# > expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from > 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from > 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "^warning: remote host denied > authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 18:22:35 \r\r\n from > 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate > "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 > 18:22:35 \r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\u001b[?7hYour previous successful login (as manager) was on 2017-08-22 > 18:22:35 \r\r\n" > expect: continuing expect > > expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match glob pattern "Press any key > to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression > "^warning: remote host denied authentication agent forwarding."? Gate "warning: remote host denied > authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does " from 216.234.62.205\r\r\nExample_Switch56# " (spawn_id exp3) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) " from 216.234.62.205\r\r\n" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) " from 216.234.62.205\r\r\n" > expect: continuing expect > > expect: does "Example_Switch56# " (spawn_id exp3) match glob pattern "Press any key to continue"? no > "Enter switch number to connect to or :"? no > "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? (No Gate, RE only) gate=yes re=no > "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? (No Gate, RE only) gate=yes > re=no > "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? Gate "HOST IDENTIFICATION HAS CHANGED* (yes/no)\?"? gate=no > "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? Gate "HOST IDENTIFICATION HAS CHANGED*"? gate=no > "Offending key for .* \(yes/no\)\?"? Gate "Offending key for * (yes/no)\?"? gate=no > > expect: does "Example_Switch56# " (spawn_id exp3) match regular expression "^warning: remote host denied > authentication agent forwarding."? Gate "warning: remote host denied authentication agent forwarding?"? gate=no > "unknown host\r"? no > > expect: does "Example_Switch56# " (spawn_id exp3) match regular expression "Enter passphrase.*: "? Gate "Enter > passphrase*: "? gate=no > "([Uu]sername|[Ll]ogin|user name|Login Name):"? (No Gate, RE only) gate=yes re=no > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=no > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > "(>|#) ?"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "# " > expect: set expect_out(1,string) "#" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "Example_Switch56# " > send: sending "\r" to { exp3 } > Gate keeper glob pattern for '[ > ]+' is ''. Not usable, disabling the performance booster. > Gate keeper glob pattern for '^.+(>|#) ?' is ''. Not usable, disabling the performance booster. > > expect: does "" (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no > "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no > Example_Switch56# > expect: does "\u001b[1M\u001b[1LExample_Switch56# " (spawn_id exp3) match regular expression "[\r\n]+"? (No > Gate, RE only) gate=yes re=no > "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes > expect: set expect_out(0,string) "\u001b[1M\u001b[1LExample_Switch56# " > expect: set expect_out(1,string) "#" > expect: set expect_out(spawn_id) "exp3" > expect: set expect_out(buffer) "\u001b[1M\u001b[1LExample_Switch56# " > send: sending "no page\r" to { exp3 } > Gate keeper glob pattern for '[ > ]+' is ''. Not usable, disabling the performance booster. > couldn't compile regular expression pattern: parentheses () not balanced > while executing > "expect { > -re "\[\n\r]+" { exp_continue } > -re $reprompt {} > }" > (procedure "run_commands" line 12) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 159) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # device timeout > set timeout [find t..." > (file "/usr/local/bin/hlogin" line 657) > > > -- > > Michael Newton > > > On 20 July 2017 at 11:24, Alan Sklar > wrote: > > Rancid 3.1 > > On Thu, Jul 20, 2017 at 8:54 AM, heasley > wrote: > > Tue, Jul 18, 2017 at 02:24:11PM -0400, Alan Sklar: > > I have a couple of HP and Aruba switches. Just recent one of the HP > > switches needed to be replaced. I replaced the switch with a comparable > > model that HP sent. After fixing the SSH key issues, I am getting the below > > error when attempting to get a backup. the switch log shows rancid is > > making a connection and hlogin is able to login. Any ideas > > you havent told us what version youre using. This may be a problem that > was fixed in rancid 3.5. > > > Getting missed routers: round 4. > > couldn't compile regular expression pattern: parentheses () not balanced > > while executing > > "expect { > > -re $reprompt {} > > -re "\[\n\r]+" { exp_continue } > > }" > > (procedure "run_commands" line 9) > > invoked from within > > "run_commands $prompt $command" > > ("foreach" body line 161) > > invoked from within > > "foreach router [lrange $argv $i end] { > > set router [string tolower $router] > > send_user "$router\n" > > > > # device timeout > > set timeout [find t..." > > (file "/usr/local/rancid/bin/hlogin" line 626) > > 10.16.100.11 : missed cmd(s): all commands > > 10.16.100.11 : End of run not found > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From Thomas.Eichhorn at klinikum-nuernberg.de Wed Aug 30 12:51:52 2017 From: Thomas.Eichhorn at klinikum-nuernberg.de (Eichhorn, Thomas) Date: Wed, 30 Aug 2017 12:51:52 +0000 Subject: [rancid] rancid with hp5412 J8697A or hp5406 Message-ID: Is there any chance to get the patch from Kalani into upstream? Does something speak against it? Does it break anything (e.g. working correctly with older firmware versions)? Kind regards, Thomas ________________________________ Klinikum N?rnberg, Sitz: N?rnberg, Amtsgericht N?rnberg -Registergericht- HRA 14190, Vorstand: Dr. Alfred Estelmann From Thomas.Eichhorn at klinikum-nuernberg.de Thu Aug 31 05:55:50 2017 From: Thomas.Eichhorn at klinikum-nuernberg.de (Eichhorn, Thomas) Date: Thu, 31 Aug 2017 05:55:50 +0000 Subject: [rancid] rancid with hp5412 J8697A or hp5406 Message-ID: Sorry, I should have posted the link referring to that patch: http://www.shrubbery.net/pipermail/rancid-discuss/2017-March/009520.html Kind regards, Thomas ________________________________ Klinikum N?rnberg, Sitz: N?rnberg, Amtsgericht N?rnberg -Registergericht- HRA 14190, Vorstand: Dr. Alfred Estelmann From dhcp at bjerg.info Thu Aug 31 13:20:30 2017 From: dhcp at bjerg.info (dhcp) Date: Thu, 31 Aug 2017 15:20:30 +0200 Subject: [rancid] ASA system context problem Message-ID: I try to backup my ASA system context My rancid.types.conf asa;script;rancid -t cisco asa;login;clogin asa;module;ios asa;inloop;ios::inloop asa;command;ios::WriteTerm;changeto system asa;command;ios::WriteTerm;more system:running-config;ASA/PIX router.db asa-system;asa;up i only get the admin config and not the system config :-( ############ rancid 3.6.2 clogin -c "changeto system; show running-config" asa-ip this command show the system config /Kennet