From mark at verio.net Tue Jul 16 15:40:31 2002 From: mark at verio.net (Mark Schaefer) Date: Tue, 16 Jul 2002 17:40:31 +0200 (CEST) Subject: foundry flogin problem Message-ID: Seems the default Foundry username login prompt on telnet is not consistent... and through this I have noticed that the flogin script does not acknowledge the "userprompt" directive from the .cloginrc file. I modified the regexp that looks for the login prompt in flogin to work in both (that I have found) cases: (line 385 of flogin which was packaged with 2.2.1) Was: -re "(Username:|login:|Name :)" { Now: -re "(Username|login|Name).*:" { This works on both cases I have tested (offending prompts below): Foundry FastIron with code 07.1.23T13, 07.1.09T13 "Please Enter Login Name : " Foundry BigIron with code 07.2.11bT53 "Please Enter Login Name: " Yeah, there is probably a more elegant regexp to use. Mark From heas at shrubbery.net Tue Jul 16 17:53:53 2002 From: heas at shrubbery.net (john heasley) Date: Tue, 16 Jul 2002 10:53:53 -0700 Subject: foundry flogin problem In-Reply-To: ; from mark@verio.net on Tue, Jul 16, 2002 at 05:40:31PM +0200 References: Message-ID: <20020716105353.I16765@shrubbery.net> could you try ftp://ftp.shrubbery.net/outgoing/flogin.in ? it should fix the userprompt problem and will be packaged with 2.2.2 (RSN). Tue, Jul 16, 2002 at 05:40:31PM +0200, Mark Schaefer: > > Seems the default Foundry username login prompt on telnet is not consistent... and through this I have noticed that the flogin script does not acknowledge the "userprompt" directive from the .cloginrc file. > > I modified the regexp that looks for the login prompt in flogin to work in both (that I have found) cases: > > (line 385 of flogin which was packaged with 2.2.1) > > Was: > -re "(Username:|login:|Name :)" { > > Now: > -re "(Username|login|Name).*:" { > > This works on both cases I have tested (offending prompts below): > > Foundry FastIron with code 07.1.23T13, 07.1.09T13 > "Please Enter Login Name : " > > Foundry BigIron with code 07.2.11bT53 > "Please Enter Login Name: " > > > Yeah, there is probably a more elegant regexp to use. > > Mark > From mark at verio.net Tue Jul 16 18:49:42 2002 From: mark at verio.net (Mark Schaefer) Date: Tue, 16 Jul 2002 18:49:42 +0000 (GMT) Subject: foundry flogin problem In-Reply-To: <20020716105353.I16765@shrubbery.net> Message-ID: Works beautifully. Replacing my sick hack immediately :-) Mark On Tue, 16 Jul 2002, john heasley wrote: > could you try ftp://ftp.shrubbery.net/outgoing/flogin.in ? it should > fix the userprompt problem and will be packaged with 2.2.2 (RSN). > > Tue, Jul 16, 2002 at 05:40:31PM +0200, Mark Schaefer: > > > > Seems the default Foundry username login prompt on telnet is not consistent... and through this I have noticed that the flogin script does not acknowledge the "userprompt" directive from the .cloginrc file. > > > > I modified the regexp that looks for the login prompt in flogin to work in both (that I have found) cases: > > > > (line 385 of flogin which was packaged with 2.2.1) > > > > Was: > > -re "(Username:|login:|Name :)" { > > > > Now: > > -re "(Username|login|Name).*:" { > > > > This works on both cases I have tested (offending prompts below): > > > > Foundry FastIron with code 07.1.23T13, 07.1.09T13 > > "Please Enter Login Name : " > > > > Foundry BigIron with code 07.2.11bT53 > > "Please Enter Login Name: " > > > > > > Yeah, there is probably a more elegant regexp to use. > > > > Mark > > > From mark at verio.net Tue Jul 16 19:02:01 2002 From: mark at verio.net (Mark Schaefer) Date: Tue, 16 Jul 2002 19:02:01 +0000 (GMT) Subject: foundry flogin problem In-Reply-To: Message-ID: Whoops, spoke too soon. It now works on the newer code, but no longer on the old. Mark On Tue, 16 Jul 2002, Mark Schaefer wrote: > > Works beautifully. Replacing my sick hack immediately :-) > > Mark > > On Tue, 16 Jul 2002, john heasley wrote: > > > could you try ftp://ftp.shrubbery.net/outgoing/flogin.in ? it should > > fix the userprompt problem and will be packaged with 2.2.2 (RSN). > > > > Tue, Jul 16, 2002 at 05:40:31PM +0200, Mark Schaefer: > > > > > > Seems the default Foundry username login prompt on telnet is not consistent... and through this I have noticed that the flogin script does not acknowledge the "userprompt" directive from the .cloginrc file. > > > > > > I modified the regexp that looks for the login prompt in flogin to work in both (that I have found) cases: > > > > > > (line 385 of flogin which was packaged with 2.2.1) > > > > > > Was: > > > -re "(Username:|login:|Name :)" { > > > > > > Now: > > > -re "(Username|login|Name).*:" { > > > > > > This works on both cases I have tested (offending prompts below): > > > > > > Foundry FastIron with code 07.1.23T13, 07.1.09T13 > > > "Please Enter Login Name : " > > > > > > Foundry BigIron with code 07.2.11bT53 > > > "Please Enter Login Name: " > > > > > > > > > Yeah, there is probably a more elegant regexp to use. > > > > > > Mark > > > > > > > From cheechew at hotmail.com Sun Jul 28 09:59:54 2002 From: cheechew at hotmail.com (cheechew) Date: Sun, 28 Jul 2002 17:59:54 +0800 Subject: where is router config stored Message-ID: Where can I find the router config from either from do-diffs or clogin, or rancid after execution. It rancid capable of doing router config backup and monitor router config changes. Thanks From heas at shrubbery.net Mon Jul 29 00:39:03 2002 From: heas at shrubbery.net (john heasley) Date: Mon, 29 Jul 2002 00:39:03 +0000 Subject: where is router config stored In-Reply-To: ; from cheechew@hotmail.com on Sun, Jul 28, 2002 at 05:59:54PM +0800 References: Message-ID: <20020729003903.C24649@shrubbery.net> Sun, Jul 28, 2002 at 05:59:54PM +0800, cheechew: > Where can I find the router config from either from do-diffs or clogin, or > rancid after execution. It rancid capable of doing router config backup and > monitor router config changes. Thanks the collected configurations/data are save in files, named whatever you entered in the router.db file for a device name, under /usr/local/rancid//configs and are placed in CVS. see the rancid_intro man page and the CVS portion of the FAQ (http://www.shrubbery.net/rancid/FAQ).