From KhalidElFatimi at rideau.com Sat Oct 1 19:34:14 2016 From: KhalidElFatimi at rideau.com (Khalid El Fatimi [Ext. 299]) Date: Sat, 1 Oct 2016 19:34:14 +0000 Subject: [rancid] Problem of backup trought rancid server Message-ID: <822db5c17c1647c0a9147f0e4355c3b9@rideau.com> Hi, how are you it's been four months that rancid no longer in our backup device I have this message (The Following routers have-nots-been contacted successfully for more than 24 hours.) rw-r ----- 1 rancid rancid 28727 Jul 26 10:36 vdx-tor-s01 rw-r ----- 1 rancid rancid Jul 26 5079 10:36 cer-tor rw-r ----- 1 rancid rancid Jul 26 9738 10:36 icx-tor-01 rw-r ----- 1 rancid rancid Jul 26 9738 10:36 icx-tor-02 I tried everything but without success I reset the password rancid on all devices but nothing, I able to connect to all devices across the server rancid there is no problem, but the backups doesn't make! you have an idea? thank you for your help Khalid -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabizs at yahoo.com Fri Oct 7 20:50:38 2016 From: fabizs at yahoo.com (Fabio Santos) Date: Fri, 7 Oct 2016 20:50:38 +0000 (UTC) Subject: [rancid] rancid not trying to backup. References: <965341606.626160.1475873438999.ref@mail.yahoo.com> Message-ID: <965341606.626160.1475873438999@mail.yahoo.com> Hi all, I'm new here, and trying to backup some cisco devices. After set up the group configs. I see all routers on router.db, but Rancid is not trying to do a backup see: bash-3.2# cd RMS-CLARO-RJbash-3.2# lsCVS ?configs ?router.db ?router.db.BKP ?routers.all ?routers.down ?routers.up ?runcountbash-3.2# more router.dbesvta01-rta01;cisco;upesvta01-rta02;cisco;upesvta01-tsa01;cisco;upmackenzie-vigia-sw03;cisco;upmackenzie-vigia-sw04;cisco;uprjbot01-itp01;cisco;up[..] bash-3.2$ clogin esvta01-rta01esvta01-rta01spawn telnet esvta01-rta01Trying 10.xxx.yyy.zzz...telnet: Unable to connect to remote host: Connection refusedspawn ssh -x -l backbone esvta01-rta01 ****************************ATENTION********************************** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** RESTRICTED ACCESS EQUIPMENT. ONLY PERSONAL AUTHORIZED. ? ? ? ? ? ?** ANY ATTEMPT OF NOT AUTHORIZED OR IMPROPER ACCESS, CAN BE ? ? ? ? ?** PROCESS OBJECT. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** ALL ACCESSES ARE BEING MONITORED AND AUDITED AND ALL COLLECTED ? ?** INFORMATION ARE PROPERTY OF CLARO. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? **********************************************************************Password: ************************************************** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** VOCE ESTA EM: ESVTA01-RTA01 ? ? ? ? ? ? ? ? ? ** ES - Vitoria - ESVTA01 ? ? ? ? ? ? ? ? ? ? ? ?** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? **************************************************ESVTA01-RTA01#ESVTA01-RTA01#exit bash-3.2#net-backup/bin/rancid-run ?RMS-CLARO-RJ bash-3.2$ cd net-backup/var/logs/ bash-3.2$ more RMS-CLARO-RJ.20161007.174833starting: Fri Oct 7 17:48:33 BRT 2016 Trying to get all of the configs.=====================================Getting missed routers: round 1.=====================================Getting missed routers: round 2.=====================================Getting missed routers: round 3.=====================================Getting missed routers: round 4.=====================================Getting missed routers: round 5. cvs diff: Diffing .cvs diff: Diffing configscvs commit: Examining .cvs commit: Examining configs ending: Fri Oct 7 17:48:43 BRT 2016bash-3.2$ Can someone help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabizs at yahoo.com Mon Oct 10 15:49:31 2016 From: fabizs at yahoo.com (Fabio Santos) Date: Mon, 10 Oct 2016 15:49:31 +0000 (UTC) Subject: [rancid] rancid not trying to backup. In-Reply-To: <965341606.626160.1475873438999@mail.yahoo.com> References: <965341606.626160.1475873438999.ref@mail.yahoo.com> <965341606.626160.1475873438999@mail.yahoo.com> Message-ID: <818184183.2208252.1476114571671@mail.yahoo.com> Hi All, I'm new here and trying to make a backups with rancid. I dont know why, but in log file I'm see only?attempts,see: Trying to get all of the configs.=====================================Getting missed routers: round 1.=====================================Getting missed routers: round 2.=====================================Getting missed routers: round 3.=====================================Getting missed routers: round 4.=====================================Getting missed routers: round 5. But not see any router... How can i debug it? My router.db is: bash-3.2$ more router.dbesvta01-rta01;cisco;upesvta01-rta02;cisco;upesvta01-tsa01;cisco;upmackenzie-vigia-sw03;cisco;upmackenzie-vigia-sw04;cisco;uprjbot01-itp01;cisco;uprjbot01-rta01;cisco;uprjbot01-rta02;cisco;uprjbot01-rtl01;cisco;uprjbot01-rtl02;cisco;uprjbot02-fwb01;cisco;uprjbot02-fwl01;cisco;uprjbot02-rta01;cisco;uprjbot02-rta02;cisco;uprjbot02-rta03;cisco;uprjbot02-rta04;cisco;up Em Sexta-feira, 7 de Outubro de 2016 17:50, Fabio Santos escreveu: Hi all, I'm new here, and trying to backup some cisco devices. After set up the group configs. I see all routers on router.db, but Rancid is not trying to do a backup see: bash-3.2# cd RMS-CLARO-RJbash-3.2# lsCVS ?configs ?router.db ?router.db.BKP ?routers.all ?routers.down ?routers.up ?runcountbash-3.2# more router.dbesvta01-rta01;cisco;upesvta01-rta02;cisco;upesvta01-tsa01;cisco;upmackenzie-vigia-sw03;cisco;upmackenzie-vigia-sw04;cisco;uprjbot01-itp01;cisco;up[..] bash-3.2$ clogin esvta01-rta01esvta01-rta01spawn telnet esvta01-rta01Trying 10.xxx.yyy.zzz...telnet: Unable to connect to remote host: Connection refusedspawn ssh -x -l backbone esvta01-rta01 ****************************ATENTION********************************** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** RESTRICTED ACCESS EQUIPMENT. ONLY PERSONAL AUTHORIZED. ? ? ? ? ? ?** ANY ATTEMPT OF NOT AUTHORIZED OR IMPROPER ACCESS, CAN BE ? ? ? ? ?** PROCESS OBJECT. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** ALL ACCESSES ARE BEING MONITORED AND AUDITED AND ALL COLLECTED ? ?** INFORMATION ARE PROPERTY OF CLARO. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? **********************************************************************Password: ************************************************** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ** VOCE ESTA EM: ESVTA01-RTA01 ? ? ? ? ? ? ? ? ? ** ES - Vitoria - ESVTA01 ? ? ? ? ? ? ? ? ? ? ? ?** ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? **************************************************ESVTA01-RTA01#ESVTA01-RTA01#exit bash-3.2#net-backup/bin/rancid-run ?RMS-CLARO-RJ bash-3.2$ cd net-backup/var/logs/ bash-3.2$ more RMS-CLARO-RJ.20161007.174833starting: Fri Oct 7 17:48:33 BRT 2016 Trying to get all of the configs.=====================================Getting missed routers: round 1.=====================================Getting missed routers: round 2.=====================================Getting missed routers: round 3.=====================================Getting missed routers: round 4.=====================================Getting missed routers: round 5. cvs diff: Diffing .cvs diff: Diffing configscvs commit: Examining .cvs commit: Examining configs ending: Fri Oct 7 17:48:43 BRT 2016bash-3.2$ Can someone help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabizs at yahoo.com Tue Oct 11 15:10:34 2016 From: fabizs at yahoo.com (Fabio Santos) Date: Tue, 11 Oct 2016 15:10:34 +0000 (UTC) Subject: [rancid] Fail to get config. References: <242925512.3130939.1476198634373.ref@mail.yahoo.com> Message-ID: <242925512.3130939.1476198634373@mail.yahoo.com> Hi all, Some one know why I dont see any router on log file during rounds (trying to get all of the configs). see: Trying to get all of the configs.=====================================Getting missed routers: round 1.=====================================Getting missed routers: round 2.=====================================Getting missed routers: round 3.=====================================Getting missed routers: round 4.=====================================Getting missed routers: round 5. But not see any router... How can i debug it? My router.db is: bash-3.2$ more router.dbesvta01-rta01;cisco;upesvta01-rta02;cisco;upesvta01-tsa01;cisco;up -------------- next part -------------- An HTML attachment was scrubbed... URL: From lobst at hotmail.fr Tue Oct 11 12:47:23 2016 From: lobst at hotmail.fr (=?utf-8?B?TG/vv71j?=) Date: Tue, 11 Oct 2016 12:47:23 +0000 Subject: [rancid] Rancid 3.5.1 with Dell switch Message-ID: Hi everyone ! I try to run Rancid 3.5.1 with Dell switch but I encounter somme issues. The script dllogin do not work : it just wait for the TIMEOUT when try to login. I had better results with the clogin script but when I try a rancid-run, I have a "End of run not found" error. Anybody uses rancid 3.5.1 with Dell switches and encounter problems as well ? From heas at shrubbery.net Tue Oct 11 17:32:53 2016 From: heas at shrubbery.net (heasley) Date: Tue, 11 Oct 2016 17:32:53 +0000 Subject: [rancid] Rancid 3.5.1 with Dell switch In-Reply-To: References: Message-ID: <20161011173253.GA8244@shrubbery.net> Tue, Oct 11, 2016 at 12:47:23PM +0000, Lo?c: > Hi everyone ! > > I try to run Rancid 3.5.1 with Dell switch but I encounter somme issues. > > The script dllogin do not work : it just wait for the TIMEOUT when try > to login. > > I had better results with the clogin script but when I try a rancid-run, > I have a "End of run not found" error. > > Anybody uses rancid 3.5.1 with Dell switches and encounter problems as > well ? Dell OEMs their network hardware. In most cases they're supported by the module of the OEM. # SMC and Dell PowerConnect 35xx (3524, 3524P, 3548, 3548P) and 7048 smc;script;srancid # Force 10 and Dell Force10. force10;script;f10rancid Check that it is not really one of these. Otherwise, see S3 Q2 of the FAQ. From Robert.Remsik at colostate.edu Tue Oct 11 15:58:50 2016 From: Robert.Remsik at colostate.edu (Remsik,Robert) Date: Tue, 11 Oct 2016 15:58:50 +0000 Subject: [rancid] Rancid 3.4.99 not sending "x machines have not been contacted within x hours" emails. Message-ID: Hello! I'm running a 3.4.99 Rancid installation version and while rancid is grabbing the configs and diffs correctly it is not sending an email notification if a device has not been reached for more than 24 hours. Looking at the code it appears as if this code block from $home/bin/control_rancid isn't being triggered. It also appears as if the echoes aren't going anywhere. --- code block --- # If any machines have not been reached within the last $OLDTIME # hours, mail out a list of them. cd $DIR/configs rm -f $DIR/routers.failed if [ "X$OLDTIME" = "X" ] ; then OLDTIME=24 fi perl -F; -ane "{\$t = (stat(\$F[0]))[9]; print \`ls -ld \$F[0]\` if (time() - \$t >= $OLDTIME*60*60);}" $devlistfile | sort -u > $DIR/routers.failed if [ -s $DIR/routers.failed ] ; then ( echo "To: $adminmailrcpt" echo "Subject: config fetcher problems - $GROUP" echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}' echo "" echo "The following routers have not been successfully contacted for" echo "more than $OLDTIME hours." cat $DIR/routers.failed ) | $SENDMAIL -t $MAILOPTS fi --- code block --- Can anyone help? Thank you in advance, Robert Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Oct 11 21:11:36 2016 From: heas at shrubbery.net (heasley) Date: Tue, 11 Oct 2016 21:11:36 +0000 Subject: [rancid] Rancid 3.4.99 not sending "x machines have not been contacted within x hours" emails. In-Reply-To: References: Message-ID: <20161011211136.GB12806@shrubbery.net> Tue, Oct 11, 2016 at 03:58:50PM +0000, Remsik,Robert: > Hello! > > > I'm running a 3.4.99 Rancid installation version and while rancid is grabbing the configs and diffs correctly it is not sending an email notification if a device has not been reached for more than 24 hours. > > > Looking at the code it appears as if this code block from $home/bin/control_rancid isn't being triggered. It also appears as if the echoes aren't going anywhere. look in the group's log for errors, such as sendmail not found. And, 3.4.99 would be an alpha version, somewhere along the line SENDMAIL was added to rancid.conf; make sure you have it set. also, make sure that sendmail actually works and that there isnt a ~rancid/dead.letter (meaning that sendmail failed) or bounces in rancid's mailbox. From adrian.dimitrov at efellows.bg Wed Oct 12 11:51:01 2016 From: adrian.dimitrov at efellows.bg (Adrian A. Dimitrov) Date: Wed, 12 Oct 2016 11:51:01 +0000 Subject: [rancid] Rancid via proxy host Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> Hello All , I am new to rancid. I am still testing it, but so far is working perfectly fine for me. Now what I need is to back up the configuration of devices that are beyond my network. My idea is to install only one rancid server in our network and to make and collect the back ups from remote hosts In the customers environment. For this purpose I will use our monitoring system which has it's own agents in each customer environment. How can I do this? I am using the latest version downloaded from the official site. Thanks. Best Regards, Adrian Dimitrov [eFellows-Mark-RGB_Sign] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8632 bytes Desc: image001.png URL: From alan.mckinnon at gmail.com Wed Oct 12 12:11:32 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Wed, 12 Oct 2016 14:11:32 +0200 Subject: [rancid] Rancid via proxy host In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> Message-ID: <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> Assuming that you have no direct ssh path from your environment to the customer's: First idea that comes to mind is to use ssh for connecting to all devices, then leverage the ssh proxy/forwarding features configurable in ~/.ssh/config Telnet can be more tricky, you might end up having to use a range or ports forwarded to :23 or similar. This one statement of yours is nonsensical: "For this purpose I will use our monitoring system which has it?s own agents in each customer environment." That makes no sense wrt rancid, please elaborate on your thoughts how you reckon this could work? Such as, what connectivity exists between you and the customers? On 12/10/2016 13:51, Adrian A. Dimitrov wrote: > Hello All , > > > > I am new to rancid. I am still testing it, but so far is working > perfectly fine for me. > > > > Now what I need is to back up the configuration of devices that are > beyond my network. My idea is to install only one rancid server in our > network and to make and collect the back ups from remote hosts In the > customers environment. For this purpose I will use our monitoring system > which has it?s own agents in each customer environment. How can I do > this? I am using the latest version downloaded from the official site. > > > > Thanks. > > > > Best Regards, > > Adrian Dimitrov > > eFellows-Mark-RGB_Sign > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From adrian.dimitrov at efellows.bg Wed Oct 12 13:43:31 2016 From: adrian.dimitrov at efellows.bg (Adrian A. Dimitrov) Date: Wed, 12 Oct 2016 13:43:31 +0000 Subject: [rancid] Rancid via proxy host In-Reply-To: <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> References: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> Hello Alan , Thanks for the fast reply! Usually to connect to the devices via ssh we are using VPN (connecting via cisco anyconnect client). To clear my thoughts out. We are using monitoring system netxms. The server is in our network (linux debian) and for each client we have linux machines (netxms agents) installed (in the clients environment). So the server is communicating with the agents on a specific port to collect the data. My idea is somehow to use these machines and make the backups through them. Is this possible somehow. We found this article http://ingenious-excerpts.blogspot.bg/2013/07/rancid-and-relays-using-usercmd-patch.html , and I tried to configure this, but with no success. Best Regards, Adrian Dimitrov -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Alan McKinnon Sent: Wednesday, October 12, 2016 3:12 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid via proxy host Assuming that you have no direct ssh path from your environment to the customer's: First idea that comes to mind is to use ssh for connecting to all devices, then leverage the ssh proxy/forwarding features configurable in ~/.ssh/config Telnet can be more tricky, you might end up having to use a range or ports forwarded to :23 or similar. This one statement of yours is nonsensical: "For this purpose I will use our monitoring system which has it?s own agents in each customer environment." That makes no sense wrt rancid, please elaborate on your thoughts how you reckon this could work? Such as, what connectivity exists between you and the customers? On 12/10/2016 13:51, Adrian A. Dimitrov wrote: > Hello All , > > > > I am new to rancid. I am still testing it, but so far is working > perfectly fine for me. > > > > Now what I need is to back up the configuration of devices that are > beyond my network. My idea is to install only one rancid server in our > network and to make and collect the back ups from remote hosts In the > customers environment. For this purpose I will use our monitoring > system which has it?s own agents in each customer environment. How can > I do this? I am using the latest version downloaded from the official site. > > > > Thanks. > > > > Best Regards, > > Adrian Dimitrov > > eFellows-Mark-RGB_Sign > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From adrian.dimitrov at efellows.bg Wed Oct 12 14:17:47 2016 From: adrian.dimitrov at efellows.bg (Adrian A. Dimitrov) Date: Wed, 12 Oct 2016 14:17:47 +0000 Subject: [rancid] Rancid via proxy host In-Reply-To: <1c198c5c-2142-7279-9354-9f10fc7811d4@gmail.com> References: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> <1c198c5c-2142-7279-9354-9f10fc7811d4@gmail.com> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F7167626@exchanger.efellows.bg> Thanks a lot ! From the security stand point we will make sure we are on the save side. Will keep in touch what we have done. Thanks again. Best Regards, Adrian Dimitrov -----Original Message----- From: Alan McKinnon [mailto:alan.mckinnon at gmail.com] Sent: Wednesday, October 12, 2016 5:04 PM To: Adrian A. Dimitrov ; rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid via proxy host That makes more sense thanks. So each of those netxms can be configured to act as an ssh bastion/jumphost to tunnel your ssh traffic through to the network devices. The whole scheme can get a touch complex with several moving parts, but as long as you have a pretty diagram laying out the design, it should be easy enough for you and your colleagues to manage. These things are usually very site-specific so I don't want to get into too much detail, and especially don't want to discuss what ${Joe Random Blogger} did, but essentially it's along these lines: For each customer, set up ssh forwarding on the netxms machine (ssh -L), one unique port per device. Put those connection details into ~/.ssh/config for each fqdn so that rancid ends up getting to the right place with the normal clogin This is all pretty standard ssh goodness, the man pages cover it quite extensively. Of course you also have to make sure the VPN is up if your traffic is going to cross that. And finally you'll be punching holes in customer's network firewalls to make this work so clearing it with the customer is a good idea :-) On 12/10/2016 15:43, Adrian A. Dimitrov wrote: > Hello Alan , > > Thanks for the fast reply! Usually to connect to the devices via ssh we are using VPN (connecting via cisco anyconnect client). > > To clear my thoughts out. > We are using monitoring system netxms. The server is in our network (linux debian) and for each client we have linux machines (netxms agents) installed (in the clients environment). So the server is communicating with the agents on a specific port to collect the data. My idea is somehow to use these machines and make the backups through them. > > Is this possible somehow. We found this article http://ingenious-excerpts.blogspot.bg/2013/07/rancid-and-relays-using-usercmd-patch.html , and I tried to configure this, but with no success. > > Best Regards, > Adrian Dimitrov > > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On > Behalf Of Alan McKinnon > Sent: Wednesday, October 12, 2016 3:12 PM > To: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Rancid via proxy host > > Assuming that you have no direct ssh path from your environment to the > customer's: > > First idea that comes to mind is to use ssh for connecting to all > devices, then leverage the ssh proxy/forwarding features configurable > in ~/.ssh/config > > Telnet can be more tricky, you might end up having to use a range or ports forwarded to :23 or similar. > > This one statement of yours is nonsensical: > "For this purpose I will use our monitoring system which has it?s own agents in each customer environment." > That makes no sense wrt rancid, please elaborate on your thoughts how you reckon this could work? Such as, what connectivity exists between you and the customers? > > > > > On 12/10/2016 13:51, Adrian A. Dimitrov wrote: >> Hello All , >> >> >> >> I am new to rancid. I am still testing it, but so far is working >> perfectly fine for me. >> >> >> >> Now what I need is to back up the configuration of devices that are >> beyond my network. My idea is to install only one rancid server in >> our network and to make and collect the back ups from remote hosts In >> the customers environment. For this purpose I will use our monitoring >> system which has it?s own agents in each customer environment. How >> can I do this? I am using the latest version downloaded from the official site. >> >> >> >> Thanks. >> >> >> >> Best Regards, >> >> Adrian Dimitrov >> >> eFellows-Mark-RGB_Sign >> >> >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From alan.mckinnon at gmail.com Wed Oct 12 14:04:04 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Wed, 12 Oct 2016 16:04:04 +0200 Subject: [rancid] Rancid via proxy host In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> Message-ID: <1c198c5c-2142-7279-9354-9f10fc7811d4@gmail.com> That makes more sense thanks. So each of those netxms can be configured to act as an ssh bastion/jumphost to tunnel your ssh traffic through to the network devices. The whole scheme can get a touch complex with several moving parts, but as long as you have a pretty diagram laying out the design, it should be easy enough for you and your colleagues to manage. These things are usually very site-specific so I don't want to get into too much detail, and especially don't want to discuss what ${Joe Random Blogger} did, but essentially it's along these lines: For each customer, set up ssh forwarding on the netxms machine (ssh -L), one unique port per device. Put those connection details into ~/.ssh/config for each fqdn so that rancid ends up getting to the right place with the normal clogin This is all pretty standard ssh goodness, the man pages cover it quite extensively. Of course you also have to make sure the VPN is up if your traffic is going to cross that. And finally you'll be punching holes in customer's network firewalls to make this work so clearing it with the customer is a good idea :-) On 12/10/2016 15:43, Adrian A. Dimitrov wrote: > Hello Alan , > > Thanks for the fast reply! Usually to connect to the devices via ssh we are using VPN (connecting via cisco anyconnect client). > > To clear my thoughts out. > We are using monitoring system netxms. The server is in our network (linux debian) and for each client we have linux machines (netxms agents) installed (in the clients environment). So the server is communicating with the agents on a specific port to collect the data. My idea is somehow to use these machines and make the backups through them. > > Is this possible somehow. We found this article http://ingenious-excerpts.blogspot.bg/2013/07/rancid-and-relays-using-usercmd-patch.html , and I tried to configure this, but with no success. > > Best Regards, > Adrian Dimitrov > > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Alan McKinnon > Sent: Wednesday, October 12, 2016 3:12 PM > To: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Rancid via proxy host > > Assuming that you have no direct ssh path from your environment to the > customer's: > > First idea that comes to mind is to use ssh for connecting to all devices, then leverage the ssh proxy/forwarding features configurable in ~/.ssh/config > > Telnet can be more tricky, you might end up having to use a range or ports forwarded to :23 or similar. > > This one statement of yours is nonsensical: > "For this purpose I will use our monitoring system which has it?s own agents in each customer environment." > That makes no sense wrt rancid, please elaborate on your thoughts how you reckon this could work? Such as, what connectivity exists between you and the customers? > > > > > On 12/10/2016 13:51, Adrian A. Dimitrov wrote: >> Hello All , >> >> >> >> I am new to rancid. I am still testing it, but so far is working >> perfectly fine for me. >> >> >> >> Now what I need is to back up the configuration of devices that are >> beyond my network. My idea is to install only one rancid server in our >> network and to make and collect the back ups from remote hosts In the >> customers environment. For this purpose I will use our monitoring >> system which has it?s own agents in each customer environment. How can >> I do this? I am using the latest version downloaded from the official site. >> >> >> >> Thanks. >> >> >> >> Best Regards, >> >> Adrian Dimitrov >> >> eFellows-Mark-RGB_Sign >> >> >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From heas at shrubbery.net Thu Oct 13 00:22:28 2016 From: heas at shrubbery.net (heasley) Date: Thu, 13 Oct 2016 00:22:28 +0000 Subject: [rancid] Rancid via proxy host In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F71656A3@exchanger.efellows.bg> <9ffb9fdf-71f3-f7b9-3ed9-39bf24da6f36@gmail.com> <490FA8C6CC4CDA44A7D3E449D75BF1F7165968@exchanger.efellows.bg> Message-ID: <20161013002228.GB45879@shrubbery.net> Wed, Oct 12, 2016 at 01:43:31PM +0000, Adrian A. Dimitrov: > Hello Alan , > > Thanks for the fast reply! Usually to connect to the devices via ssh we are using VPN (connecting via cisco anyconnect client). > > To clear my thoughts out. > We are using monitoring system netxms. The server is in our network (linux debian) and for each client we have linux machines (netxms agents) installed (in the clients environment). So the server is communicating with the agents on a specific port to collect the data. My idea is somehow to use these machines and make the backups through them. If by "agent" you mean that there is a host at the customer sites, they could run rancid with a SCM that uses a remote repo that is located at your NOC. So, it collects locally and pushes the changes back to your central server. > Is this possible somehow. We found this article http://ingenious-excerpts.blogspot.bg/2013/07/rancid-and-relays-using-usercmd-patch.html , and I tried to configure this, but with no success. Sorry, it is on my list to incorporate a version of this ... but I haven't had the time. > Best Regards, > Adrian Dimitrov > > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Alan McKinnon > Sent: Wednesday, October 12, 2016 3:12 PM > To: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Rancid via proxy host > > Assuming that you have no direct ssh path from your environment to the > customer's: > > First idea that comes to mind is to use ssh for connecting to all devices, then leverage the ssh proxy/forwarding features configurable in ~/.ssh/config > > Telnet can be more tricky, you might end up having to use a range or ports forwarded to :23 or similar. > > This one statement of yours is nonsensical: > "For this purpose I will use our monitoring system which has it?s own agents in each customer environment." > That makes no sense wrt rancid, please elaborate on your thoughts how you reckon this could work? Such as, what connectivity exists between you and the customers? > > > > > On 12/10/2016 13:51, Adrian A. Dimitrov wrote: > > Hello All , > > > > > > > > I am new to rancid. I am still testing it, but so far is working > > perfectly fine for me. > > > > > > > > Now what I need is to back up the configuration of devices that are > > beyond my network. My idea is to install only one rancid server in our > > network and to make and collect the back ups from remote hosts In the > > customers environment. For this purpose I will use our monitoring > > system which has it?s own agents in each customer environment. How can > > I do this? I am using the latest version downloaded from the official site. > > > > > > > > Thanks. > > > > > > > > Best Regards, > > > > Adrian Dimitrov > > > > eFellows-Mark-RGB_Sign > > > > > > > > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > -- > Alan McKinnon > alan.mckinnon at gmail.com > > _______________________________________________ > 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 Robert.Remsik at colostate.edu Wed Oct 12 18:29:32 2016 From: Robert.Remsik at colostate.edu (Remsik,Robert) Date: Wed, 12 Oct 2016 18:29:32 +0000 Subject: [rancid] Rancid 3.4.99 not sending "x machines have not been contacted within x hours" emails. In-Reply-To: <20161011211136.GB12806@shrubbery.net> References: , <20161011211136.GB12806@shrubbery.net> Message-ID: That did it. The problem was with my aliases not being in the correct format. Thank you Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu ________________________________ From: heasley Sent: Tuesday, October 11, 2016 3:11 PM To: Remsik,Robert Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid 3.4.99 not sending "x machines have not been contacted within x hours" emails. Tue, Oct 11, 2016 at 03:58:50PM +0000, Remsik,Robert: > Hello! > > > I'm running a 3.4.99 Rancid installation version and while rancid is grabbing the configs and diffs correctly it is not sending an email notification if a device has not been reached for more than 24 hours. > > > Looking at the code it appears as if this code block from $home/bin/control_rancid isn't being triggered. It also appears as if the echoes aren't going anywhere. look in the group's log for errors, such as sendmail not found. And, 3.4.99 would be an alpha version, somewhere along the line SENDMAIL was added to rancid.conf; make sure you have it set. also, make sure that sendmail actually works and that there isnt a ~rancid/dead.letter (meaning that sendmail failed) or bounces in rancid's mailbox. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian.dimitrov at efellows.bg Thu Oct 13 08:43:44 2016 From: adrian.dimitrov at efellows.bg (Adrian A. Dimitrov) Date: Thu, 13 Oct 2016 08:43:44 +0000 Subject: [rancid] CVS commands Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F716BAF1@exchanger.efellows.bg> Hello Team , I have a simple question. I am exploring the features of rancid and I want to play a little bit with the cvs commands. I tried something like this. cvs log 10.11.10.1 cvs diff -u -r 1.2 -r 1.3 10.11.10.1 Both gave me the following error: cvs diff: No CVSROOT specified! Please use the `-d' option cvs [diff aborted]: or set the CVSROOT environment variable. Checked the manual and the rancid.conf file and it seems that the CVS path is set as it should be (file attached in txt format), but still I get the output above. Thanks. Best Regards, Adrian Dimitrov [eFellows-Mark-RGB_Sign] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8632 bytes Desc: image001.png URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rancid.conf.txt URL: From Chris.Davis at principia.edu Tue Oct 11 16:14:33 2016 From: Chris.Davis at principia.edu (Chris Davis) Date: Tue, 11 Oct 2016 16:14:33 +0000 Subject: [rancid] Configuration Modification with RANCID Message-ID: So, I've been modifying my switch/router configurations with RANCID for many years now. This is the first time I've bumped into this one. At first look, this probably seems like a Cisco issue, but I think not. Well, maybe partially... The same command issued in the Cisco CLI works fine. It's only when I issue it via RANCID that I have a problem. The problem could also lie in the bash shell, which might be reacting to the periods and other meta characters in the encrypted string. I'm trying to issue via "clogin -c" a set enable secret command (among others) using a predefined encrypted key. So, my command ends up something like this. (The encrypted value is bogus, but similarly constructed.) for host in "list of switch IP addresses"; do clogin -c "config t; enable secret 5 $8$VNEb$ait.ADc45ru5cDNQEGa/. no username Bob.Smith; no ip http authentication local; ip http authentication aaa login-authentication local+radius; ip http authentication aaa exec-authorization local+radius; end; write memory;" $host > /tmp/$host.log & done The Cisco CLI barks at the encrypted string and the rest of the commands work as expected. Hostname(config)#enable secret 5 .ADc45ru5cDNQEGa/. ERROR: The secret you entered is not a valid encrypted secret. To enter an UNENCRYPTED secret, do not specify type 5 encryption. When you properly enter an UNENCRYPTED secret, it will be encrypted. As I write this, I suspect it's the bash shell that's mangling things. Any thoughts? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From rancid at ale.cx Thu Oct 13 14:04:00 2016 From: rancid at ale.cx (Alex DEKKER) Date: Thu, 13 Oct 2016 15:04:00 +0100 Subject: [rancid] Configuration Modification with RANCID In-Reply-To: References: Message-ID: <5d6d3c5b-2a09-31a7-965d-4e04d0151fd7@ale.cx> On 11/10/16 17:14, Chris Davis wrote: > > for host in ?list of switch IP addresses?; do clogin -c "config t; > > enable secret 5 $8$VNEb$ait.ADc45ru5cDNQEGa/. > ... > > end; write memory;" $host > /tmp/$host.log & done > > The Cisco CLI barks at the encrypted string and the rest of the > commands work as expected. > > Hostname(config)#enable secret 5 .ADc45ru5cDNQEGa/. > > ERROR: The secret you entered is not a valid encrypted secret. > > ... > > As I write this, I suspect it?s the bash shell that?s mangling > things. Any thoughts? > > Chris > > No doubt, bash is expanding the $string to nothing. You either need to escape the $ or put some more/different quotes around it. alexd -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Oct 13 16:45:37 2016 From: heas at shrubbery.net (heasley) Date: Thu, 13 Oct 2016 16:45:37 +0000 Subject: [rancid] Configuration Modification with RANCID In-Reply-To: <5d6d3c5b-2a09-31a7-965d-4e04d0151fd7@ale.cx> References: <5d6d3c5b-2a09-31a7-965d-4e04d0151fd7@ale.cx> Message-ID: <20161013164537.GA72512@shrubbery.net> Thu, Oct 13, 2016 at 03:04:00PM +0100, Alex DEKKER: > No doubt, bash is expanding the $string to nothing. You either need to > escape the $ or put some more/different quotes around it. you must also escape it for tcl. eg: % clogin ... '\$foo.blahblah' ... hostname or % cat > foo < References: <490FA8C6CC4CDA44A7D3E449D75BF1F716BAF1@exchanger.efellows.bg> Message-ID: <20161013174035.GB72925@shrubbery.net> Thu, Oct 13, 2016 at 08:43:44AM +0000, Adrian A. Dimitrov: > Hello Team , > > I have a simple question. I am exploring the features of rancid and I want to play a little bit with the cvs commands. > > I tried something like this. > > cvs log 10.11.10.1 > > cvs diff -u -r 1.2 -r 1.3 10.11.10.1 > > Both gave me the following error: > > cvs diff: No CVSROOT specified! Please use the `-d' option > cvs [diff aborted]: or set the CVSROOT environment variable. > > Checked the manual and the rancid.conf file and it seems that the CVS path is set as it should be (file attached in txt format), but still I get the output above. cd ~rancid/group/configs cvs diff ... http://www-mrsrl.stanford.edu/~brian/cvstutorial/ From ler762 at gmail.com Thu Oct 13 17:05:47 2016 From: ler762 at gmail.com (Lee) Date: Thu, 13 Oct 2016 13:05:47 -0400 Subject: [rancid] CVS commands In-Reply-To: <490FA8C6CC4CDA44A7D3E449D75BF1F716BAF1@exchanger.efellows.bg> References: <490FA8C6CC4CDA44A7D3E449D75BF1F716BAF1@exchanger.efellows.bg> Message-ID: On 10/13/16, Adrian A. Dimitrov wrote: > Hello Team , > > I have a simple question. I am exploring the features of rancid and I want > to play a little bit with the cvs commands. > > I tried something like this. > > cvs log 10.11.10.1 > > cvs diff -u -r 1.2 -r 1.3 10.11.10.1 > > Both gave me the following error: > > cvs diff: No CVSROOT specified! Please use the `-d' option > cvs [diff aborted]: or set the CVSROOT environment variable. > > Checked the manual and the rancid.conf file and it seems that the CVS path > is set as it should be (file attached in txt format), but still I get the > output above. BASEDIR=/usr/local/rancid/var LIST_OF_GROUPS="eFellows" Did you do a cd /usr/local/rancid/var/eFellows/configs first? Regards, Lee From adrian.dimitrov at efellows.bg Fri Oct 14 06:53:35 2016 From: adrian.dimitrov at efellows.bg (Adrian A. Dimitrov) Date: Fri, 14 Oct 2016 06:53:35 +0000 Subject: [rancid] CVS commands In-Reply-To: References: <490FA8C6CC4CDA44A7D3E449D75BF1F716BAF1@exchanger.efellows.bg> Message-ID: <490FA8C6CC4CDA44A7D3E449D75BF1F716C0F0@exchanger.efellows.bg> Nope, thanks for the help ! Best Regards, Adrian Dimitrov -----Original Message----- From: Lee [mailto:ler762 at gmail.com] Sent: Thursday, October 13, 2016 8:06 PM To: Adrian A. Dimitrov Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] CVS commands On 10/13/16, Adrian A. Dimitrov wrote: > Hello Team , > > I have a simple question. I am exploring the features of rancid and I > want to play a little bit with the cvs commands. > > I tried something like this. > > cvs log 10.11.10.1 > > cvs diff -u -r 1.2 -r 1.3 10.11.10.1 > > Both gave me the following error: > > cvs diff: No CVSROOT specified! Please use the `-d' option cvs [diff > aborted]: or set the CVSROOT environment variable. > > Checked the manual and the rancid.conf file and it seems that the CVS > path is set as it should be (file attached in txt format), but still I > get the output above. BASEDIR=/usr/local/rancid/var LIST_OF_GROUPS="eFellows" Did you do a cd /usr/local/rancid/var/eFellows/configs first? Regards, Lee From Robert.Remsik at colostate.edu Mon Oct 17 18:48:53 2016 From: Robert.Remsik at colostate.edu (Remsik,Robert) Date: Mon, 17 Oct 2016 18:48:53 +0000 Subject: [rancid] Rancid not backing up some HP switches but can login to them Message-ID: Hello! I'm having trouble getting rancid to backup some HP switches. Debugging as per the FAQ with NOPIPE=yes set, the hlogin file appears to have no issues logging in running commands. It's only when I add the 't' tag to save the file does hlogin fail to login and time out. I'm guessing it's something to do with the formatting of the prompt (as other HP switches do work), but I don't know what the difference would be. I'm hoping you guys can help point out what the issue might be. Thank you again for your swift and responsive emails! Robert, (I apologize for the length of this email - expect is a little verbose! :)) ----- .:: Base SSH ::. rancid at truck:~/bin$ ssh LOGIN at x.y.121.146 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com LOGIN at x.y.121.146's password: .:: Test using the ?t flag (it does not work) ::. rancid at truck:~/bin$ ./hlogin -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 Error: TIMEOUT reached .:: Test using the ?t flag and the ?d flag (it does not work) ::. rancid at truck:~/bin$ ./hlogin -d -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {64435} 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 exp4) 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 exp4) 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 exp4) 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: timed out Error: TIMEOUT reached .:: Test using the ?d flag (it works) ::. rancid at truck:~/bin$ ./hlogin -d -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {64443} 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 exp4) 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 exp4) 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 exp4) 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 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com LOGIN at x.y.121.146's password: expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "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 "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "unknown host\r"? no expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "([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=yes expect: set expect_out(0,string) "password:" expect: set expect_out(1,string) "password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\" send: sending "PASSWORD\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating 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 exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no expect: does " \r\r\n" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (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) "exp4" expect: set expect_out(buffer) " \r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no ProCurve J8773A Switch 4208vl Software revision L.11.34 Copyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continue expect: does "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Uses expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGE" send: sending " " to { exp4 } expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no SWITCH-HOSTNAME# expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=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) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# " send: sending "\r" to { exp4 } send: sending "\r" to { exp4 } 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 exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no SWITCH-HOSTNAME# expect: does "\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\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) "exp4" expect: set expect_out(buffer) "\r\r\n" expect: continuing expect expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) 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) "SWITCH-HOSTNAME# " expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# " send: sending "no page\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster. expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no expect: does "\r\r\n" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no SWITCH-HOSTNAME# expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" send: sending "system shell session set more off\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no no page SWITCH-HOSTNAME# expect: does " no page\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " no page\r\r\n" expect: continuing expect expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" send: sending "show ip\r" to { exp4 } Gate keeper glob pattern for '^[^ *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is '*Xxxxxxxxxyy*'. Activating booster. Gate keeper glob pattern for '^[^ ]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? ' is '*Xxxxxxxxxyy* '. Activating booster. Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '[^ ]*Press to cont[^ ]*' is '*Press to cont*'. Activating booster. Gate keeper glob pattern for '^<-+ More -+>[^ ]*' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^-+ MORE -+[^ ]*' is '* MORE *'. Activating booster. Gate keeper glob pattern for '^-More-[^ -]*' is '-More-*'. Activating booster. Gate keeper glob pattern for '^--More--[^ -]*' is '--More--*'. Activating booster. Gate keeper glob pattern for '^---+More---+[^ ]*' is '--*More--*'. Activating booster. Gate keeper glob pattern for +' is ''. Not usable, disabling the performance booster. expect: does " " (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no "[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no "\u0008+"? (No Gate, RE only) gate=yes re=no expect: does " system she" (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no "[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no "\u0008+"? (No Gate, RE only) gate=yes re=no expect: does " system shell session set more off\r\r\nInvalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Defaulto "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " system shell session set more off\r\r\n" system shell session set more off expect: continuing expect expect: does "Invalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age o "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Invalid input: system\r\n\r" Invalid input: system expect: continuing expect expect: does "SWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffixs expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" SWITCH-HOSTNAME#send: sending "logout\r" to { exp4 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } Gate keeper glob pattern for 'Do you want to save (the )?current configuration' is 'Do you want to save *current configuration'. Activating booster. Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+>' is '*>'. Activating booster. expect: does " show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " show ip\r\r\n\r\n\r" expect: continuing expect expect: does " Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Internet (IP) Service\r\n\r\r\n\r" expect: continuing expect expect: does " IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " IP Routing : Disabled\r\n\r\r\n\r" expect: continuing expect expect: does " Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Default Gateway : x.y.0.1 \r\n\r" expect: continuing expect expect: does " Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Default TTL : 64 \r\n\r" expect: continuing expect expect: does " Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + -------o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Arp Age : 20 \r\n\r" expect: continuing expect expect: does " Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ----------o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Domain Suffix : \r\n\r" expect: continuing expect expect: does " DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " DNS server : \r\n\r\r\n\r" expect: continuing expect expect: does " VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configurationo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " VLAN | IP Config IP Address Subnet Mask \r\n\r" expect: continuing expect expect: does " ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " ------------ + ---------- --------------- ---------------\r\n\r" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no disabled | Disabled MGMT | Manual x.y.121.146 255.255.0.0 Subnet_121 | Manual p.q.121.146 255.255.255.0 ups | Disabled cardkey | Disabled SWITCH-HOSTNAME# logout expect: does " disabled | Disabled \r\n\r MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disableo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " disabled | Disabled \r\n\r" expect: continuing expect expect: does " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rXxxxxxxxxyyo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r" expect: continuing expect expect: does " Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you wano "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r" expect: continuing expect expect: does " ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to saveo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " ups | Disabled \r\n\r" expect: continuing expect expect: does " cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " cardkey | Disabled \r\n\r" expect: continuing expect expect: does " \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\n\r\r\n\r" expect: continuing expect expect: does "SWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: does "SWITCH-HOSTNAME# logout\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\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) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# logout\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no Do you want to log out [y/n]? expect: does "Do you want to log out [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? yes expect: set expect_out(0,string) "Do you want to log out" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Do you want to log out" send: sending "y\r" to { exp4 } expect: continuing expect expect: does " [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no y expect: does " [y/n]? y" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: does " [y/n]? y\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\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) "exp4" expect: set expect_out(buffer) " [y/n]? y\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no Connection to x.y.121.146 closed. expect: does "Connection to x.y.121.146 closed.\r\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Connection to x.y.121.146 closed.\r\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: read eof expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "" rancid at truck:~/bin$ Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From doug.hughes at keystonenap.com Mon Oct 17 19:15:55 2016 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Mon, 17 Oct 2016 15:15:55 -0400 Subject: [rancid] Rancid not backing up some HP switches but can login to them In-Reply-To: References: Message-ID: <802ba97c-3800-b742-379c-f6785ac94b42@keystonenap.com> Your prompt is LOGIN at ... but the regexp is looking for Login Is your username really 'LOGIN' ? ssh seems to think so. I'd check your .cloginrc to make sure the username is correct. On 10/17/2016 2:48 PM, Remsik,Robert wrote: > Hello! > > I'm having trouble getting rancid to backup some HP switches. > Debugging as per the FAQ with NOPIPE=yes set, the hlogin file appears > to have no issues logging in running commands. It's only when I add > the 't' tag to save the file does hlogin fail to login and time out. > I'm guessing it's something to do with the formatting of the prompt > (as other HP switches do work), but I don't know what the difference > would be. I'm hoping you guys can help point out what the issue might be. > > Thank you again for your swift and responsive emails! > Robert, > > (I apologize for the length of this email - expect is a little > verbose! :)) > ----- > > .:: Base SSH ::. > > rancid at truck:~/bin$ sshLOGIN at x.y.121.146 > > We'd like to keep you up to date about: > > * Software feature updates > > * New product announcements > > * Special events > > > Please register your products now at: www.ProCurve.com > > > LOGIN at x.y.121.146 's password: > > .:: Test using the ?t flag (it does not work) ::. > > rancid at truck:~/bin$ ./hlogin -t test -c 'show ip' -f > /opt/rancid-3.4.99/.cloginrc x.y.121.146 > > x.y.121.146 > > spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 > > Error: TIMEOUT reached > > .:: Test using the ?t flag and the ?d flag (it does not work) ::. > > rancid at truck:~/bin$ ./hlogin -d -t test -c 'show ip' -f > /opt/rancid-3.4.99/.cloginrcx.y.121.146 > > x.y.121.146 > > spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 > > parent: waiting for sync byte > > parent: telling child to go ahead > > parent: now unsynchronized from child > > spawn: returns {64435} > > 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|username|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 exp4) 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 exp4) 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 exp4) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? gate=no > > "([Uu]sername|[Ll]ogin|username|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: timed out > > Error: TIMEOUT reached > > .:: Test using the ?dflag (it works) ::. > > rancid at truck:~/bin$ ./hlogin -d -c 'show ip' -f > /opt/rancid-3.4.99/.cloginrcx.y.121.146 > > x.y.121.146 > > spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 > > parent: waiting for sync byte > > parent: telling child to go ahead > > parent: now unsynchronized from child > > spawn: returns {64443} > > 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|username|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 exp4) 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 exp4) 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 exp4) match regular expression "Enter > passphrase.*: "? Gate "Enter passphrase*: "? gate=no > > "([Uu]sername|[Ll]ogin|username|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 > > We'd like to keep you up to date about: > > * Software feature updates > > * New product announcements > > * Special events > > Please register your products now at: www.ProCurve.com > > > LOGIN at x.y.121.146 's password: > > expect: does "We'd like to keep you up to date about:\r\r\n * > Software feature updates\r\r\n * New product announcements\r\r\n * > Special events\r\r\n\r\r\nPlease register your products now at: > www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o > > > "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 "We'd like to keep you up to date about:\r\r\n * > Software feature updates\r\r\n * New product announcements\r\r\n * > Special events\r\r\n\r\r\nPlease register your products now at: > www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o > > > "unknown host\r"? no > > expect: does "We'd like to keep you up to date about:\r\r\n * > Software feature updates\r\r\n * New product announcements\r\r\n * > Special events\r\r\n\r\r\nPlease register your products now at: > www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o > > > "([Uu]sername|[Ll]ogin|username|Login Name):"? (No Gate, RE only) > gate=yes re=no > > "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "password:" > > expect: set expect_out(1,string) "password" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "We'd like to keep you up to date > about:\r\r\n * Software feature updates\r\r\n * New product > announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your > products now at: www.ProCurve.com\r\r\ > " > > send: sending "PASSWORD\r" to { exp4 } > > Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating > 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 exp4) match glob pattern "Press any key to > continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > > expect: does " \r\r\n" (spawn_id exp4) match glob pattern "Press any > key to continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "(>|#) ?"? (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) "exp4" > > expect: set expect_out(buffer) " \r\r\n" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match glob pattern "Press any key to > continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > > ProCurve J8773A Switch 4208vl > > Software revision L.11.34 > > Copyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved. > > RESTRICTED RIGHTS LEGEND > > Use, duplication, or disclosure by the Government is subject to > restrictions > > as set forth in subdivision (b) (3) (ii) of the Rights in Technical > Data and > > Computer Software clause at 52.227-7013. > > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 > > Press any key to continue > > expect: does "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision > L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. > All Rights Reserved.\r\n\r\r\n\r RESTRICTED > RIGHTS LEGEND\r\n\r\r\n\r Uses > > expect: set expect_out(0,string) "Press any key to continue" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "ProCurve J8773A Switch > 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) > 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r > RESTRICTED RIGHTS LEGE" > > send: sending " " to { exp4 } > > expect: continuing expect > > expect: does "" (spawn_id exp4) match glob pattern "Press any key to > continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=no > > "(>|#) ?"? (No Gate, RE only) gate=yes re=no > > "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no > > SWITCH-HOSTNAME# > > expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match glob pattern > "Press any key to continue"? no > > "[Pp]assword:"? Gate "?assword:"? gate=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) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME# " > > send: sending "\r" to { exp4 } > > send: sending "\r" to { exp4 } > > 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 exp4) match regular expression "[\r\n]+"? > (No Gate, RE only) gate=yes re=no > > "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no > > SWITCH-HOSTNAME# > > expect: does "\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular > expression "[\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) "exp4" > > expect: set expect_out(buffer) "\r\r\n" > > expect: continuing expect > > expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) 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) "SWITCH-HOSTNAME# " > > expect: set expect_out(1,string) "#" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME# " > > send: sending "no page\r" to { exp4 } > > Gate keeper glob pattern for '[ > > ]+' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for > 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. > Activating booster. > > expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? > (No Gate, RE only) gate=yes re=no > > "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "Xxxxxxxxxyy*"? gate=no > > expect: does "\r\r\n" (spawn_id exp4) match regular expression > "[\n\r]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\r\n" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "\r\r\n" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? > (No Gate, RE only) gate=yes re=no > > "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "Xxxxxxxxxyy*"? gate=no > > SWITCH-HOSTNAME# > > expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular > expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no > > "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "Xxxxxxxxxyy*"? gate=yes re=yes > > expect: set expect_out(0,string) "SWITCH-HOSTNAME#" > > expect: set expect_out(1,string) "yyyy" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME#" > > send: sending "system shell session set more off\r" to { exp4 } > > Gate keeper glob pattern for '[ > > ]+' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for > 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. > Activating booster. > > expect: does " " (spawn_id exp4) match regular expression "[\n\r]+"? > (No Gate, RE only) gate=yes re=no > > "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "Xxxxxxxxxyy*"? gate=no > > no page > > SWITCH-HOSTNAME# > > expect: does " no page\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match > regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\r\n" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " no page\r\r\n" > > expect: continuing expect > > expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular > expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no > > "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "Xxxxxxxxxyy*"? gate=yes re=yes > > expect: set expect_out(0,string) "SWITCH-HOSTNAME#" > > expect: set expect_out(1,string) "yyyy" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME#" > > send: sending "show ip\r" to { exp4 } > > Gate keeper glob pattern for '^[^ > > *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is > '*Xxxxxxxxxyy*'. Activating booster. > > Gate keeper glob pattern for '^[^ > > ]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? ' is '*Xxxxxxxxxyy* > '. Activating booster. > > Gate keeper glob pattern for '[ > > ]+' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for '[^ > > ]*Press to cont[^ > > ]*' is '*Press to cont*'. Activating booster. > > Gate keeper glob pattern for '^<-+ More -+>[^ > > ]*' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for '^-+ MORE -+[^ > > ]*' is '* MORE *'. Activating booster. > > Gate keeper glob pattern for '^-More-[^ > > -]*' is '-More-*'. Activating booster. > > Gate keeper glob pattern for '^--More--[^ > > -]*' is '--More--*'. Activating booster. > > Gate keeper glob pattern for '^---+More---+[^ > > ]*' is '--*More--*'. Activating booster. > > Gate keeper glob pattern for +' is ''. Not usable, disabling the > performance booster. > > expect: does " " (spawn_id exp4) match regular expression "^[^\n\r > *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "*Xxxxxxxxxyy*"? gate=no > > "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate > "*Xxxxxxxxxyy* "? gate=no > > "[\n\r]+"? (No Gate, RE only) gate=yes re=no > > "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to > cont*"? gate=no > > "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no > > "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no > > "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no > > "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no > > "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no > > "\u0008+"? (No Gate, RE only) gate=yes re=no > > expect: does " system she" (spawn_id exp4) match regular expression > "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate > "*Xxxxxxxxxyy*"? gate=no > > "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate > "*Xxxxxxxxxyy* "? gate=no > > "[\n\r]+"? (No Gate, RE only) gate=yes re=no > > "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to > cont*"? gate=no > > "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no > > "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no > > "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no > > "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no > > "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no > > "\u0008+"? (No Gate, RE only) gate=yes re=no > > expect: does " system shell session set more off\r\r\nInvalid input: > system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) > Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default > Gateway : x.y.0.1 \r\n\r Defaulto > > "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate > "*Xxxxxxxxxyy* "? gate=yes re=no > > "[\n\r]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\r\n" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " system shell session set more off\r\r\n" > > system shell session set more off > > expect: continuing expect > > expect: does "Invalid input: system\r\n\rSWITCH-HOSTNAME# show > ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : > Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default > TTL : 64 \r\n\r Arp Age o > > "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate > "*Xxxxxxxxxyy* "? gate=yes re=no > > "[\n\r]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "Invalid input: system\r\n\r" > > Invalid input: system > > expect: continuing expect > > expect: does "SWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) > Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default > Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age > : 20 \r\n\r Domain Suffixs > > expect: set expect_out(0,string) "SWITCH-HOSTNAME#" > > expect: set expect_out(1,string) "yyyy" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME#" > > SWITCH-HOSTNAME#send: sending "logout\r" to { exp4 human_write: > avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 > > } > > Gate keeper glob pattern for 'Do you want to save (the )?current > configuration' is 'Do you want to save *current configuration'. > Activating booster. > > Gate keeper glob pattern for '[ > > ]+' is ''. Not usable, disabling the performance booster. > > Gate keeper glob pattern for '^.+>' is '*>'. Activating booster. > > expect: does " show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r > IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 > \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r > Domain Suffix : o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\r\n\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " show ip\r\r\n\r\n\r" > > expect: continuing expect > > expect: does " Internet (IP) Service\r\n\r\r\n\r IP Routing : > Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default > TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : > \o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Internet (IP) Service\r\n\r\r\n\r" > > expect: continuing expect > > expect: does " IP Routing : Disabled\r\n\r\r\n\r Default Gateway : > x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : > 20 \r\n\r Domain Suffix : \r\n\r > DNS server : o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " IP Routing : Disabled\r\n\r\r\n\r" > > expect: continuing expect > > expect: does " Default Gateway : x.y.0.1 \r\n\r Default TTL > : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : > \r\n\r DNS server : > \r\n\r\r\n\r VLAN | o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Default Gateway : x.y.0.1 \r\n\r" > > expect: continuing expect > > expect: does " Default TTL : 64 \r\n\r Arp Age : 20 > \r\n\r Domain Suffix : \r\n\r DNS > server : \r\n\r\r\n\r VLAN | IP Config > IP Address Subnet Mask o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Default TTL : 64 \r\n\r" > > expect: continuing expect > > expect: does " Arp Age : 20 \r\n\r Domain Suffix : > \r\n\r DNS server : > \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask > \r\n\r ------------ + -------o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Arp Age : 20 \r\n\r" > > expect: continuing expect > > expect: does " Domain Suffix : \r\n\r > DNS server : \r\n\r\r\n\r VLAN | IP > Config IP Address Subnet Mask \r\n\r ------------ + > ---------- --------------- ----------o > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Domain Suffix : > \r\n\r" > > expect: continuing expect > > expect: does " DNS server : \r\n\r\r\n\r VLAN > | IP Config IP Address Subnet Mask \r\n\r ------------ > + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) > match regular expression "Do > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " DNS server : > \r\n\r\r\n\r" > > expect: continuing expect > > expect: does " VLAN | IP Config IP Address Subnet Mask > \r\n\r ------------ + ---------- --------------- > ---------------\r\n\r" (spawn_id exp4) match regular expression "Do > you want to save (the )?current configurationo > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " VLAN | IP Config IP Address > Subnet Mask \r\n\r" > > expect: continuing expect > > expect: does " ------------ + ---------- --------------- > ---------------\r\n\r" (spawn_id exp4) match regular expression "Do > you want to save (the )?current configuration"? Gate "Do you want to > save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " ------------ + ---------- > --------------- ---------------\r\n\r" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "Do you want > to save (the )?current configuration"? Gate "Do you want to save > *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > disabled | Disabled > > MGMT | Manual x.y.121.146 255.255.0.0 > > Subnet_121 | Manual p.q.121.146 255.255.255.0 > > ups | Disabled > > cardkey | Disabled > > SWITCH-HOSTNAME# logout > > expect: does " disabled | Disabled \r\n\r MGMT | Manual > x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual > p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r > cardkey | Disableo > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " disabled | Disabled \r\n\r" > > expect: continuing expect > > expect: does " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r > Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups > | Disabled \r\n\r cardkey | Disabled \r\n\r > \r\n\r\r\n\rXxxxxxxxxyyo > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " MGMT | Manual x.y.121.146 > 255.255.0.0 \r\n\r" > > expect: continuing expect > > expect: does " Subnet_121 | Manual p.q.121.146 255.255.255.0 > \r\n\r ups | Disabled \r\n\r cardkey | Disabled > \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match > regular expression "Do you wano > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " Subnet_121 | Manual p.q.121.146 > 255.255.255.0 \r\n\r" > > expect: continuing expect > > expect: does " ups | Disabled \r\n\r cardkey | > Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) > match regular expression "Do you want to save (the )?current > configuration"? Gate "Do you want to saveo > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " ups | Disabled \r\n\r" > > expect: continuing expect > > expect: does " cardkey | Disabled \r\n\r > \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular > expression "Do you want to save (the )?current configuration"? Gate > "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " cardkey | Disabled \r\n\r" > > expect: continuing expect > > expect: does " \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) > match regular expression "Do you want to save (the )?current > configuration"? Gate "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\n\r\r\n\r" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) " \r\n\r\r\n\r" > > expect: continuing expect > > expect: does "SWITCH-HOSTNAME# logout" (spawn_id exp4) match regular > expression "Do you want to save (the )?current configuration"? Gate > "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > expect: does "SWITCH-HOSTNAME# logout\r\r\n" (spawn_id exp4) match > regular expression "Do you want to save (the )?current configuration"? > Gate "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\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) "exp4" > > expect: set expect_out(buffer) "SWITCH-HOSTNAME# logout\r\r\n" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "Do you want > to save (the )?current configuration"? Gate "Do you want to save > *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > Do you want to log out [y/n]? > > expect: does "Do you want to log out [y/n]? " (spawn_id exp4) match > regular expression "Do you want to save (the )?current configuration"? > Gate "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? yes > > expect: set expect_out(0,string) "Do you want to log out" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "Do you want to log out" > > send: sending "y\r" to { exp4 } > > expect: continuing expect > > expect: does " [y/n]? " (spawn_id exp4) match regular expression "Do > you want to save (the )?current configuration"? Gate "Do you want to > save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > y > > expect: does " [y/n]? y" (spawn_id exp4) match regular expression "Do > you want to save (the )?current configuration"? Gate "Do you want to > save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > expect: does " [y/n]? y\r\r\n" (spawn_id exp4) match regular > expression "Do you want to save (the )?current configuration"? Gate > "Do you want to save *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\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) "exp4" > > expect: set expect_out(buffer) " [y/n]? y\r\r\n" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "Do you want > to save (the )?current configuration"? Gate "Do you want to save > *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > Connection to x.y.121.146 closed. > > expect: does "Connection to x.y.121.146 closed.\r\r\r\n" > (spawn_id exp4) match regular expression "Do you want to save (the > )?current configuration"? Gate "Do you want to save *current > configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=yes > > expect: set expect_out(0,string) "\r\r\r\n" > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "Connection to x.y.121.146 closed.\r\r\r\n" > > expect: continuing expect > > expect: does "" (spawn_id exp4) match regular expression "Do you want > to save (the )?current configuration"? Gate "Do you want to save > *current configuration"? gate=no > > "Do you wish to save "? no > > "Do you want to log out"? no > > "[\r\n]+"? (No Gate, RE only) gate=yes re=no > > "^.+>"? Gate "*>"? gate=no > > expect: read eof > > expect: set expect_out(spawn_id) "exp4" > > expect: set expect_out(buffer) "" > > rancid at truck:~/bin$ > > Robert Remsik > > ACNS > > Desk Phone: 970 491 7120 > > Robert.Remsik at colostate.edu > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: From Robert.Remsik at colostate.edu Tue Oct 18 14:28:46 2016 From: Robert.Remsik at colostate.edu (Remsik,Robert) Date: Tue, 18 Oct 2016 14:28:46 +0000 Subject: [rancid] Rancid not backing up some HP switches but can login to them In-Reply-To: <802ba97c-3800-b742-379c-f6785ac94b42@keystonenap.com> References: , <802ba97c-3800-b742-379c-f6785ac94b42@keystonenap.com> Message-ID: No, it's not actually LOGIN, I have to scrub the output a little to remove identifying information, IPs, Logins, Passwords before posting it online. *checks* The .cloginrc file has the correct login information. Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu ________________________________ From: Rancid-discuss on behalf of Doug Hughes Sent: Monday, October 17, 2016 1:15 PM To: rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid not backing up some HP switches but can login to them Your prompt is LOGIN at ... but the regexp is looking for Login Is your username really 'LOGIN' ? ssh seems to think so. I'd check your .cloginrc to make sure the username is correct. On 10/17/2016 2:48 PM, Remsik,Robert wrote: Hello! I'm having trouble getting rancid to backup some HP switches. Debugging as per the FAQ with NOPIPE=yes set, the hlogin file appears to have no issues logging in running commands. It's only when I add the 't' tag to save the file does hlogin fail to login and time out. I'm guessing it's something to do with the formatting of the prompt (as other HP switches do work), but I don't know what the difference would be. I'm hoping you guys can help point out what the issue might be. Thank you again for your swift and responsive emails! Robert, (I apologize for the length of this email - expect is a little verbose! :)) ----- .:: Base SSH ::. rancid at truck:~/bin$ ssh LOGIN at x.y.121.146 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com LOGIN at x.y.121.146's password: .:: Test using the ?t flag (it does not work) ::. rancid at truck:~/bin$ ./hlogin -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 Error: TIMEOUT reached .:: Test using the ?t flag and the ?d flag (it does not work) ::. rancid at truck:~/bin$ ./hlogin -d -t test -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {64435} 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 exp4) 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 exp4) 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 exp4) 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: timed out Error: TIMEOUT reached .:: Test using the ?d flag (it works) ::. rancid at truck:~/bin$ ./hlogin -d -c 'show ip' -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 x.y.121.146 spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {64443} 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 exp4) 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 exp4) 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 exp4) 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 We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com LOGIN at x.y.121.146's password: expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "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 "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "unknown host\r"? no expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o "([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=yes expect: set expect_out(0,string) "password:" expect: set expect_out(1,string) "password" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\" send: sending "PASSWORD\r" to { exp4 } Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. Activating 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 exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no expect: does " \r\r\n" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (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) "exp4" expect: set expect_out(buffer) " \r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no ProCurve J8773A Switch 4208vl Software revision L.11.34 Copyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and Computer Software clause at 52.227-7013. HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 Press any key to continue expect: does "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Uses expect: set expect_out(0,string) "Press any key to continue" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r RESTRICTED RIGHTS LEGE" send: sending " " to { exp4 } expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=no "(>|#) ?"? (No Gate, RE only) gate=yes re=no "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no SWITCH-HOSTNAME# expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match glob pattern "Press any key to continue"? no "[Pp]assword:"? Gate "?assword:"? gate=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) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# " send: sending "\r" to { exp4 } send: sending "\r" to { exp4 } 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 exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no SWITCH-HOSTNAME# expect: does "\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\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) "exp4" expect: set expect_out(buffer) "\r\r\n" expect: continuing expect expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) 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) "SWITCH-HOSTNAME# " expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# " send: sending "no page\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster. expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no expect: does "\r\r\n" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no SWITCH-HOSTNAME# expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" send: sending "system shell session set more off\r" to { exp4 } Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. Activating booster. expect: does " " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=no no page SWITCH-HOSTNAME# expect: does " no page\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " no page\r\r\n" expect: continuing expect expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "Xxxxxxxxxyy*"? gate=yes re=yes expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" send: sending "show ip\r" to { exp4 } Gate keeper glob pattern for '^[^ *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is '*Xxxxxxxxxyy*'. Activating booster. Gate keeper glob pattern for '^[^ ]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? ' is '*Xxxxxxxxxyy* '. Activating booster. Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '[^ ]*Press to cont[^ ]*' is '*Press to cont*'. Activating booster. Gate keeper glob pattern for '^<-+ More -+>[^ ]*' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^-+ MORE -+[^ ]*' is '* MORE *'. Activating booster. Gate keeper glob pattern for '^-More-[^ -]*' is '-More-*'. Activating booster. Gate keeper glob pattern for '^--More--[^ -]*' is '--More--*'. Activating booster. Gate keeper glob pattern for '^---+More---+[^ ]*' is '--*More--*'. Activating booster. Gate keeper glob pattern for +' is ''. Not usable, disabling the performance booster. expect: does " " (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no "[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no "\u0008+"? (No Gate, RE only) gate=yes re=no expect: does " system she" (spawn_id exp4) match regular expression "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate "*Xxxxxxxxxyy*"? gate=no "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=no "[\n\r]+"? (No Gate, RE only) gate=yes re=no "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to cont*"? gate=no "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no "\u0008+"? (No Gate, RE only) gate=yes re=no expect: does " system shell session set more off\r\r\nInvalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Defaulto "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " system shell session set more off\r\r\n" system shell session set more off expect: continuing expect expect: does "Invalid input: system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age o "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate "*Xxxxxxxxxyy* "? gate=yes re=no "[\n\r]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Invalid input: system\r\n\r" Invalid input: system expect: continuing expect expect: does "SWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffixs expect: set expect_out(0,string) "SWITCH-HOSTNAME#" expect: set expect_out(1,string) "yyyy" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME#" SWITCH-HOSTNAME#send: sending "logout\r" to { exp4 human_write: avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 } Gate keeper glob pattern for 'Do you want to save (the )?current configuration' is 'Do you want to save *current configuration'. Activating booster. Gate keeper glob pattern for '[ ]+' is ''. Not usable, disabling the performance booster. Gate keeper glob pattern for '^.+>' is '*>'. Activating booster. expect: does " show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " show ip\r\r\n\r\n\r" expect: continuing expect expect: does " Internet (IP) Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Internet (IP) Service\r\n\r\r\n\r" expect: continuing expect expect: does " IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " IP Routing : Disabled\r\n\r\r\n\r" expect: continuing expect expect: does " Default Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Default Gateway : x.y.0.1 \r\n\r" expect: continuing expect expect: does " Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Default TTL : 64 \r\n\r" expect: continuing expect expect: does " Arp Age : 20 \r\n\r Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + -------o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Arp Age : 20 \r\n\r" expect: continuing expect expect: does " Domain Suffix : \r\n\r DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ----------o "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Domain Suffix : \r\n\r" expect: continuing expect expect: does " DNS server : \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " DNS server : \r\n\r\r\n\r" expect: continuing expect expect: does " VLAN | IP Config IP Address Subnet Mask \r\n\r ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configurationo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " VLAN | IP Config IP Address Subnet Mask \r\n\r" expect: continuing expect expect: does " ------------ + ---------- --------------- ---------------\r\n\r" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " ------------ + ---------- --------------- ---------------\r\n\r" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no disabled | Disabled MGMT | Manual x.y.121.146 255.255.0.0 Subnet_121 | Manual p.q.121.146 255.255.255.0 ups | Disabled cardkey | Disabled SWITCH-HOSTNAME# logout expect: does " disabled | Disabled \r\n\r MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disableo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " disabled | Disabled \r\n\r" expect: continuing expect expect: does " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rXxxxxxxxxyyo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r" expect: continuing expect expect: does " Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you wano "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r" expect: continuing expect expect: does " ups | Disabled \r\n\r cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to saveo "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " ups | Disabled \r\n\r" expect: continuing expect expect: does " cardkey | Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " cardkey | Disabled \r\n\r" expect: continuing expect expect: does " \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\n\r\r\n\r" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\n\r\r\n\r" expect: continuing expect expect: does "SWITCH-HOSTNAME# logout" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: does "SWITCH-HOSTNAME# logout\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\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) "exp4" expect: set expect_out(buffer) "SWITCH-HOSTNAME# logout\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no Do you want to log out [y/n]? expect: does "Do you want to log out [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? yes expect: set expect_out(0,string) "Do you want to log out" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Do you want to log out" send: sending "y\r" to { exp4 } expect: continuing expect expect: does " [y/n]? " (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no y expect: does " [y/n]? y" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: does " [y/n]? y\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\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) "exp4" expect: set expect_out(buffer) " [y/n]? y\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no Connection to x.y.121.146 closed. expect: does "Connection to x.y.121.146 closed.\r\r\r\n" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Connection to x.y.121.146 closed.\r\r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "Do you want to save (the )?current configuration"? Gate "Do you want to save *current configuration"? gate=no "Do you wish to save "? no "Do you want to log out"? no "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^.+>"? Gate "*>"? gate=no expect: read eof expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "" rancid at truck:~/bin$ Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) [cid:part10.0DF86FD4.6B12183F at keystonenap.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: keystone-nap.png URL: From doug.hughes at keystonenap.com Tue Oct 18 16:01:04 2016 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Tue, 18 Oct 2016 12:01:04 -0400 Subject: [rancid] Rancid not backing up some HP switches but can login to them In-Reply-To: References: <802ba97c-3800-b742-379c-f6785ac94b42@keystonenap.com> Message-ID: <12ee6c12-b6ea-deda-15dc-1f651276248d@keystonenap.com> Ok, that makes sense, and I looked through the expect on the second test and it looks reasonable. What happens if you do: bin/rancid -t hp -d -f /opt/rancid-3.4.99/.cloginrcx.y.121.146 On 10/18/2016 10:28 AM, Remsik,Robert wrote: > > No, it's not actually LOGIN, I have to scrub the output a little to > remove identifying information, IPs, Logins, Passwords before posting > it online. > > > *checks* > > The .cloginrc file has the correct login information. > > > > > Robert Remsik > > ACNS > > Desk Phone: 970 491 7120 > > Robert.Remsik at colostate.edu > > > > ------------------------------------------------------------------------ > *From:* Rancid-discuss on > behalf of Doug Hughes > *Sent:* Monday, October 17, 2016 1:15 PM > *To:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Rancid not backing up some HP switches but can > login to them > > Your prompt is LOGIN at ... but the regexp is looking for Login > > > Is your username really 'LOGIN' ? ssh seems to think so. I'd check > your .cloginrc to make sure the username is correct. > > > > On 10/17/2016 2:48 PM, Remsik,Robert wrote: >> Hello! >> >> I'm having trouble getting rancid to backup some HP switches. >> Debugging as per the FAQ with NOPIPE=yes set, the hlogin file >> appears to have no issues logging in running commands. It's only >> when I add the 't' tag to save the file does hlogin fail to login and >> time out. I'm guessing it's something to do with the formatting of >> the prompt (as other HP switches do work), but I don't know what the >> difference would be. I'm hoping you guys can help point out what the >> issue might be. >> >> Thank you again for your swift and responsive emails! >> Robert, >> >> (I apologize for the length of this email - expect is a little >> verbose! :)) >> ----- >> >> .:: Base SSH ::. >> >> rancid at truck:~/bin$ sshLOGIN at x.y.121.146 >> >> We'd like to keep you up to date about: >> >> * Software feature updates >> >> * New product announcements >> >> * Special events >> >> >> Please register your products now at: www.ProCurve.com >> >> >> LOGIN at x.y.121.146 's password: >> >> .:: Test using the ?t flag (it does not work) ::. >> >> rancid at truck:~/bin$ ./hlogin -t test -c 'show ip' -f >> /opt/rancid-3.4.99/.cloginrc x.y.121.146 >> >> x.y.121.146 >> >> spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 >> >> Error: TIMEOUT reached >> >> .:: Test using the ?t flag and the ?d flag (it does not work) ::. >> >> rancid at truck:~/bin$ ./hlogin -d -t test -c 'show ip' -f >> /opt/rancid-3.4.99/.cloginrcx.y.121.146 >> >> x.y.121.146 >> >> spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 >> >> parent: waiting for sync byte >> >> parent: telling child to go ahead >> >> parent: now unsynchronized from child >> >> spawn: returns {64435} >> >> 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|username|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 exp4) 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 exp4) 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 exp4) match regular expression "Enter >> passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> >> "([Uu]sername|[Ll]ogin|username|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: timed out >> >> Error: TIMEOUT reached >> >> .:: Test using the ?dflag (it works) ::. >> >> rancid at truck:~/bin$ ./hlogin -d -c 'show ip' -f >> /opt/rancid-3.4.99/.cloginrcx.y.121.146 >> >> x.y.121.146 >> >> spawn /opt/rancid-3.4.99/bin/hpuifilter -- ssh -x -l LOGIN x.y.121.146 >> >> parent: waiting for sync byte >> >> parent: telling child to go ahead >> >> parent: now unsynchronized from child >> >> spawn: returns {64443} >> >> 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|username|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 exp4) 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 exp4) 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 exp4) match regular expression "Enter >> passphrase.*: "? Gate "Enter passphrase*: "? gate=no >> >> "([Uu]sername|[Ll]ogin|username|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 >> >> We'd like to keep you up to date about: >> >> * Software feature updates >> >> * New product announcements >> >> * Special events >> >> Please register your products now at: www.ProCurve.com >> >> >> LOGIN at x.y.121.146 's password: >> >> expect: does "We'd like to keep you up to date about:\r\r\n * >> Software feature updates\r\r\n * New product announcements\r\r\n * >> Special events\r\r\n\r\r\nPlease register your products now at: >> www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o >> >> >> "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 "We'd like to keep you up to date about:\r\r\n * >> Software feature updates\r\r\n * New product announcements\r\r\n * >> Special events\r\r\n\r\r\nPlease register your products now at: >> www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o >> >> >> "unknown host\r"? no >> >> expect: does "We'd like to keep you up to date about:\r\r\n * >> Software feature updates\r\r\n * New product announcements\r\r\n * >> Special events\r\r\n\r\r\nPlease register your products now at: >> www.ProCurve.com\r\r\n\r\r\nLOGIN at 10.o >> >> >> "([Uu]sername|[Ll]ogin|username|Login Name):"? (No Gate, RE only) >> gate=yes re=no >> >> "([Pp]assword|passwd):"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "password:" >> >> expect: set expect_out(1,string) "password" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "We'd like to keep you up to date >> about:\r\r\n * Software feature updates\r\r\n * New product >> announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your >> products now at: www.ProCurve.com\r\r\ >> " >> >> send: sending "PASSWORD\r" to { exp4 } >> >> Gate keeper glob pattern for '[Pp]assword:' is '?assword:'. >> Activating 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 exp4) match glob pattern "Press any key to >> continue"? no >> >> "[Pp]assword:"? Gate "?assword:"? gate=no >> >> "(>|#) ?"? (No Gate, RE only) gate=yes re=no >> >> "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> expect: does " \r\r\n" (spawn_id exp4) match glob pattern "Press any >> key to continue"? no >> >> "[Pp]assword:"? Gate "?assword:"? gate=no >> >> "(>|#) ?"? (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) "exp4" >> >> expect: set expect_out(buffer) " \r\r\n" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match glob pattern "Press any key to >> continue"? no >> >> "[Pp]assword:"? Gate "?assword:"? gate=no >> >> "(>|#) ?"? (No Gate, RE only) gate=yes re=no >> >> "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> ProCurve J8773A Switch 4208vl >> >> Software revision L.11.34 >> >> Copyright (C) 1991-2011 Hewlett-Packard Co. All Rights Reserved. >> >> RESTRICTED RIGHTS LEGEND >> >> Use, duplication, or disclosure by the Government is subject to >> restrictions >> >> as set forth in subdivision (b) (3) (ii) of the Rights in Technical >> Data and >> >> Computer Software clause at 52.227-7013. >> >> HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303 >> >> Press any key to continue >> >> expect: does "ProCurve J8773A Switch 4208vl\r\r\n\rSoftware revision >> L.11.34\r\r\n\r\r\r\n\rCopyright (C) 1991-2011 Hewlett-Packard Co. >> All Rights Reserved.\r\n\r\r\n\r >> RESTRICTED RIGHTS LEGEND\r\n\r\r\n\r Uses >> >> expect: set expect_out(0,string) "Press any key to continue" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "ProCurve J8773A Switch >> 4208vl\r\r\n\rSoftware revision L.11.34\r\r\n\r\r\r\n\rCopyright (C) >> 1991-2011 Hewlett-Packard Co. All Rights Reserved.\r\n\r\r\n\r >> RESTRICTED RIGHTS LEGE" >> >> send: sending " " to { exp4 } >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match glob pattern "Press any key to >> continue"? no >> >> "[Pp]assword:"? Gate "?assword:"? gate=no >> >> "(>|#) ?"? (No Gate, RE only) gate=yes re=no >> >> "[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> SWITCH-HOSTNAME# >> >> expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match glob pattern >> "Press any key to continue"? no >> >> "[Pp]assword:"? Gate "?assword:"? gate=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) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME# " >> >> send: sending "\r" to { exp4 } >> >> send: sending "\r" to { exp4 } >> >> 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 exp4) match regular expression "[\r\n]+"? >> (No Gate, RE only) gate=yes re=no >> >> "^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no >> >> SWITCH-HOSTNAME# >> >> expect: does "\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match regular >> expression "[\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) "exp4" >> >> expect: set expect_out(buffer) "\r\r\n" >> >> expect: continuing expect >> >> expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) 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) "SWITCH-HOSTNAME# " >> >> expect: set expect_out(1,string) "#" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME# " >> >> send: sending "no page\r" to { exp4 } >> >> Gate keeper glob pattern for '[ >> >> ]+' is ''. Not usable, disabling the performance booster. >> >> Gate keeper glob pattern for >> 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. >> Activating booster. >> >> expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? >> (No Gate, RE only) gate=yes re=no >> >> "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "Xxxxxxxxxyy*"? gate=no >> >> expect: does "\r\r\n" (spawn_id exp4) match regular expression >> "[\n\r]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\r\n" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "\r\r\n" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match regular expression "[\n\r]+"? >> (No Gate, RE only) gate=yes re=no >> >> "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "Xxxxxxxxxyy*"? gate=no >> >> SWITCH-HOSTNAME# >> >> expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular >> expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no >> >> "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "Xxxxxxxxxyy*"? gate=yes re=yes >> >> expect: set expect_out(0,string) "SWITCH-HOSTNAME#" >> >> expect: set expect_out(1,string) "yyyy" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME#" >> >> send: sending "system shell session set more off\r" to { exp4 } >> >> Gate keeper glob pattern for '[ >> >> ]+' is ''. Not usable, disabling the performance booster. >> >> Gate keeper glob pattern for >> 'Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is 'Xxxxxxxxxyy*'. >> Activating booster. >> >> expect: does " " (spawn_id exp4) match regular expression "[\n\r]+"? >> (No Gate, RE only) gate=yes re=no >> >> "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "Xxxxxxxxxyy*"? gate=no >> >> no page >> >> SWITCH-HOSTNAME# >> >> expect: does " no page\r\r\nSWITCH-HOSTNAME# " (spawn_id exp4) match >> regular expression "[\n\r]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\r\n" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " no page\r\r\n" >> >> expect: continuing expect >> >> expect: does "SWITCH-HOSTNAME# " (spawn_id exp4) match regular >> expression "[\n\r]+"? (No Gate, RE only) gate=yes re=no >> >> "Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "Xxxxxxxxxyy*"? gate=yes re=yes >> >> expect: set expect_out(0,string) "SWITCH-HOSTNAME#" >> >> expect: set expect_out(1,string) "yyyy" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME#" >> >> send: sending "show ip\r" to { exp4 } >> >> Gate keeper glob pattern for '^[^ >> >> *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?' is >> '*Xxxxxxxxxyy*'. Activating booster. >> >> Gate keeper glob pattern for '^[^ >> >> ]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? ' is >> '*Xxxxxxxxxyy* '. Activating booster. >> >> Gate keeper glob pattern for '[ >> >> ]+' is ''. Not usable, disabling the performance booster. >> >> Gate keeper glob pattern for '[^ >> >> ]*Press to cont[^ >> >> ]*' is '*Press to cont*'. Activating booster. >> >> Gate keeper glob pattern for '^<-+ More -+>[^ >> >> ]*' is ''. Not usable, disabling the performance booster. >> >> Gate keeper glob pattern for '^-+ MORE -+[^ >> >> ]*' is '* MORE *'. Activating booster. >> >> Gate keeper glob pattern for '^-More-[^ >> >> -]*' is '-More-*'. Activating booster. >> >> Gate keeper glob pattern for '^--More--[^ >> >> -]*' is '--More--*'. Activating booster. >> >> Gate keeper glob pattern for '^---+More---+[^ >> >> ]*' is '--*More--*'. Activating booster. >> >> Gate keeper glob pattern for +' is ''. Not usable, disabling the >> performance booster. >> >> expect: does " " (spawn_id exp4) match regular expression "^[^\n\r >> *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "*Xxxxxxxxxyy*"? gate=no >> >> "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate >> "*Xxxxxxxxxyy* "? gate=no >> >> "[\n\r]+"? (No Gate, RE only) gate=yes re=no >> >> "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to >> cont*"? gate=no >> >> "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no >> >> "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no >> >> "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no >> >> "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no >> >> "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no >> >> "\u0008+"? (No Gate, RE only) gate=yes re=no >> >> expect: does " system she" (spawn_id exp4) match regular expression >> "^[^\n\r *]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?"? Gate >> "*Xxxxxxxxxyy*"? gate=no >> >> "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate >> "*Xxxxxxxxxyy* "? gate=no >> >> "[\n\r]+"? (No Gate, RE only) gate=yes re=no >> >> "[^\r\n]*Press to cont[^\r\n]*"? Gate "*Press to >> cont*"? gate=no >> >> "^<-+ More -+>[^\n\r]*"? (No Gate, RE only) gate=yes re=no >> >> "^-+ MORE -+[^\n\r]*"? Gate "* MORE *"? gate=no >> >> "^-More-[^\n\r-]*"? Gate "-More-*"? gate=no >> >> "^--More--[^\n\r-]*"? Gate "--More--*"? gate=no >> >> "^---+More---+[^\n\r]*"? Gate "--*More--*"? gate=no >> >> "\u0008+"? (No Gate, RE only) gate=yes re=no >> >> expect: does " system shell session set more off\r\r\nInvalid input: >> system\r\n\rSWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) >> Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default >> Gateway : x.y.0.1 \r\n\r Defaulto >> >> "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate >> "*Xxxxxxxxxyy* "? gate=yes re=no >> >> "[\n\r]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\r\n" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " system shell session set more off\r\r\n" >> >> system shell session set more off >> >> expect: continuing expect >> >> expect: does "Invalid input: system\r\n\rSWITCH-HOSTNAME# show >> ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r IP Routing : >> Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default >> TTL : 64 \r\n\r Arp Age o >> >> "^[^\n\r]*Xxxxxxxxxyy([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))? "? Gate >> "*Xxxxxxxxxyy* "? gate=yes re=no >> >> "[\n\r]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "Invalid input: system\r\n\r" >> >> Invalid input: system >> >> expect: continuing expect >> >> expect: does "SWITCH-HOSTNAME# show ip\r\r\n\r\n\r Internet (IP) >> Service\r\n\r\r\n\r IP Routing : Disabled\r\n\r\r\n\r Default >> Gateway : x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age >> : 20 \r\n\r Domain Suffixs >> >> expect: set expect_out(0,string) "SWITCH-HOSTNAME#" >> >> expect: set expect_out(1,string) "yyyy" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME#" >> >> SWITCH-HOSTNAME#send: sending "logout\r" to { exp4 human_write: >> avg_arr=0.200000/0.100000 1/shape=2.500000 min=0.200000 max=1.000000 >> >> } >> >> Gate keeper glob pattern for 'Do you want to save (the )?current >> configuration' is 'Do you want to save *current configuration'. >> Activating booster. >> >> Gate keeper glob pattern for '[ >> >> ]+' is ''. Not usable, disabling the performance booster. >> >> Gate keeper glob pattern for '^.+>' is '*>'. Activating booster. >> >> expect: does " show ip\r\r\n\r\n\r Internet (IP) Service\r\n\r\r\n\r >> IP Routing : Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 >> \r\n\r Default TTL : 64 \r\n\r Arp Age : 20 \r\n\r >> Domain Suffix : o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\r\n\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " show ip\r\r\n\r\n\r" >> >> expect: continuing expect >> >> expect: does " Internet (IP) Service\r\n\r\r\n\r IP Routing : >> Disabled\r\n\r\r\n\r Default Gateway : x.y.0.1 \r\n\r Default >> TTL : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix >> : \o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Internet (IP) Service\r\n\r\r\n\r" >> >> expect: continuing expect >> >> expect: does " IP Routing : Disabled\r\n\r\r\n\r Default Gateway : >> x.y.0.1 \r\n\r Default TTL : 64 \r\n\r Arp Age : >> 20 \r\n\r Domain Suffix : \r\n\r >> DNS server : o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " IP Routing : Disabled\r\n\r\r\n\r" >> >> expect: continuing expect >> >> expect: does " Default Gateway : x.y.0.1 \r\n\r Default TTL >> : 64 \r\n\r Arp Age : 20 \r\n\r Domain Suffix : >> \r\n\r DNS server : >> \r\n\r\r\n\r VLAN | o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Default Gateway : x.y.0.1 \r\n\r" >> >> expect: continuing expect >> >> expect: does " Default TTL : 64 \r\n\r Arp Age : 20 >> \r\n\r Domain Suffix : \r\n\r DNS >> server : \r\n\r\r\n\r VLAN | IP Config >> IP Address Subnet Mask o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Default TTL : 64 \r\n\r" >> >> expect: continuing expect >> >> expect: does " Arp Age : 20 \r\n\r Domain Suffix : >> \r\n\r DNS server : >> \r\n\r\r\n\r VLAN | IP Config IP Address Subnet Mask >> \r\n\r ------------ + -------o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Arp Age : 20 \r\n\r" >> >> expect: continuing expect >> >> expect: does " Domain Suffix : >> \r\n\r DNS server : \r\n\r\r\n\r VLAN | >> IP Config IP Address Subnet Mask \r\n\r ------------ + >> ---------- --------------- ----------o >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Domain Suffix : >> \r\n\r" >> >> expect: continuing expect >> >> expect: does " DNS server : \r\n\r\r\n\r VLAN >> | IP Config IP Address Subnet Mask \r\n\r >> ------------ + ---------- --------------- ---------------\r\n\r" >> (spawn_id exp4) match regular expression "Do >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " DNS server : >> \r\n\r\r\n\r" >> >> expect: continuing expect >> >> expect: does " VLAN | IP Config IP Address Subnet Mask >> \r\n\r ------------ + ---------- --------------- >> ---------------\r\n\r" (spawn_id exp4) match regular expression "Do >> you want to save (the )?current configurationo >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " VLAN | IP Config IP >> Address Subnet Mask \r\n\r" >> >> expect: continuing expect >> >> expect: does " ------------ + ---------- --------------- >> ---------------\r\n\r" (spawn_id exp4) match regular expression "Do >> you want to save (the )?current configuration"? Gate "Do you want to >> save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " ------------ + ---------- >> --------------- ---------------\r\n\r" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match regular expression "Do you want >> to save (the )?current configuration"? Gate "Do you want to save >> *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> disabled | Disabled >> >> MGMT | Manual x.y.121.146 255.255.0.0 >> >> Subnet_121 | Manual p.q.121.146 255.255.255.0 >> >> ups | Disabled >> >> cardkey | Disabled >> >> SWITCH-HOSTNAME# logout >> >> expect: does " disabled | Disabled \r\n\r MGMT | Manual >> x.y.121.146 255.255.0.0 \r\n\r Subnet_121 | Manual >> p.q.121.146 255.255.255.0 \r\n\r ups | Disabled \r\n\r >> cardkey | Disableo >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " disabled | Disabled \r\n\r" >> >> expect: continuing expect >> >> expect: does " MGMT | Manual x.y.121.146 255.255.0.0 \r\n\r >> Subnet_121 | Manual p.q.121.146 255.255.255.0 \r\n\r ups >> | Disabled \r\n\r cardkey | Disabled \r\n\r >> \r\n\r\r\n\rXxxxxxxxxyyo >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " MGMT | Manual x.y.121.146 >> 255.255.0.0 \r\n\r" >> >> expect: continuing expect >> >> expect: does " Subnet_121 | Manual p.q.121.146 255.255.255.0 >> \r\n\r ups | Disabled \r\n\r cardkey | Disabled >> \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match >> regular expression "Do you wano >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " Subnet_121 | Manual p.q.121.146 >> 255.255.255.0 \r\n\r" >> >> expect: continuing expect >> >> expect: does " ups | Disabled \r\n\r cardkey | >> Disabled \r\n\r \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) >> match regular expression "Do you want to save (the )?current >> configuration"? Gate "Do you want to saveo >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " ups | Disabled \r\n\r" >> >> expect: continuing expect >> >> expect: does " cardkey | Disabled \r\n\r >> \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) match regular >> expression "Do you want to save (the )?current configuration"? Gate >> "Do you want to save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " cardkey | Disabled \r\n\r" >> >> expect: continuing expect >> >> expect: does " \r\n\r\r\n\rSWITCH-HOSTNAME# logout" (spawn_id exp4) >> match regular expression "Do you want to save (the )?current >> configuration"? Gate "Do you want to save *current configuration"? >> gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\n\r\r\n\r" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) " \r\n\r\r\n\r" >> >> expect: continuing expect >> >> expect: does "SWITCH-HOSTNAME# logout" (spawn_id exp4) match regular >> expression "Do you want to save (the )?current configuration"? Gate >> "Do you want to save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> expect: does "SWITCH-HOSTNAME# logout\r\r\n" (spawn_id exp4) match >> regular expression "Do you want to save (the )?current >> configuration"? Gate "Do you want to save *current configuration"? >> gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\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) "exp4" >> >> expect: set expect_out(buffer) "SWITCH-HOSTNAME# logout\r\r\n" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match regular expression "Do you want >> to save (the )?current configuration"? Gate "Do you want to save >> *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> Do you want to log out [y/n]? >> >> expect: does "Do you want to log out [y/n]? " (spawn_id exp4) match >> regular expression "Do you want to save (the )?current >> configuration"? Gate "Do you want to save *current configuration"? >> gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? yes >> >> expect: set expect_out(0,string) "Do you want to log out" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "Do you want to log out" >> >> send: sending "y\r" to { exp4 } >> >> expect: continuing expect >> >> expect: does " [y/n]? " (spawn_id exp4) match regular expression "Do >> you want to save (the )?current configuration"? Gate "Do you want to >> save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> y >> >> expect: does " [y/n]? y" (spawn_id exp4) match regular expression "Do >> you want to save (the )?current configuration"? Gate "Do you want to >> save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> expect: does " [y/n]? y\r\r\n" (spawn_id exp4) match regular >> expression "Do you want to save (the )?current configuration"? Gate >> "Do you want to save *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\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) "exp4" >> >> expect: set expect_out(buffer) " [y/n]? y\r\r\n" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match regular expression "Do you want >> to save (the )?current configuration"? Gate "Do you want to save >> *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> Connection to x.y.121.146 closed. >> >> expect: does "Connection to x.y.121.146 closed.\r\r\r\n" >> (spawn_id exp4) match regular expression "Do you want to save (the >> )?current configuration"? Gate "Do you want to save *current >> configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=yes >> >> expect: set expect_out(0,string) "\r\r\r\n" >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "Connection to x.y.121.146 >> closed.\r\r\r\n" >> >> expect: continuing expect >> >> expect: does "" (spawn_id exp4) match regular expression "Do you want >> to save (the )?current configuration"? Gate "Do you want to save >> *current configuration"? gate=no >> >> "Do you wish to save "? no >> >> "Do you want to log out"? no >> >> "[\r\n]+"? (No Gate, RE only) gate=yes re=no >> >> "^.+>"? Gate "*>"? gate=no >> >> expect: read eof >> >> expect: set expect_out(spawn_id) "exp4" >> >> expect: set expect_out(buffer) "" >> >> rancid at truck:~/bin$ >> >> Robert Remsik >> >> ACNS >> >> Desk Phone: 970 491 7120 >> >> Robert.Remsik at colostate.edu >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- > Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) > -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3476 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: From Robert.Remsik at colostate.edu Tue Oct 18 16:35:09 2016 From: Robert.Remsik at colostate.edu (Remsik,Robert) Date: Tue, 18 Oct 2016 16:35:09 +0000 Subject: [rancid] Rancid not backing up some HP switches but can login to them In-Reply-To: <12ee6c12-b6ea-deda-15dc-1f651276248d@keystonenap.com> References: <802ba97c-3800-b742-379c-f6785ac94b42@keystonenap.com> , <12ee6c12-b6ea-deda-15dc-1f651276248d@keystonenap.com> Message-ID: Okay, with the proper -d and -t flags it writes the files and from there can process some of the commands. But it seems like the .raw file isn't beeing written consistently. Different iterations return different results for 'write term' Once hlogin is fed a timeout it will login just fine. hrancid (which calls hlogin) seems to be missing a 'hit' on 'write term'. Looking at the .raw file it seems like the section of code can't find the correct line to start, and/or the .raw file isn't grabbing the data fast enough or the switch is spitting data out faster than expect can handle it. From 3 different .raw captures I'm getting 3 different results. Is there a way to synchronize so expect can grab what it needs to? .:: Running the command ::. rancid at truck:~/bin$ hrancid -d x.y.121.146 executing hlogin -t 90 -c"show version;show flash;show system-information;show system information;show module;show stack;show tech transceivers;show config files;show config status;write term" x.y.121.146 PROMPT MATCH: HOSTNAME-121146[#>] HIT COMMAND:HOSTNAME-121146# show version In ShowVersion: HOSTNAME-121146# show version HIT COMMAND:HOSTNAME-121146# show flash In ShowFlash: HOSTNAME-121146# show flash HIT COMMAND:HOSTNAME-121146# show system-information In ShowSystem: HOSTNAME-121146# show system-information HIT COMMAND:HOSTNAME-121146# show system information In ShowSystem: HOSTNAME-121146# show system information HIT COMMAND:HOSTNAME-121146# show module In ShowModule: HOSTNAME-121146# show module HIT COMMAND:HOSTNAME-121146# show stack In ShowStack: HOSTNAME-121146# show stack HIT COMMAND:HOSTNAME-121146# show tech transceivers In ShowTransceivers: HOSTNAME-121146# show tech transceivers HIT COMMAND:HOSTNAME-121146# show config files In ShowConfigFiles: HOSTNAME-121146# show config files HIT COMMAND:HOSTNAME-121146# show config status In ShowConfigStatus: HOSTNAME-121146# show config status rancid at truck:~/bin$ Adm2201f-121146# show config status Running configuration is same as the startup configuration. .:: (1) ::. HOSTNAME-121146# show config status Running configuration is same as the startup configuration. HOSTNAME-121146#timesync sntp sntp unicast logging x.y.201.199 logging x.y.111.172 snmp-server community "XXX" Operator snmp-server community "YYY" Unrestricted snmp-server host x.y.201.190 "XXX" Not-INFO .:: (2) ::. HOSTNAME-121146# show config status Running configuration is same as the startup configuration. HOSTNAME-121146#sntp unicast logging x.y.201.199 logging x.y.111.172 .:: (3) ::. HOSTNAME-121146#module 6 type J8765B module 7 type J8765B interface A24 name "To_XYZ-121142_port_A12" exit interface B1 name "SUPERSECRET" exit interface B3 name "SUPERSECRET" exit ip default-gateway x.y.0.1 sntp server x.y.100.10 timesync sntp sntp unicast logging x.y.201.199 logging x.y.111.172 .:: Write Term in hrancid ::. # This routine processes a "write term" sub WriteTerm { print STDERR " In WriteTerm: $_" if ($debug); while () { tr/\015//d; if (/$prompt\s*(exit|logout)\s*$/i) { $clean_run=1; last; } last if(/^$prompt/); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session s/^<-+ More -+>\s*//; s/^$/;/; # skip the crap /^running configuration:/i && next; # filter out any RCS/CVS tags to avoid confusing local CVS storage s/\$(Revision|Id):/ $1:/; /^; (\S+) configuration editor;/i && ProcessHistory("COMMENTS","keysort","A0",";Chassis type: $1\n") && ProcessHistory("","","",";\n;Running config file:\n$_") && next; (... truncated to try to avoid spamming people further ...) Robert Remsik ACNS Desk Phone: 970 491 7120 Robert.Remsik at colostate.edu ________________________________ From: Doug Hughes Sent: Tuesday, October 18, 2016 10:01 AM To: Remsik,Robert; rancid-discuss at shrubbery.net Subject: Re: [rancid] Rancid not backing up some HP switches but can login to them Ok, that makes sense, and I looked through the expect on the second test and it looks reasonable. What happens if you do: bin/rancid -t hp -d -f /opt/rancid-3.4.99/.cloginrc x.y.121.146 (... truncating rest of message due to size limitations ...) -------------- next part -------------- An HTML attachment was scrubbed... URL: