From david at prophecy.net.nz Sun May 2 19:58:02 2010 From: david at prophecy.net.nz (David Young) Date: Mon, 03 May 2010 07:58:02 +1200 Subject: [rancid] Re: Has anybody solved the extreme "unsaved changes" bug? In-Reply-To: <20100422234954.GV24599@shrubbery.net> References: <4BD0CBF6.7010203@prophecy.net.nz> <20100422234954.GV24599@shrubbery.net> Message-ID: <4BDDD94A.6080201@prophecy.net.nz> Hi John, We are using rancid 2.3.3, with expect 5.43 I believe this is the problem: I run "xrancid -d myswitch.local": executing clogin -t 90 -c "show version;show memory;show diag;show switch;show slot;show configuration detail;show configuration" myswitch.local couldn't compile regular expression pattern: quantifier operand invalid while executing "expect -nobrace -re {* myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }" invoked from within "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 21) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) I tried to run the two prompt variations within expect itself, not sure if the second result is what I _should_ be getting, but certainly the asterisk makes a difference: expect1.2> expect -nobrace -re {* myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re "\[\n\r]+" { exp_continue } couldn't compile regular expression pattern: quantifier operand invalid while executing "expect -nobrace -re {* myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re "\[\n\r]+" { exp_continue }" expect1.3> expect -nobrace -re{ myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re "\[\n\r]+" { exp_continue } +> I have attached the output of clogin -d -c 'show version' myswitch.local (I have obfuscated the switch name and IP). It seems to die abruptly, the last line outputted is "expect: set expect_out(buffer) "\tmirroring multin" Thanks for the assistance! David On 23/04/10 11:49 AM, john heasley wrote: > Fri, Apr 23, 2010 at 10:21:42AM +1200, David Young: >> Hi all, >> >> I refer to this issue: >> >> http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003614.html >> >> It seems that running RANCID against an extreme switch puts it into an >> "unsaved" state (maybe because of the clipaging?), and so while the >> first run is successful, any subsequent runs fail because of the >> asterisk in the prompt... >> >> i.e.: >> >>>> "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} >> {} -re {[ >>>> ^M]+} { exp_continue }" > > this should work; it used to. we have one for testing but its not up yet. > send the o/p of clogin -d -s 'show version' host >log 2>&1. that should > identify the issue. > > i'd first make sure that you're using expect >= 5.43 and rancid 2.3.3. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rancid_log.txt Url: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100503/7d82a1e1/attachment.txt From diego.ercolani at ssis.sm Mon May 3 09:47:51 2010 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Mon, 3 May 2010 11:47:51 +0200 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <1364650802.1471272878924771.JavaMail.pekka.suomi@wippies.fi> References: <1364650802.1471272878924771.JavaMail.pekka.suomi@wippies.fi> Message-ID: <201005031147.51724.diego.ercolani@ssis.sm> Hi Pekka, please subscribe to rancid-discuss to actively partecipate to rancid community. In data luned? 3 maggio 2010 11:28:44, hai scritto: > "Hi diego, > > I have installed rancid 2.3.3 on debian (lenny). I wanted to backup a file > "/home/psuomi/data.cvs" (this is an example) from a remote linux machine. > I have found your scripts on rancid discussion forum which describs the > solution of my problem. I have followed your instruction and scripts but > could not backup the above mention file. I could login to the remote > machine and getting the below result. > > remlinux:~# export HISTIGNORE="&:cat *:exit*:export *";export LANG=C > remlinux:~# > remlinux:~# do you mean you can issue: llogin remlinux ? So it should work Have you configured the .clogin file with something like: add method remlinux ssh add user remlinux root add password remlinux password password add autoenable remlinux 1 add backupfile remlinux /home/psuomi/data.cvs (and obviously.... data.cvs must be a FILE not a directory, if you want to expand functionality, you should do) > > Am I missing something? I would highly appreciate you reply. > > Thanks in advance > > regards, > > Pekka S From ron.whitney at doitbest.com Mon May 3 20:21:12 2010 From: ron.whitney at doitbest.com (Ron Whitney) Date: Mon, 3 May 2010 16:21:12 -0400 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <201005031147.51724.diego.ercolani@ssis.sm> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6503EE7745@EXCHANGE1.ntserv.doitbestcorp.com> I've tried to use the lrancid scripts as well without luck. Eventually, I gave up. Pekka's question prompted me to try again. Here are my details: Relevant portion of .clogon: add method groucho {ssh} add user groucho {rwhitney} add password groucho {password} {password} add autoenable groucho 1 add backupfile groucho /var/named/p/mydoitbest.com Added to rancid-fe: "linux" => "lrancid llogin", Finally, router.db: Groucho:linux:up When I try to test, it logs on but issues no commands. Eventually (10 seconds in this case), it times out: [rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho groucho spawn ssh -c 3des -x -l rwhitney groucho rwhitney at groucho's password: Last login: Mon May 3 16:07:33 2010 from 12-162-57-170.doitbest.com groucho 16:14:19 rwhitney > Error: TIMEOUT reached I get similar results testing lrancid: [rancid at harpo ~]$ lrancid -d groucho executing llogin -t 90 -c"BackupFiles" groucho groucho llogin error: Error: TIMEOUT reached groucho llogin error: Error: TIMEOUT reached groucho: missed cmd(s): BackupFiles groucho: missed cmd(s): BackupFiles groucho: End of run not found groucho: End of run not found # Can anyone point me in the right direction? RANCID is working on several Cisco switches and routers and a couple of Dell switches. So I know the base functionality is working. Thanks in advnace. Ron > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of > Diego Ercolani > Sent: Monday, May 03, 2010 05:48 > To: Pekka Suomi; Rancid Mailing List > Subject: [rancid] Re: lrancid / llogin > > > Hi Pekka, > please subscribe to rancid-discuss to actively partecipate to rancid > community. > > In data luned? 3 maggio 2010 11:28:44, hai scritto: > > "Hi diego, > > > > I have installed rancid 2.3.3 on debian (lenny). I wanted > to backup a > > file "/home/psuomi/data.cvs" (this is an example) from a > remote linux > > machine. I have found your scripts on rancid discussion forum which > > describs the solution of my problem. I have followed your > instruction > > and scripts but could not backup the above mention file. I > could login > > to the remote machine and getting the below result. > > > > remlinux:~# export HISTIGNORE="&:cat *:exit*:export > *";export LANG=C > > remlinux:~# remlinux:~# > > do you mean you can issue: llogin remlinux ? > So it should work > Have you configured the .clogin file with something like: > > add method remlinux ssh > add user remlinux root > add password remlinux password password > add autoenable remlinux 1 > add backupfile remlinux /home/psuomi/data.cvs > > (and obviously.... data.cvs must be a FILE not a directory, > if you want to > expand functionality, you should do) > > > > > > Am I missing something? I would highly appreciate you reply. > > > > Thanks in advance > > > > regards, > > > > Pekka S > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From marty at supine.com Tue May 4 05:56:37 2010 From: marty at supine.com (Martin Barry) Date: Tue, 4 May 2010 07:56:37 +0200 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6503EE7745@EXCHANGE1.ntserv.doitbestcorp.com> References: <201005031147.51724.diego.ercolani@ssis.sm> <1FD6BFAE6EA54341821D01FB8E617B6503EE7745@EXCHANGE1.ntserv.doitbestcorp.com> Message-ID: <20100504055637.GA24159@merboo.mamista.net> $quoted_author = "Ron Whitney" ; > > When I try to test, it logs on but issues no commands. Eventually (10 seconds in this case), it times out: > > [rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho > groucho > spawn ssh -c 3des -x -l rwhitney groucho > rwhitney at groucho's password: > Last login: Mon May 3 16:07:33 2010 from 12-162-57-170.doitbest.com > groucho 16:14:19 rwhitney > > Error: TIMEOUT reached It's looking for an "enable" prompt and not finding one. Try with -noenable cheers Marty From diego.ercolani at ssis.sm Tue May 4 07:13:50 2010 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Tue, 4 May 2010 09:13:50 +0200 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6503EE7745@EXCHANGE1.ntserv.doitbestcorp.com> References: <1FD6BFAE6EA54341821D01FB8E617B6503EE7745@EXCHANGE1.ntserv.doitbestcorp.com> Message-ID: <201005040913.50463.diego.ercolani@ssis.sm> You have to verify that: 1. the user has a regular shell: ssh whitney at groucho give you a regular shell? 2. can you read the FILE you are trying to read ? (cat /var/named/p/mydoitbest.com) 3. my script waits for the root prompt (#) so the timeout is related to this issue. If you want to use a normal user you have to modify the script (llogin) to accomplish this.... I use it in a production environment connecting to root user of debian/suse workstations..... so It should work as is. If you need more functionality you should implement it and release to the community. This is opensource. Hope This Help Diego In data luned? 3 maggio 2010 22:21:12, Ron Whitney ha scritto: : > I've tried to use the lrancid scripts as well without luck. Eventually, I > gave up. Pekka's question prompted me to try again. Here are my details: > > Relevant portion of .clogon: > > add method groucho {ssh} > add user groucho {rwhitney} > add password groucho {password} {password} > add autoenable groucho 1 > add backupfile groucho /var/named/p/mydoitbest.com > > Added to rancid-fe: > > "linux" => "lrancid llogin", > > Finally, router.db: > > Groucho:linux:up > > When I try to test, it logs on but issues no commands. Eventually (10 > seconds in this case), it times out: > > [rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho > groucho > spawn ssh -c 3des -x -l rwhitney groucho > rwhitney at groucho's password: > Last login: Mon May 3 16:07:33 2010 from 12-162-57-170.doitbest.com > groucho 16:14:19 rwhitney > > Error: TIMEOUT reached > > I get similar results testing lrancid: > > [rancid at harpo ~]$ lrancid -d groucho > executing llogin -t 90 -c"BackupFiles" groucho > groucho llogin error: Error: TIMEOUT reached > groucho llogin error: Error: TIMEOUT reached > groucho: missed cmd(s): BackupFiles > groucho: missed cmd(s): BackupFiles > groucho: End of run not found > groucho: End of run not found > # > > Can anyone point me in the right direction? RANCID is working on several > Cisco switches and routers and a couple of Dell switches. So I know the > base functionality is working. Thanks in advnace. > > > Ron > From ron.whitney at doitbest.com Tue May 4 20:48:06 2010 From: ron.whitney at doitbest.com (Ron Whitney) Date: Tue, 4 May 2010 16:48:06 -0400 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <201005040913.50463.diego.ercolani@ssis.sm> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6503EE7753@EXCHANGE1.ntserv.doitbestcorp.com> Thanks for the reply. I agree, it doesn't like the prompt. The Linux host in question is a RedHat box. The prompts given are as follows: groucho 16:18:46 rwhitney > (Regular user) groucho 16:17:08 SU > (root user) (The machine running RANCID is Fedora which has a "[rancid at harpo bin]$ " prompt.) As a test, I made some very crude changes to llogin and got past the prompt issue. However, I'm now receiving the following: [rancid at harpo bin]$ lrancid -d groucho executing llogin -t 90 -c"BackupFiles" groucho bad option "-nocase": must be -exact, -glob, -regexp, or -- while executing "switch -glob -nocase [subst -nocommands [lindex $commands $i]] { backupfiles { set files [find backupfile $host] if { [info exists f..." (procedure "run_commands" line 26) invoked from within "run_commands $router $prompt $command" ("foreach" body line 151) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/local/rancid/bin/llogin" line 789) groucho: missed cmd(s): BackupFiles groucho: missed cmd(s): BackupFiles groucho: End of run not found groucho: End of run not found # I suspect I'm running into differences between flavors of linux (Mine are mostly RedHat or Fedora based) which is breaking llogin. Everything else (users, permissions, etc.) check out. Since my ability to code is non-existent, I think I'll abandon this up for now. Thanks for trying to assist. Ron > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of > Diego Ercolani > Sent: Tuesday, May 04, 2010 03:14 > To: rancid-discuss at shrubbery.net > Subject: [rancid] Re: lrancid / llogin > > > You have to verify that: > 1. the user has a regular shell: ssh whitney at groucho give you > a regular shell? 2. can you read the FILE you are trying to > read ? (cat > /var/named/p/mydoitbest.com) > 3. my script waits for the root prompt (#) so the timeout is > related to this > issue. If you want to use a normal user you have to modify > the script (llogin) > to accomplish this.... > I use it in a production environment connecting to root user > of debian/suse > workstations..... so It should work as is. If you need more > functionality you > should implement it and release to the community. > This is opensource. > > Hope This Help > Diego > In data luned? 3 maggio 2010 22:21:12, Ron Whitney ha scritto: > : > I've tried to use the lrancid scripts as well without > luck. Eventually, I > > gave up. Pekka's question prompted me to try again. Here are my > > details: > > > > Relevant portion of .clogon: > > > > add method groucho {ssh} > > add user groucho {rwhitney} > > add password groucho {password} {password} > > add autoenable groucho 1 > > add backupfile groucho /var/named/p/mydoitbest.com > > > > Added to rancid-fe: > > > > "linux" => "lrancid llogin", > > > > Finally, router.db: > > > > Groucho:linux:up > > > > When I try to test, it logs on but issues no commands. > Eventually (10 > > seconds in this case), it times out: > > > > [rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho groucho > > spawn ssh -c 3des -x -l rwhitney groucho > > rwhitney at groucho's password: > > Last login: Mon May 3 16:07:33 2010 from 12-162-57-170.doitbest.com > > groucho 16:14:19 rwhitney > > > Error: TIMEOUT reached > > > > I get similar results testing lrancid: > > > > [rancid at harpo ~]$ lrancid -d groucho > > executing llogin -t 90 -c"BackupFiles" groucho > > groucho llogin error: Error: TIMEOUT reached > > groucho llogin error: Error: TIMEOUT reached > > groucho: missed cmd(s): BackupFiles > > groucho: missed cmd(s): BackupFiles > > groucho: End of run not found > > groucho: End of run not found > > # > > > > Can anyone point me in the right direction? RANCID is working on > > several Cisco switches and routers and a couple of Dell > switches. So > > I know the base functionality is working. Thanks in advnace. > > > > > > Ron > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From bmahaffey at pelco.com Tue May 4 21:20:46 2010 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Tue, 4 May 2010 14:20:46 -0700 Subject: [rancid] Re: Error Cannot read "N5" In-Reply-To: <4BBAF403456ED74981E7164ED3A4C22401EF81CD@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C22401EF81CD@CA-EVS02.pelco.org> Message-ID: <4BBAF403456ED74981E7164ED3A4C22401EF8397@CA-EVS02.pelco.org> Upgraded from 2.3.2a9 to 2.3.3 but still running into the same issue. I don't get any results from htdig L -bash-3.2$ clogin 10.220.52.1 Error: can't read "n5": no such variable -bash-3.2$ clogin -V rancid 2.3.3 Doesn't matter which type of command switches I use with clogin or if I use a device that isn't defined in the .cloginrc file. If anyone has an idea shoot it over to me. Thanks! From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mahaffey, Brian Sent: Thursday, April 29, 2010 1:46 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Error Cannot read "N5" When I run rancid I get the following output -bash-3.2$ clogin b5-m-c6509a.pelco.org Error: can't read "n5": no such variable Anyone seen this output before? This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100504/61aae4db/attachment.html From heas at shrubbery.net Wed May 5 05:50:39 2010 From: heas at shrubbery.net (john heasley) Date: Tue, 4 May 2010 22:50:39 -0700 Subject: [rancid] Re: Error Cannot read "N5" In-Reply-To: <4BBAF403456ED74981E7164ED3A4C22401EF8397@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C22401EF81CD@CA-EVS02.pelco.org> <4BBAF403456ED74981E7164ED3A4C22401EF8397@CA-EVS02.pelco.org> Message-ID: <20100505055039.GP9643@shrubbery.net> Tue, May 04, 2010 at 02:20:46PM -0700, Mahaffey, Brian: > Upgraded from 2.3.2a9 to 2.3.3 but still running into the same issue. I > don't get any results from htdig L > > > > -bash-3.2$ clogin 10.220.52.1 > > > > Error: can't read "n5": no such variable my guess is that you have a meta-character in your cloginrc that needs to be escaped. see cloginrc(5). From diego.ercolani at ssis.sm Wed May 5 07:14:41 2010 From: diego.ercolani at ssis.sm (Diego Ercolani) Date: Wed, 5 May 2010 09:14:41 +0200 Subject: [rancid] Re: lrancid / llogin In-Reply-To: <1FD6BFAE6EA54341821D01FB8E617B6503EE7753@EXCHANGE1.ntserv.doitbestcorp.com> References: <1FD6BFAE6EA54341821D01FB8E617B6503EE7753@EXCHANGE1.ntserv.doitbestcorp.com> Message-ID: <201005050914.41891.diego.ercolani@ssis.sm> Uhm.... why don't you use a STANDARD root prompt? PS1="${HOST}:${PWD} # " linux machines (also RedHats) with BASH shell have this prompt normally In data marted? 4 maggio 2010 22:48:06, Ron Whitney ha scritto: : > Thanks for the reply. I agree, it doesn't like the prompt. The Linux host > in question is a RedHat box. The prompts given are as follows: > > groucho 16:18:46 rwhitney > (Regular user) > groucho 16:17:08 SU > (root user) > > (The machine running RANCID is Fedora which has a "[rancid at harpo bin]$ " > prompt.) > > As a test, I made some very crude changes to llogin and got past the prompt > issue. However, I'm now receiving the following: > > [rancid at harpo bin]$ lrancid -d groucho > executing llogin -t 90 -c"BackupFiles" groucho > bad option "-nocase": must be -exact, -glob, -regexp, or -- > while executing > "switch -glob -nocase [subst -nocommands [lindex $commands $i]] { > backupfiles { > set files [find backupfile $host] > if { [info exists f..." > (procedure "run_commands" line 26) > invoked from within > "run_commands $router $prompt $command" > ("foreach" body line 151) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/local/rancid/bin/llogin" line 789) > groucho: missed cmd(s): BackupFiles > groucho: missed cmd(s): BackupFiles > groucho: End of run not found > groucho: End of run not found > # > > I suspect I'm running into differences between flavors of linux (Mine are > mostly RedHat or Fedora based) which is breaking llogin. Everything else > (users, permissions, etc.) check out. Since my ability to code is > non-existent, I think I'll abandon this up for now. Thanks for trying to > assist. > > Ron > > > -----Original Message----- > > From: rancid-discuss-bounces at shrubbery.net > > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of > > Diego Ercolani > > Sent: Tuesday, May 04, 2010 03:14 > > To: rancid-discuss at shrubbery.net > > Subject: [rancid] Re: lrancid / llogin > > > > > > You have to verify that: > > 1. the user has a regular shell: ssh whitney at groucho give you > > a regular shell? 2. can you read the FILE you are trying to > > read ? (cat > > /var/named/p/mydoitbest.com) > > 3. my script waits for the root prompt (#) so the timeout is > > related to this > > issue. If you want to use a normal user you have to modify > > the script (llogin) > > to accomplish this.... > > I use it in a production environment connecting to root user > > of debian/suse > > workstations..... so It should work as is. If you need more > > functionality you > > should implement it and release to the community. > > This is opensource. > > > > Hope This Help > > Diego > > > > In data luned? 3 maggio 2010 22:21:12, Ron Whitney ha scritto: > > : > I've tried to use the lrancid scripts as well without > > > > luck. Eventually, I > > > > > gave up. Pekka's question prompted me to try again. Here are my > > > details: > > > > > > Relevant portion of .clogon: > > > > > > add method groucho {ssh} > > > add user groucho {rwhitney} > > > add password groucho {password} {password} > > > add autoenable groucho 1 > > > add backupfile groucho /var/named/p/mydoitbest.com > > > > > > Added to rancid-fe: > > > "linux" => "lrancid llogin", > > > > > > Finally, router.db: > > > > > > Groucho:linux:up > > > > > > When I try to test, it logs on but issues no commands. > > > > Eventually (10 > > > > > seconds in this case), it times out: > > > > > > [rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho groucho > > > spawn ssh -c 3des -x -l rwhitney groucho > > > rwhitney at groucho's password: > > > Last login: Mon May 3 16:07:33 2010 from 12-162-57-170.doitbest.com > > > groucho 16:14:19 rwhitney > > > > Error: TIMEOUT reached > > > > > > I get similar results testing lrancid: > > > > > > [rancid at harpo ~]$ lrancid -d groucho > > > executing llogin -t 90 -c"BackupFiles" groucho > > > groucho llogin error: Error: TIMEOUT reached > > > groucho llogin error: Error: TIMEOUT reached > > > groucho: missed cmd(s): BackupFiles > > > groucho: missed cmd(s): BackupFiles > > > groucho: End of run not found > > > groucho: End of run not found > > > # > > > > > > Can anyone point me in the right direction? RANCID is working on > > > several Cisco switches and routers and a couple of Dell > > > > switches. So > > > > > I know the base functionality is working. Thanks in advnace. > > > > > > > > > Ron From bmahaffey at pelco.com Wed May 5 15:27:49 2010 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Wed, 5 May 2010 08:27:49 -0700 Subject: [rancid] Re: Error Cannot read "N5" In-Reply-To: <20100505055039.GP9643@shrubbery.net> References: <4BBAF403456ED74981E7164ED3A4C22401EF81CD@CA-EVS02.pelco.org> <4BBAF403456ED74981E7164ED3A4C22401EF8397@CA-EVS02.pelco.org> <20100505055039.GP9643@shrubbery.net> Message-ID: <4BBAF403456ED74981E7164ED3A4C22401EF83ED@CA-EVS02.pelco.org> That was the issue, something in my .cloginrc file. I created a new one and its working. Thanks for the help! -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Tuesday, May 04, 2010 10:51 PM To: Mahaffey, Brian Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: Error Cannot read "N5" Tue, May 04, 2010 at 02:20:46PM -0700, Mahaffey, Brian: > Upgraded from 2.3.2a9 to 2.3.3 but still running into the same issue. I > don't get any results from htdig L > > > > -bash-3.2$ clogin 10.220.52.1 > > > > Error: can't read "n5": no such variable my guess is that you have a meta-character in your cloginrc that needs to be escaped. see cloginrc(5). This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. From babydr at baby-dragons.com Thu May 6 03:32:21 2010 From: babydr at baby-dragons.com (Mr. James W. Laferriere) Date: Wed, 5 May 2010 19:32:21 -0800 (AKDT) Subject: [rancid] Re: lrancid / llogin In-Reply-To: <201005050914.41891.diego.ercolani@ssis.sm> References: <1FD6BFAE6EA54341821D01FB8E617B6503EE7753@EXCHANGE1.ntserv.doitbestcorp.com> <201005050914.41891.diego.ercolani@ssis.sm> Message-ID: Hello Diago , Right in line with the other users I had difficutlies ssh'ng to one of my systems , it's a Slackware Distro. & I noticed a few things . The "$prompt" had (imo) extra chars in it that prevented the script from completing see attached & inline patch . Maybe someone can clean it up a tad more to make it submittable . Hope this helps others . JimL # llogin -noenable dsb-esx01 dsb-esx01 spawn ssh -c des -x -l root dsb-esx01 No valid ciphers for protocol version 2 given, using defaults. The authenticity of host 'dsb-esx01 (10.1.1.102)' can't be established. RSA key fingerprint is 3c:b8:0f:f5:51:7b:36:b8:0f:3e:de:66:75:a9:22:7b. Are you sure you want to continue connecting (yes/no)? Host dsb-esx01 added to the list of known hosts. yes Warning: Permanently added 'dsb-esx01' (RSA) to the list of known hosts. root at dsb-esx01's pssword: Last login: Thu Apr 1 08:50:40 2010 from mo-it07.dsb.local [root at dsb-esx01 root]# dir Error: TIMEOUT reached -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network&System Engineer | 3237 Holden Road | Give me Linux | | babydr at baby-dragons.com | Fairbanks, AK. 99709 | only on AXP | +------------------------------------------------------------------+ --- llogin-ORIG 2010-05-05 10:31:59.000000000 -0800 +++ llogin 2010-05-05 11:45:14.000000000 -0800 @@ -714,7 +714,7 @@ # if it is not a "MetaCommand", passes the command "as is" to # the console # send_user "[subst [lindex $commands $i]]\n" - switch -glob -nocase [subst -nocommands [lindex $commands $i]] { + switch -glob [subst -nocommands [lindex $commands $i]] { backupfiles { set files [find backupfile $host] if { [info exists files] && [llength $files] > 0 } { @@ -752,9 +752,12 @@ log_user 1 send -- "exit\r" +### return 0 expect { -re "\b+" { exp_continue } - -re "Connection to .* closed" { return 0} + -re "Connection to .* closed" { + exp_continue; + } -re "^\[^\n\r *]*$reprompt" { # the Cisco CE and Jnx ERX # return to non-enabled mode @@ -798,17 +801,17 @@ if $avautoenable { set autoenable 1 set enable 0 - set prompt ":~# " + set prompt "# " } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 - set prompt ":~# " + set prompt "# " } else { set autoenable 0 set enable $avenable - set prompt ":~> " + set prompt "> " } } -------------- next part -------------- # diff -u llogin-ORIG llogin --- llogin-ORIG 2010-05-05 10:31:59.000000000 -0800 +++ llogin 2010-05-05 11:45:14.000000000 -0800 @@ -714,7 +714,7 @@ # if it is not a "MetaCommand", passes the command "as is" to # the console # send_user "[subst [lindex $commands $i]]\n" - switch -glob -nocase [subst -nocommands [lindex $commands $i]] { + switch -glob [subst -nocommands [lindex $commands $i]] { backupfiles { set files [find backupfile $host] if { [info exists files] && [llength $files] > 0 } { @@ -752,9 +752,12 @@ log_user 1 send -- "exit\r" +### return 0 expect { -re "\b+" { exp_continue } - -re "Connection to .* closed" { return 0} + -re "Connection to .* closed" { + exp_continue; + } -re "^\[^\n\r *]*$reprompt" { # the Cisco CE and Jnx ERX # return to non-enabled mode @@ -798,17 +801,17 @@ if $avautoenable { set autoenable 1 set enable 0 - set prompt ":~# " + set prompt "# " } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 - set prompt ":~# " + set prompt "# " } else { set autoenable 0 set enable $avenable - set prompt ":~> " + set prompt "> " } } From ron.whitney at doitbest.com Thu May 6 13:11:08 2010 From: ron.whitney at doitbest.com (Ron Whitney) Date: Thu, 6 May 2010 09:11:08 -0400 Subject: [rancid] Re: lrancid / llogin In-Reply-To: Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6503EE776A@EXCHANGE1.ntserv.doitbestcorp.com> James, can you send me your working llogin script: I added your patch to mine and it is helping me get farther. However, it didn't seem to execute correctly. (I'm guessing I have a typo.) Here's what I'm getting now: [rancid at harpo bin]$ lrancid -d groucho executing llogin -t 90 -c"BackupFiles" groucho groucho: missed cmd(s): BackupFiles groucho: missed cmd(s): BackupFiles [rancid at harpo bin]$ llogin -t 10 -c"BackupFiles" groucho groucho spawn ssh -c 3des -x -l root groucho root at groucho's password: Last login: Thu May 6 09:03:40 2010 from 12-162-57-170.doitbest.com groucho 09:04:02 SU > export HISTIGNORE="&:cat *:exit*:export *";export LANG=C groucho 09:04:03 SU > groucho 09:04:03 SU > BackupFiles -bash: BackupFiles: command not found groucho 09:04:03 SU > exit logout Connection to groucho closed. Snippet from my .cloginrc file: add method groucho {ssh} add user groucho {root} add password groucho {deleted} {deleted} add noenable groucho 1 add backupfile groucho /var/named/p/mydoitbest.com Thoughts anyone? Thanks. Ron > -----Original Message----- > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of > Mr. James W. Laferriere > Sent: Wednesday, May 05, 2010 23:32 > To: Diego Ercolani > Cc: rancid-discuss at shrubbery.net > Subject: [rancid] Re: lrancid / llogin > > > Hello Diago , > > Right in line with the other users I had difficutlies > ssh'ng to one of > my systems , it's a Slackware Distro. & I noticed a few things . > > The "$prompt" had (imo) extra chars in it that > prevented the script from > completing see attached & inline patch . Maybe someone can > clean it up a tad > more to make it submittable . > > Hope this helps others . JimL > > > # llogin -noenable dsb-esx01 > dsb-esx01 > spawn ssh -c des -x -l root dsb-esx01 > No valid ciphers for protocol version 2 given, using defaults. > The authenticity of host 'dsb-esx01 (10.1.1.102)' can't be > established. > RSA key fingerprint is > 3c:b8:0f:f5:51:7b:36:b8:0f:3e:de:66:75:a9:22:7b. > Are you sure you want to continue connecting (yes/no)? > Host dsb-esx01 added to the list of known hosts. > yes > Warning: Permanently added 'dsb-esx01' (RSA) to the list of > known hosts. > root at dsb-esx01's pssword: > Last login: Thu Apr 1 08:50:40 2010 from mo-it07.dsb.local > [root at dsb-esx01 root]# dir > > Error: TIMEOUT reached > > > -- > +------------------------------------------------------------------+ > | James W. Laferriere | System Techniques | Give me VMS | > | Network&System Engineer | 3237 Holden Road | Give me Linux | > | babydr at baby-dragons.com | Fairbanks, AK. 99709 | only on AXP | > +------------------------------------------------------------------+ > > --- llogin-ORIG 2010-05-05 10:31:59.000000000 -0800 > +++ llogin 2010-05-05 11:45:14.000000000 -0800 > @@ -714,7 +714,7 @@ > # if it is not a "MetaCommand", passes the command "as is" to > # the console > # send_user "[subst [lindex $commands $i]]\n" > - switch -glob -nocase [subst -nocommands [lindex > $commands $i]] { > + switch -glob [subst -nocommands [lindex $commands $i]] { > backupfiles { > set files [find backupfile $host] > if { [info exists files] && [llength $files] > 0 } { > @@ -752,9 +752,12 @@ > log_user 1 > > send -- "exit\r" > +### return 0 > expect { > -re "\b+" { exp_continue } > - -re "Connection to .* closed" { return 0} > + -re "Connection to .* closed" { > + exp_continue; > + } > -re "^\[^\n\r *]*$reprompt" { > # the > Cisco CE and Jnx > ERX > # return to > non-enabled mode > @@ -798,17 +801,17 @@ > if $avautoenable { > set autoenable 1 > set enable 0 > - set prompt ":~# " > + set prompt "# " > } else { > set ae [find autoenable $router] > if { "$ae" == "1" } { > set autoenable 1 > set enable 0 > - set prompt ":~# " > + set prompt "# " > } else { > set autoenable 0 > set enable $avenable > - set prompt ":~> " > + set prompt "> " > } > } > From heas at shrubbery.net Thu May 6 16:51:33 2010 From: heas at shrubbery.net (john heasley) Date: Thu, 6 May 2010 09:51:33 -0700 Subject: [rancid] Re: Has anybody solved the extreme "unsaved changes" bug? In-Reply-To: <4BDDD94A.6080201@prophecy.net.nz> References: <4BD0CBF6.7010203@prophecy.net.nz> <20100422234954.GV24599@shrubbery.net> <4BDDD94A.6080201@prophecy.net.nz> Message-ID: <20100506165133.GQ21825@shrubbery.net> Mon, May 03, 2010 at 07:58:02AM +1200, David Young: > Hi John, > > We are using rancid 2.3.3, with expect 5.43 > > I believe this is the problem: > > I run "xrancid -d myswitch.local": > > executing clogin -t 90 -c "show version;show memory;show diag;show > switch;show slot;show configuration detail;show configuration" > myswitch.local > > couldn't compile regular expression pattern: quantifier operand invalid > while executing > "expect -nobrace -re {* myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} > {} -re {[ > ]+} { exp_continue }" > invoked from within > "expect { > -re $reprompt {} > -re "\[\n\r]+" { exp_continue } > }" > (procedure "run_commands" line 21) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > > I tried to run the two prompt variations within expect itself, not sure > if the second result is what I _should_ be getting, but certainly the > asterisk makes a difference: > > > expect1.2> expect -nobrace -re {* > myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re "\[\n\r]+" { > exp_continue } > couldn't compile regular expression pattern: quantifier operand invalid > while executing > "expect -nobrace -re {* myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} > {} -re "\[\n\r]+" { exp_continue }" > > expect1.3> expect -nobrace -re{ > myswitch.local([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re "\[\n\r]+" { > exp_continue } > +> > > I have attached the output of clogin -d -c 'show version' myswitch.local > (I have obfuscated the switch name and IP). It seems to die abruptly, > the last line outputted is "expect: set expect_out(buffer) "\tmirroring > multin" could you show the o/p of "clogin -c 'show version' host" to me? ie: the match of the clogin -d o/p below. > Thanks for the assistance! > David > > > > On 23/04/10 11:49 AM, john heasley wrote: > > Fri, Apr 23, 2010 at 10:21:42AM +1200, David Young: > >> Hi all, > >> > >> I refer to this issue: > >> > >> http://www.shrubbery.net/pipermail/rancid-discuss/2009-January/003614.html > >> > >> It seems that running RANCID against an extreme switch puts it into an > >> "unsaved" state (maybe because of the clipaging?), and so while the > >> first run is successful, any subsequent runs fail because of the > >> asterisk in the prompt... > >> > >> i.e.: > >> > >>>> "expect -nobrace -re {* 300e48-x.([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} > >> {} -re {[ > >>>> ^M]+} { exp_continue }" > > > > this should work; it used to. we have one for testing but its not up yet. > > send the o/p of clogin -d -s 'show version' host >log 2>&1. that should > > identify the issue. > > > > i'd first make sure that you're using expect >= 5.43 and rancid 2.3.3. > [rancid at stats ~]$ clogin -d -c 'show version' myswitch.local > myswitch.local > spawn telnet myswitch.local > parent: waiting for sync byte > parent: telling child to go ahead > parent: now unsynchronized from child > spawn: returns {810} > > expect: does "" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > Trying 192.168.23.12... > Connected to myswitch.local (192.168.23.12). > Escape character is '^]'. > > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > Copyright (C) 1999 by Extreme Networks > login: > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n\r\nCopyright (C) 1999 by Extreme Networks\r\r\nlogin: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n\r\nCopyright (C) 1999 by Extreme Networks\r\r\nlogin: " (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n\r\nCopyright (C) 1999 by Extreme Networks\r\r\nlogin: " (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? yes > expect: set expect_out(0,string) "login:" > expect: set expect_out(1,string) "login" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "Trying 192.168.23.12...\r\r\nConnected to myswitch.local (192.168.23.12).\r\r\nEscape character is '^]'.\r\r\n\r\nCopyright (C) 1999 by Extreme Networks\r\r\nlogin:" > send: sending "admin\r" to { exp6 } > expect: continuing expect > > expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > admin > password: > expect: does " admin\r\npassword: " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " admin\r\npassword: " (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does " admin\r\npassword: " (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? yes > expect: set expect_out(0,string) "password:" > expect: set expect_out(1,string) "password" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " admin\r\npassword:" > send: sending "n5wf5nz#\r" to { exp6 } > expect: continuing expect > > expect: does " " (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " " (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does " " (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? no > ">"? no > "Login invalid"? no > > > Press the key at any time for completions. > Don't forget to save your configuration change > expect: does " \r\n\r\nPress the key at any time for completions.\r\nDon't forget to save your configuration change" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no > "(Connection closed by|Connection to [^\n\r]+ closed)"? no > > expect: does " \r\n\r\nPress the key at any time for completions.\r\nDon't forget to save your configuration change" (spawn_id exp6) match glob pattern "unknown host\r"? no > > expect: does " \r\n\r\nPress the key at any time for completions.\r\nDon't forget to save your configuration change" (spawn_id exp6) match glob pattern "Host is unreachable"? no > "No address associated with name"? no > "(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no > "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no > "Offending key for .* (yes/no)?"? no > "(denied|Sorry)"? no > "Login failed"? no > "% (Bad passwords|Authentication failed)"? no > "Press any key to continue"? no > "Enter Selection: "? no > "Last login:"? no > "@[^\r\n]+ ([Pp]assword|passwd):"? no > "(Username|Login|login|user name|User):"? no > "([Pp]assword|passwd):"? no > ">"? yes > expect: set expect_out(0,string) ">" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " \r\n\r\nPress the " > send: sending "enable\r" to { exp6 } > > expect: does " key at any time for completions.\r\nDon't forget to save your configuration change" (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no > "[Pp]assword:"? no > "#"? no > "(enable)"? no > "(denied|Sorry|Incorrect)"? no > "% Error in authentication"? no > "% Bad passwords"? no > s. > * switch2-na:1 # > expect: does " key at any time for completions.\r\nDon't forget to save your configuration changes.\r\n* switch2-na:1 # " (spawn_id exp6) match regular expression "(Username|Login|login|user name|User):"? no > "[Pp]assword:"? no > "#"? yes > expect: set expect_out(0,string) "#" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " key at any time for completions.\r\nDon't forget to save your configuration changes.\r\n* switch2-na:1 #" > send: sending "\r" to { exp6 } > > expect: does " " (spawn_id exp6) match regular expression "[\r\n]+"? no > "^(.+[:.])1 (#)"? no > "^.+#"? no > enable > > Syntax error at end of line. > > Next possible completions: > autodst bootp bootprelay cli- > expect: does " enable\r\n\r\nSyntax error at end of line.\r\n\r\nNext possible completions:\r\n\tautodst bootp bootprelay cli-" (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) " enable\r\n\r\n" > expect: continuing expect > > expect: does "Syntax error at end of line.\r\n\r\nNext possible completions:\r\n\tautodst bootp bootprelay cli-" (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "Syntax error at end of line.\r\n\r\n" > expect: continuing expect > > expect: does "Next possible completions:\r\n\tautodst bootp bootprelay cli-" (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "Next possible completions:\r\n" > expect: continuing expect > > expect: does "\tautodst bootp bootprelay cli-" (spawn_id exp6) match regular expression "[\r\n]+"? no > "^(.+[:.])1 (#)"? no > "^.+#"? no > config-logging clipaging > dvmrp edp esrp gvrp icmp > idletimeouts igmp ignore-stp iparp ipforwarding > ipmcforwarding iproute isq ipxrip ipxsap > jumbo irdp learning license log > mirroring multinetting ospf pace pim-dm > ports qosmonitor radius rip rmon > sharing smartredundancy snmp sntp-client stpd > subvlan-proxy-arp summitlink syslog telnet type20 > web > * switch2-na:2 # > expect: does "\tautodst bootp bootprelay cli-config-logging clipaging \r\n\tdvmrp edp esrp gvrp icmp \r\n\tidletimeouts igmp ignore-stp iparp ipforwarding \r\n\tipmcforwarding iproute isq ipxrip ipxsap \r\n\tjumbo irdp learning license log \r\n\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tautodst bootp bootprelay cli-config-logging clipaging \r\n" > expect: continuing expect > > expect: does "\tdvmrp edp esrp gvrp icmp \r\n\tidletimeouts igmp ignore-stp iparp ipforwarding \r\n\tipmcforwarding iproute isq ipxrip ipxsap \r\n\tjumbo irdp learning license log \r\n\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tdvmrp edp esrp gvrp icmp \r\n" > expect: continuing expect > > expect: does "\tidletimeouts igmp ignore-stp iparp ipforwarding \r\n\tipmcforwarding iproute isq ipxrip ipxsap \r\n\tjumbo irdp learning license log \r\n\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tidletimeouts igmp ignore-stp iparp ipforwarding \r\n" > expect: continuing expect > > expect: does "\tipmcforwarding iproute isq ipxrip ipxsap \r\n\tjumbo irdp learning license log \r\n\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tipmcforwarding iproute isq ipxrip ipxsap \r\n" > expect: continuing expect > > expect: does "\tjumbo irdp learning license log \r\n\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tjumbo irdp learning license log \r\n" > expect: continuing expect > > expect: does "\tmirroring multinetting ospf pace pim-dm \r\n\tports qosmonitor radius rip rmon \r\n\tsharing smartredundancy snmp sntp-client stpd \r\n\tsubvlan-proxy-arp summitlink syslog telnet type20 \r\n\tweb \r\n* switch2-na:2 # " (spawn_id exp6) match regular expression "[\r\n]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp6" > expect: set expect_out(buffer) "\tmirroring multin[rancid at stats ~]$ From bmahaffey at pelco.com Thu May 6 21:17:31 2010 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Thu, 6 May 2010 14:17:31 -0700 Subject: [rancid] Unable to fetch data with hlogin Message-ID: <4BBAF403456ED74981E7164ED3A4C22401EF84EA@CA-EVS02.pelco.org> Rancid 2.3.3 expect 5.43 When rancid runs I am unable to collect data from HP switches via hlogin I get an error in the log file. When I manually run hlogin -c 'show run' HP5308-B6-1 I get a device timeout. If I run hlogin HP5308-B6-1 rancid logins successfully. I have tried this on another HP 5406 switch with the same issues. -bash-3.2$ hlogin HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: ProCurve J4819A Switch 5308xl Software revision E.11.10 HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# exit HP5308-B6-1> exit Do you want to log out [y/n]? y ----------------------------------------------------- -bash-3.2$ hlogin -c 'show run' HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# couldn't compile regular expression pattern: parentheses () not balanced while executing ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }" invoked from within "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 9) invoked from within "run_commands $prompt $command" ("foreach" body line 148) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) --------------------------------------------------------------- I don't know how much of this is relevant for you my apologizes I just grabbed a snip from the log file. "expect {re "\[\n\r]+"md{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"-b-re $repromptrun{}ot found (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withind(s): show stack,show module,show flash,show version,show system-information,write term,show system information (procedure "run_commands" line 9) invoked from withine 148) "run_commands $prompt $command"w stack,show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"intolower $router]show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"g tolower $router] ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""t.{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[in" line 594) ]+} { exp_continue }""mm{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information invoked from withine{}48)found "expect {re "\[\n\r]+"mm{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withine 148) $i end] { (procedure "run_commands" line 9)r] invoked from withine 148) $i end] { "run_commands $prompt $command"$router]tern: parentheses () not balanced ("foreach" body line 148) $i end] {login" line 594) invoked from withintolower $router]tern: parentheses () not balanced "foreach router [lrange $argv $i end] {login" line 594) set router [string tolower $router]tern: parentheses () not balanced send_user "$router\n"s/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[n: parentheses () not balanced ]+} { exp_continue }"/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[w module,show flash,show version,show system-information,write term,show system information ]+} { exp_continue }"un not found invoked from withind{}): show stack,show module,show flash,show version,show system-information,write term,show system information "expect {re "\[\n\r]+"un{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"voked from withinn not found (procedure "run_commands" line 9)k,show module,show flash,show version,show system-information,write term,show system information invoked from withine 148)ound "run_commands $prompt $command" ("foreach" body line 148) $i end] { invoked from withintolower $router] "foreach router [lrange $argv $i end] {show module,show flash,show version,show system-information,write term,show system information set router [string tolower $router] send_user "$router\n" set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100506/09e6527c/attachment.html From dale.shaw+rancid-discuss at gmail.com Thu May 6 22:25:47 2010 From: dale.shaw+rancid-discuss at gmail.com (Dale Shaw) Date: Fri, 7 May 2010 08:25:47 +1000 Subject: [rancid] jlogin and root shell Message-ID: Hi all, [ I admit to not having done a thorough search through the archives on this one -- apologies if the answer is out there already, or -gulp- it's a FAQ ] Can jlogin handle the situation where the 'root' user is used to authenticate and is subsequently dropped into a shell, as distinct from the JUNOS CLI? cheers, Dale From heas at shrubbery.net Fri May 7 00:23:47 2010 From: heas at shrubbery.net (john heasley) Date: Thu, 6 May 2010 17:23:47 -0700 Subject: [rancid] Re: jlogin and root shell In-Reply-To: References: Message-ID: <20100507002347.GM1029@shrubbery.net> Fri, May 07, 2010 at 08:25:47AM +1000, Dale Shaw: > Hi all, > > [ I admit to not having done a thorough search through the archives on > this one -- apologies if the answer is out there already, or -gulp- > it's a FAQ ] > > Can jlogin handle the situation where the 'root' user is used to > authenticate and is subsequently dropped into a shell, as distinct > from the JUNOS CLI? no, it 100% expects the cli. > cheers, > Dale > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From arla at rn.dk Fri May 7 04:54:49 2010 From: arla at rn.dk (Arne Larsen / Region Nordjylland) Date: Fri, 7 May 2010 06:54:49 +0200 Subject: [rancid] clogin for different users Message-ID: <8D68760F464FFD40A01BF2FB374E4A2802156E27E8E7@SRVEXC02.aas.its.nja.dk> Hi all. Can someone give me a hint how to get clogin work for different users. I've tried to change rights on.cloginrc to most everything without anny luck. What am I doing wrong. /Arne -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100507/3d3dd78f/attachment.html From heas at shrubbery.net Fri May 7 15:49:25 2010 From: heas at shrubbery.net (john heasley) Date: Fri, 7 May 2010 08:49:25 -0700 Subject: [rancid] Re: clogin for different users In-Reply-To: <8D68760F464FFD40A01BF2FB374E4A2802156E27E8E7@SRVEXC02.aas.its.nja.dk> References: <8D68760F464FFD40A01BF2FB374E4A2802156E27E8E7@SRVEXC02.aas.its.nja.dk> Message-ID: <20100507154925.GJ5358@shrubbery.net> Fri, May 07, 2010 at 06:54:49AM +0200, Arne Larsen / Region Nordjylland: > Hi all. > > Can someone give me a hint how to get clogin work for different users. > I've tried to change rights on.cloginrc to most everything without anny luck. > What am I doing wrong. Sorry, i don't understand the question. Please try re-stating it. From johanson at caltech.edu Fri May 7 16:41:10 2010 From: johanson at caltech.edu (Ernest Johanson) Date: Fri, 7 May 2010 09:41:10 -0700 (PDT) Subject: [rancid] Re: jlogin and root shell In-Reply-To: References: Message-ID: Dale, I have a Juniper EX4200 that doesn't automatically launch the cli. The following worked for me. I also had to set TERM=xterm in rancid.conf. --Ernie Johanson --- jlogin.orig 2010-05-07 09:29:37.000000000 -0700 +++ jlogin 2010-05-07 09:29:37.000000000 -0700 @@ -285,7 +285,7 @@ # Log into the router. # returns: 0 on success, 1 on failure proc login { router user passwd cmethod cyphertype identfile} { - global spawn_id in_proc do_command do_script passphrase prompt + global spawn_id in_proc do_command do_script passphrase prompt sys_prompt global sshcmd set in_proc 1 @@ -405,7 +405,13 @@ sleep 1; send "$passwd\r" exp_continue } - -re "$prompt" { break; } + # We define an additional prompt if the switch doesn't + # start the cli by default + -re "$sys_prompt" { break; } + + # Standard cli prompt + -re "$prompt" { break; } + denied { send_user "\nError: Check your password for $router\n" catch {close}; catch {wait}; return 1 } @@ -416,7 +422,14 @@ send "\r" expect { -re "(\r\n|\n)" { exp_continue; } - -re "^\[^ ]+$prompt" { set prompt $expect_out(0,string); + + # If we get the system prompt, launch the cli + + -re ".+$sys_prompt" { sleep 1; send "cli\r"; + exp_continue; + } + -re ".+$prompt" + { set prompt $expect_out(0,string); regsub ">" $prompt "\[#>]" prompt; } } @@ -427,7 +440,7 @@ # Run commands given on the command line. proc run_commands { prompt command } { - global in_proc + global in_proc sys_prompt set in_proc 1 send "set cli complete-on-space off\r" @@ -458,6 +471,11 @@ } send "quit\r" expect { + -re ".+$sys_prompt" { + sleep 1 ; send "exit\r" ; + catch {close}; catch {wait}; + return 0 + } "\n" { exp_continue } timeout { catch {close}; catch {wait}; return 0 @@ -479,6 +497,11 @@ set prompt ">" + # If the switch doesn't automatically + # launch the cli, we'll get a system prompt + + set sys_prompt "%" + # Figure out username if {[info exists username]} { # command line username #--------------------- end diff ----------------------------------------- On Fri, 7 May 2010, Dale Shaw wrote: > Date: Fri, 7 May 2010 08:25:47 +1000 > From: Dale Shaw > To: rancid-discuss at shrubbery.net > Subject: [rancid] jlogin and root shell > > Hi all, > > [ I admit to not having done a thorough search through the archives on > this one -- apologies if the answer is out there already, or -gulp- > it's a FAQ ] > > Can jlogin handle the situation where the 'root' user is used to > authenticate and is subsequently dropped into a shell, as distinct > from the JUNOS CLI? > > cheers, > Dale > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > From mickael.garnier-prestataire at laposte.fr Fri May 7 15:58:53 2010 From: mickael.garnier-prestataire at laposte.fr (Mickael GARNIER) Date: Fri, 07 May 2010 17:58:53 +0200 Subject: [rancid] Re: clogin for different users In-Reply-To: <20100507154925.GJ5358@shrubbery.net> References: <8D68760F464FFD40A01BF2FB374E4A2802156E27E8E7@SRVEXC02.aas.its.nja.dk> <20100507154925.GJ5358@shrubbery.net> Message-ID: <4BE438BD.1010701@laposte.fr> Hi, in the scripts, the .cloginrc file is searched in $HOME/.cloginrc, so it's searched only to one place (the HOME of the rancid user). I think you could create a symbolic link to the .cloginrc file of the rancid's user HOME in your users's HOME. For example, if your .cloginrc is in /home/rancid, you create the symbolic link to the users HOME ln -s /home/rancid/.cloginrc /home/user1 MG Le 07/05/2010 17:49, john heasley a ?crit : > Fri, May 07, 2010 at 06:54:49AM +0200, Arne Larsen / Region Nordjylland: > >> Hi all. >> >> Can someone give me a hint how to get clogin work for different users. >> I've tried to change rights on.cloginrc to most everything without anny luck. >> What am I doing wrong. >> > Sorry, i don't understand the question. Please try re-stating it. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > Post-scriptum La Poste Ce message est confidentiel. Sous reserve de tout accord conclu par ecrit entre vous et La Poste, son contenu ne represente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee prealablement. Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement l'expediteur. From heas at shrubbery.net Fri May 7 17:07:00 2010 From: heas at shrubbery.net (john heasley) Date: Fri, 7 May 2010 10:07:00 -0700 Subject: [rancid] Re: clogin for different users In-Reply-To: <4BE438BD.1010701@laposte.fr> References: <8D68760F464FFD40A01BF2FB374E4A2802156E27E8E7@SRVEXC02.aas.its.nja.dk> <20100507154925.GJ5358@shrubbery.net> <4BE438BD.1010701@laposte.fr> Message-ID: <20100507170700.GO5358@shrubbery.net> Fri, May 07, 2010 at 05:58:53PM +0200, Mickael GARNIER: > Hi, > > in the scripts, the .cloginrc file is searched in $HOME/.cloginrc, so > it's searched only to one place (the HOME of the rancid user). > > I think you could create a symbolic link to the .cloginrc file of the > rancid's user HOME in your users's HOME. yes, as long as they're in the same unix group. > For example, if your .cloginrc is in /home/rancid, you create the > symbolic link to the users HOME > ln -s /home/rancid/.cloginrc /home/user1 also see include in cloginrc(5). > MG > > Le 07/05/2010 17:49, john heasley a ?crit : > > Fri, May 07, 2010 at 06:54:49AM +0200, Arne Larsen / Region Nordjylland: > > > >> Hi all. > >> > >> Can someone give me a hint how to get clogin work for different users. > >> I've tried to change rights on.cloginrc to most everything without anny luck. > >> What am I doing wrong. > >> > > Sorry, i don't understand the question. Please try re-stating it. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > Post-scriptum La Poste > > Ce message est confidentiel. Sous reserve de tout accord conclu par > ecrit entre vous et La Poste, son contenu ne represente en aucun cas un > engagement de la part de La Poste. Toute publication, utilisation ou > diffusion, meme partielle, doit etre autorisee prealablement. Si vous > n'etes pas destinataire de ce message, merci d'en avertir immediatement > l'expediteur. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From smokeping123 at hotmail.com Fri May 14 12:08:05 2010 From: smokeping123 at hotmail.com (Smokeping slt) Date: Fri, 14 May 2010 18:08:05 +0600 Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. Message-ID: hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 ssh then i test the connection RANCID ~]$ bin/clogin 192.168.1.1 192.168.1.1 spawn ssh -c 3des -x -l testuser 192.168.1.1 ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits key_verify failed for server_host_key Error: Couldn't login: 192.168.1.1 plz be kind enough to help in order to solve this. your responses are highly appriciated tnx Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/035fe25e/attachment.html From smokeping123 at hotmail.com Fri May 14 12:17:18 2010 From: smokeping123 at hotmail.com (Smokeping slt) Date: Fri, 14 May 2010 18:17:18 +0600 Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. Message-ID: hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 telnet then i test the connection RANCID#bin/clogin 192.168.1.1 192.168.1.1 spawn telnet 192.168.1.1 Trying 10.96.140.1... Connected to 192.168.1.1 (192.168.1.1). Escape character is '^]'. User Access Verification Username: test Password: TestRouter# then i check the config file. but i saw empty file called 192.168.1.1 . no any config inculded with the file . herewith i attach my log file . plz be kind enough to help me vi networking.20100514.172830 starting: Fri May 14 17:44:23 IST 2010 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 May 14 17:28 /tmp/.networking.run.lock ending: Fri May 14 17:44:23 IST 2010 tnx _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/a6808e19/attachment.html From rwest at zyedge.com Fri May 14 15:10:15 2010 From: rwest at zyedge.com (Ryan West) Date: Fri, 14 May 2010 15:10:15 +0000 Subject: [rancid] Re: FW: ERROR in rancid.......PLZ...Help.............................. In-Reply-To: References: Message-ID: <5DC4853C6CC3EE4788779E0726E034DD230B03@zy-ex1.zyedge.local> Smoke, Conf t Crypto key generate rsa gen mod 2048 ....... ..... ... Wait. -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt Sent: Friday, May 14, 2010 8:08 AM To: rancid-discuss at shrubbery.net Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 ssh then i test the connection RANCID ~]$ bin/clogin 192.168.1.1 192.168.1.1 spawn ssh -c 3des -x -l testuser 192.168.1.1 ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits key_verify failed for server_host_key Error: Couldn't login: 192.168.1.1 plz be kind enough to help in order to solve this. your responses are highly appriciated tnx ________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. ________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/3821db6a/attachment.html From Drikus.Brits at vodacom.co.za Fri May 14 15:10:58 2010 From: Drikus.Brits at vodacom.co.za (Drikus Brits) Date: Fri, 14 May 2010 17:10:58 +0200 Subject: [rancid] Re: FW: ERROR in rancid.......PLZ...Help.............................. In-Reply-To: References: Message-ID: <2462C3A55E5DA04395C77B0400E5300307004F2AE7@ZAMDC02104.vodacom.corp> Hi, The problem below is about the SSH keys that was generated on your 1841. Try to recreate the keys using : crypto key generate rsa modulus 1024 Make sure that you have a domain name set otherwise it will give an error like : % Please define a domain-name first. Regards, From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt Sent: Friday, May 14, 2010 2:08 PM To: rancid-discuss at shrubbery.net Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 ssh then i test the connection RANCID ~]$ bin/clogin 192.168.1.1 192.168.1.1 spawn ssh -c 3des -x -l testuser 192.168.1.1 ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits key_verify failed for server_host_key Error: Couldn't login: 192.168.1.1 plz be kind enough to help in order to solve this. your responses are highly appriciated tnx ________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. ________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. ?This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.co.za/legal/email.jsp " -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/f8f14446/attachment.html From rwest at zyedge.com Fri May 14 15:13:55 2010 From: rwest at zyedge.com (Ryan West) Date: Fri, 14 May 2010 15:13:55 +0000 Subject: [rancid] Re: FW: ERROR in rancid.......PLZ...Help.............................. In-Reply-To: References: Message-ID: <5DC4853C6CC3EE4788779E0726E034DD230B46@zy-ex1.zyedge.local> Smoke, Difficult to see what's going on there. Clogin is not going to write the file, but you also have a hung process. ps aux | grep rancid and kill the hung process if it's there. Otherwise, you can delete that tmp file so the next cron will run. Has this installation worked before? -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt Sent: Friday, May 14, 2010 8:17 AM To: rancid-discuss at shrubbery.net Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 telnet then i test the connection RANCID#bin/clogin 192.168.1.1 192.168.1.1 spawn telnet 192.168.1.1 Trying 10.96.140.1... Connected to 192.168.1.1 (192.168.1.1). Escape character is '^]'. User Access Verification Username: test Password: TestRouter# then i check the config file. but i saw empty file called 192.168.1.1 . no any config inculded with the file . herewith i attach my log file . plz be kind enough to help me vi networking.20100514.172830 starting: Fri May 14 17:44:23 IST 2010 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 May 14 17:28 /tmp/.networking.run.lock ending: Fri May 14 17:44:23 IST 2010 tnx ________________________________ Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/59d25ff4/attachment.html From Drikus.Brits at vodacom.co.za Fri May 14 15:15:02 2010 From: Drikus.Brits at vodacom.co.za (Drikus Brits) Date: Fri, 14 May 2010 17:15:02 +0200 Subject: [rancid] Re: FW: ERROR in rancid.......PLZ...Help.............................. In-Reply-To: References: Message-ID: <2462C3A55E5DA04395C77B0400E5300307004F2AEB@ZAMDC02104.vodacom.corp> HI, Using the clogin command will only log you into the router, and won't retrieve and store the configs by itself. That is what the rancid portion does. Looking below, you need to remove the priviledge level 15 from your user and let rancid log in using the enable command, if not this way , then you need to set your router to autoenable in the .cloginrc file. Configure your rancid portion next......this will then automagically retrieve and store your configs.... Try this using "rancid-run" once you have set it up...... Regards, Drikus From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt Sent: Friday, May 14, 2010 2:17 PM To: rancid-discuss at shrubbery.net Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. hi im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. i created local user account of priviledge level 15 and password configured. then i configuerd the vi .cloginrc file like following add user 192.168.1.1 testuser add password 192.168.1.1 testpassword testenablepassword add method 192.168.1.1 telnet then i test the connection RANCID#bin/clogin 192.168.1.1 192.168.1.1 spawn telnet 192.168.1.1 Trying 10.96.140.1... Connected to 192.168.1.1 (192.168.1.1). Escape character is '^]'. User Access Verification Username: test Password: TestRouter# then i check the config file. but i saw empty file called 192.168.1.1 . no any config inculded with the file . herewith i attach my log file . plz be kind enough to help me vi networking.20100514.172830 starting: Fri May 14 17:44:23 IST 2010 hourly config diffs failed: /tmp/.networking.run.lock exists -rw-r----- 1 rancid netadm 0 May 14 17:28 /tmp/.networking.run.lock ending: Fri May 14 17:44:23 IST 2010 tnx ________________________________ Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign up now. ?This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.co.za/legal/email.jsp " -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/f5c7b374/attachment.html From heas at shrubbery.net Fri May 14 15:19:33 2010 From: heas at shrubbery.net (john heasley) Date: Fri, 14 May 2010 08:19:33 -0700 Subject: [rancid] Re: FW: ERROR in rancid.......PLZ...Help.............................. In-Reply-To: <2462C3A55E5DA04395C77B0400E5300307004F2AEB@ZAMDC02104.vodacom.corp> References: <2462C3A55E5DA04395C77B0400E5300307004F2AEB@ZAMDC02104.vodacom.corp> Message-ID: <20100514151933.GF3342@shrubbery.net> Fri, May 14, 2010 at 05:15:02PM +0200, Drikus Brits: > HI, > > Using the clogin command will only log you into the router, and won't retrieve and store the configs by itself. That is what the rancid portion does. > > Looking below, you need to remove the priviledge level 15 from your user and let rancid log in using the enable command, if not this way , then you need to set your router to autoenable in the .cloginrc file. > > Configure your rancid portion next......this will then automagically retrieve and store your configs.... > > Try this using "rancid-run" once you have set it up...... > > Regards, > > Drikus > > > > > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt > Sent: Friday, May 14, 2010 2:17 PM > To: rancid-discuss at shrubbery.net > Subject: [rancid] FW: ERROR in rancid.......PLZ...Help.............................. > > > hi > > im having problem when connecting to the cisco 1841 router.I configured AAA in this and ssh enable. > > i created local user account of priviledge level 15 and password configured. > > then i configuerd the vi .cloginrc file like following > > add user 192.168.1.1 testuser > add password 192.168.1.1 testpassword testenablepassword > add method 192.168.1.1 telnet you need autoenable set; see cloginrc(5). > then i test the connection > > RANCID#bin/clogin 192.168.1.1 > 192.168.1.1 > spawn telnet 192.168.1.1 > Trying 10.96.140.1... > Connected to 192.168.1.1 (192.168.1.1). > Escape character is '^]'. > > User Access Verification > Username: test > Password: > TestRouter# ^ > then i check the config file. but i saw empty file called 192.168.1.1 . no any config inculded with the file . > > herewith i attach my log file . plz be kind enough to help me > > vi networking.20100514.172830 > > starting: Fri May 14 17:44:23 IST 2010 > hourly config diffs failed: /tmp/.networking.run.lock exists > -rw-r----- 1 rancid netadm 0 May 14 17:28 /tmp/.networking.run.lock > ending: Fri May 14 17:44:23 IST 2010 > > > tnx > ________________________________ > Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign up now. > > ?This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.co.za/legal/email.jsp " > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From smokeping123 at hotmail.com Fri May 14 15:41:53 2010 From: smokeping123 at hotmail.com (Smokeping slt) Date: Fri, 14 May 2010 21:41:53 +0600 Subject: [rancid] Re: patch expect with expect-hack1 In-Reply-To: <20100514152226.GG3342@shrubbery.net> References: , <20100514152226.GG3342@shrubbery.net> Message-ID: hi thank you very much for your response and spent your valuble time to reply me. i can download the expect and patch from the ftp site.but how can apply the patch to this expect i extract the expect and follow the steps below tar -xzf expect.tar.gz ./configure make make install im new to linux world . so plz be kind enough to tell me the steps to patch the expect ? or it's just enough to follow the above commnds ? your responses are really helpful to me tnx > Date: Fri, 14 May 2010 08:22:26 -0700 > From: heas at shrubbery.net > To: smokeping123 at hotmail.com > CC: rancid at shrubbery.net > Subject: Re: patch expect with expect-hack1 > > Fri, May 14, 2010 at 01:00:42PM +0600, Smokeping slt: > > > > hi > > > > > > > > i need to install rancid and experience with it. i feel its really a good software whicn can use in any Network Troubleshooting > > > > > > > > i install rancid on top of RHEL5 32 bit > > > > re > > > > i pre-installed the following version of expect and tcl using the RPM. > > > > > > > > expect-5.43.0-5.1.i386.rpm > > > > tcl-8.4.13-3.fc6.i386.rpm > > > > > > > > but in http://www.shrubbery.net/rancid/ they mention that expect need to patch with expect-hack1 . > > > > > > > > 1) is it must thing to do ? > > > > > > > > 2) if so using what command i patch the expect using expect-hack1 since i didnt install using the source > > > > > > > > your responses are highly appriciated > > if you are running on solaris or linux, you need the patch. you have to > build expect from source after adding the patch. patch(1) can help with > applying the patch. _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/1f07c300/attachment.html From rwest at zyedge.com Fri May 14 15:59:08 2010 From: rwest at zyedge.com (Ryan West) Date: Fri, 14 May 2010 15:59:08 +0000 Subject: [rancid] Re: patch expect with expect-hack1 In-Reply-To: References: , <20100514152226.GG3342@shrubbery.net> Message-ID: <5DC4853C6CC3EE4788779E0726E034DD230D2C@zy-ex1.zyedge.local> Smoke, It's my understanding that expect => 5.4.3 is fine, you shouldn't need to apply the patch. -ryan From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt Sent: Friday, May 14, 2010 11:42 AM To: heas at shrubbery.net; rancid-discuss at shrubbery.net Subject: [rancid] Re: patch expect with expect-hack1 hi thank you very much for your response and spent your valuble time to reply me. i can download the expect and patch from the ftp site.but how can apply the patch to this expect i extract the expect and follow the steps below tar -xzf expect.tar.gz ./configure make make install im new to linux world . so plz be kind enough to tell me the steps to patch the expect ? or it's just enough to follow the above commnds ? your responses are really helpful to me tnx > Date: Fri, 14 May 2010 08:22:26 -0700 > From: heas at shrubbery.net > To: smokeping123 at hotmail.com > CC: rancid at shrubbery.net > Subject: Re: patch expect with expect-hack1 > > Fri, May 14, 2010 at 01:00:42PM +0600, Smokeping slt: > > > > hi > > > > > > > > i need to install rancid and experience with it. i feel its really a good software whicn can use in any Network Troubleshooting > > > > > > > > i install rancid on top of RHEL5 32 bit > > > > re > > > > i pre-installed the following version of expect and tcl using the RPM. > > > > > > > > expect-5.43.0-5.1.i386.rpm > > > > tcl-8.4.13-3.fc6.i386.rpm > > > > > > > > but in http://www.shrubbery.net/rancid/ they mention that expect need to patch with expect-hack1 . > > > > > > > > 1) is it must thing to do ? > > > > > > > > 2) if so using what command i patch the expect using expect-hack1 since i didnt install using the source > > > > > > > > your responses are highly appriciated > > if you are running on solaris or linux, you need the patch. you have to > build expect from source after adding the patch. patch(1) can help with > applying the patch. ________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100514/08f18b0c/attachment.html From heas at shrubbery.net Fri May 14 16:06:02 2010 From: heas at shrubbery.net (heas at shrubbery.net) Date: Fri, 14 May 2010 09:06:02 -0700 Subject: [rancid] Re: patch expect with expect-hack1 In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD230D2C@zy-ex1.zyedge.local> References: <20100514152226.GG3342@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD230D2C@zy-ex1.zyedge.local> Message-ID: <20100514160602.GI3342@shrubbery.net> Fri, May 14, 2010 at 03:59:08PM +0000, Ryan West: > Smoke, > > It's my understanding that expect => 5.4.3 is fine, you shouldn't need to apply the patch. that is not my understanding, but i am not a linux user and have just blindly kept the patch for solaris. however, i didnt notice anything in the changelogs for expect or tcl that seemed like they'd have been a fix for the hanging problem. but, i dont have time to teach source patching, so ftp://ftp.shrubbery.net/pub/rancid: 419691 May 14 15:57 expect-5.43.0.tar.bz2 421271 May 14 15:59 expect-5.43.0_hack.tar.bz2 3653369 May 14 15:57 tcl8.4.18-src.tar.gz expect w/ the hack applied and its associated tcl, which I know works on solaris, freebsd and netbsd. > -ryan > > From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Smokeping slt > Sent: Friday, May 14, 2010 11:42 AM > To: heas at shrubbery.net; rancid-discuss at shrubbery.net > Subject: [rancid] Re: patch expect with expect-hack1 > > hi > > thank you very much for your response and spent your valuble time to reply me. i can download the expect and patch from the ftp site.but how can apply the patch to this expect > > > i extract the expect and follow the steps below > > tar -xzf expect.tar.gz > > ./configure > > make > > make install > > > im new to linux world . so plz be kind enough to tell me the steps to patch the expect ? > > or > > it's just enough to follow the above commnds ? > > your responses are really helpful to me > > tnx > > > Date: Fri, 14 May 2010 08:22:26 -0700 > > From: heas at shrubbery.net > > To: smokeping123 at hotmail.com > > CC: rancid at shrubbery.net > > Subject: Re: patch expect with expect-hack1 > > > > Fri, May 14, 2010 at 01:00:42PM +0600, Smokeping slt: > > > > > > hi > > > > > > > > > > > > i need to install rancid and experience with it. i feel its really a good software whicn can use in any Network Troubleshooting > > > > > > > > > > > > i install rancid on top of RHEL5 32 bit > > > > > > re > > > > > > i pre-installed the following version of expect and tcl using the RPM. > > > > > > > > > > > > expect-5.43.0-5.1.i386.rpm > > > > > > tcl-8.4.13-3.fc6.i386.rpm > > > > > > > > > > > > but in http://www.shrubbery.net/rancid/ they mention that expect need to patch with expect-hack1 . > > > > > > > > > > > > 1) is it must thing to do ? > > > > > > > > > > > > 2) if so using what command i patch the expect using expect-hack1 since i didnt install using the source > > > > > > > > > > > > your responses are highly appriciated > > > > if you are running on solaris or linux, you need the patch. you have to > > build expect from source after adding the patch. patch(1) can help with > > applying the patch. > ________________________________ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now. From rwest at zyedge.com Fri May 14 16:16:45 2010 From: rwest at zyedge.com (Ryan West) Date: Fri, 14 May 2010 16:16:45 +0000 Subject: [rancid] Re: patch expect with expect-hack1 In-Reply-To: <20100514160602.GI3342@shrubbery.net> References: <20100514152226.GG3342@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD230D2C@zy-ex1.zyedge.local> <20100514160602.GI3342@shrubbery.net> Message-ID: <5DC4853C6CC3EE4788779E0726E034DD230DB5@zy-ex1.zyedge.local> > -----Original Message----- > Sent: Friday, May 14, 2010 12:06 PM > To: Ryan West > Cc: Smokeping slt; heas at shrubbery.net; rancid-discuss at shrubbery.net > Subject: Re: [rancid] Re: patch expect with expect-hack1 > > Fri, May 14, 2010 at 03:59:08PM +0000, Ryan West: > > Smoke, > > > > It's my understanding that expect => 5.4.3 is fine, you shouldn't need to > apply the patch. > > that is not my understanding, but i am not a linux user and have just > blindly kept the patch for solaris. however, i didnt notice anything > in the changelogs for expect or tcl that seemed like they'd have been > a fix for the hanging problem. > > but, i dont have time to teach source patching, so > ftp://ftp.shrubbery.net/pub/rancid: > > 419691 May 14 15:57 expect-5.43.0.tar.bz2 > 421271 May 14 15:59 expect-5.43.0_hack.tar.bz2 > 3653369 May 14 15:57 tcl8.4.18-src.tar.gz > > expect w/ the hack applied and its associated tcl, which I know works on > solaris, freebsd and netbsd. > Has anyone successfully compiled the expect hack for 5.43 on Linux? -ryan From heas at shrubbery.net Fri May 14 16:20:50 2010 From: heas at shrubbery.net (john heasley) Date: Fri, 14 May 2010 09:20:50 -0700 Subject: [rancid] Re: patch expect with expect-hack1 In-Reply-To: <5DC4853C6CC3EE4788779E0726E034DD230DB5@zy-ex1.zyedge.local> References: <20100514152226.GG3342@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD230D2C@zy-ex1.zyedge.local> <20100514160602.GI3342@shrubbery.net> <5DC4853C6CC3EE4788779E0726E034DD230DB5@zy-ex1.zyedge.local> Message-ID: <20100514162050.GM3342@shrubbery.net> Fri, May 14, 2010 at 04:16:45PM +0000, Ryan West: > > > > -----Original Message----- > > Sent: Friday, May 14, 2010 12:06 PM > > To: Ryan West > > Cc: Smokeping slt; heas at shrubbery.net; rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Re: patch expect with expect-hack1 > > > > Fri, May 14, 2010 at 03:59:08PM +0000, Ryan West: > > > Smoke, > > > > > > It's my understanding that expect => 5.4.3 is fine, you shouldn't need to > > apply the patch. > > > > that is not my understanding, but i am not a linux user and have just > > blindly kept the patch for solaris. however, i didnt notice anything > > in the changelogs for expect or tcl that seemed like they'd have been > > a fix for the hanging problem. > > > > but, i dont have time to teach source patching, so > > ftp://ftp.shrubbery.net/pub/rancid: > > > > 419691 May 14 15:57 expect-5.43.0.tar.bz2 > > 421271 May 14 15:59 expect-5.43.0_hack.tar.bz2 > > 3653369 May 14 15:57 tcl8.4.18-src.tar.gz > > > > expect w/ the hack applied and its associated tcl, which I know works on > > solaris, freebsd and netbsd. > > > > Has anyone successfully compiled the expect hack for 5.43 on Linux? either of those patches should work. the solaris one, while slower, should work for either and is technically more programmatically clean. From bmahaffey at pelco.com Mon May 17 16:43:21 2010 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Mon, 17 May 2010 09:43:21 -0700 Subject: [rancid] Unable to fetch data with hlogin In-Reply-To: <4BBAF403456ED74981E7164ED3A4C22401EF84EA@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C22401EF84EA@CA-EVS02.pelco.org> Message-ID: <4BBAF403456ED74981E7164ED3A4C22401FE1CC3@CA-EVS02.pelco.org> Rancid 2.3.3 expect 5.43 When rancid runs I am unable to collect data from HP switches via hlogin I get an error in the log file. When I manually run hlogin -c 'show run' HP5308-B6-1 I get a device timeout. If I run hlogin HP5308-B6-1 rancid logins successfully. I have tried this on another HP 5406 switch with the same issues. -bash-3.2$ hlogin HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: ProCurve J4819A Switch 5308xl Software revision E.11.10 HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# exit HP5308-B6-1> exit Do you want to log out [y/n]? y ----------------------------------------------------- -bash-3.2$ hlogin -c 'show run' HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# couldn't compile regular expression pattern: parentheses () not balanced while executing ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }" invoked from within "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 9) invoked from within "run_commands $prompt $command" ("foreach" body line 148) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) --------------------------------------------------------------- I don't know how much of this is relevant for you my apologizes I just grabbed a snip from the log file. "expect {re "\[\n\r]+"md{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"-b-re $repromptrun{}ot found (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withind(s): show stack,show module,show flash,show version,show system-information,write term,show system information (procedure "run_commands" line 9) invoked from withine 148) "run_commands $prompt $command"w stack,show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"intolower $router]show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"g tolower $router] ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""t.{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[in" line 594) ]+} { exp_continue }""mm{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information invoked from withine{}48)found "expect {re "\[\n\r]+"mm{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withine 148) $i end] { (procedure "run_commands" line 9)r] invoked from withine 148) $i end] { "run_commands $prompt $command"$router]tern: parentheses () not balanced ("foreach" body line 148) $i end] {login" line 594) invoked from withintolower $router]tern: parentheses () not balanced "foreach router [lrange $argv $i end] {login" line 594) set router [string tolower $router]tern: parentheses () not balanced send_user "$router\n"s/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[n: parentheses () not balanced ]+} { exp_continue }"/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[w module,show flash,show version,show system-information,write term,show system information ]+} { exp_continue }"un not found invoked from withind{}): show stack,show module,show flash,show version,show system-information,write term,show system information "expect {re "\[\n\r]+"un{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"voked from withinn not found (procedure "run_commands" line 9)k,show module,show flash,show version,show system-information,write term,show system information invoked from withine 148)ound "run_commands $prompt $command" ("foreach" body line 148) $i end] { invoked from withintolower $router] "foreach router [lrange $argv $i end] {show module,show flash,show version,show system-information,write term,show system information set router [string tolower $router] send_user "$router\n" set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100517/e2006952/attachment.html From smokeping123 at hotmail.com Mon May 17 13:39:54 2010 From: smokeping123 at hotmail.com (Smokeping slt) Date: Mon, 17 May 2010 19:39:54 +0600 Subject: [rancid] ERROR: cvsweb in rancid............ Message-ID: hi i successfully install the rancid 2.3.3 cersion. now i want this to integrate with cvsweb http:///cgi-bin/cvsweb.cgi/?cvsroot=networking#dirlist but i cannot see any config files in here (attached) here are my file location CVSROOT : /usr/local/rancid/var/CVS my configs : /usr/local/rancid/var/networking/configs/ --------> all the config there after execute the rancid-run here is my log file starting: Mon May 17 11:47:24 IST 2010 /usr/local/rancid/dead.letter... Saved message in /usr/local/rancid/dead.letter cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `192.168.1.2' cvs [commit aborted]: correct above errors first! Added 192.168.1.2 cvs status: cannot open CVS/Entries for reading: No such file or directory cvs status: use `cvs add' to create an entry for 192.168.1.1 cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs added missing router 192.168.1.1 cvs status: cannot open CVS/Entries for reading: No such file or directory cvs status: use `cvs add' to create an entry for 192.168.1.2 cvs add: in directory .: cvs [add aborted]: there is no version here; do 'cvs checkout' first cvs added missing router 192.168.1.2 Trying to get all of the configs. All routers sucessfully completed. cvs diff: in directory .: cvs [diff aborted]: there is no version here; run 'cvs checkout' first cvs commit: in directory .: cvs [commit aborted]: there is no version here; run 'cvs checkout' first ending: Mon May 17 11:47:45 IST 2010 plz be kind enough to get the work CVSWEB . tnx a lot _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100517/c3516f1b/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: cvs.JPG Type: image/jpeg Size: 87967 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100517/c3516f1b/attachment.jpe From flavio at itplanet.tn.it Thu May 20 09:16:22 2010 From: flavio at itplanet.tn.it (Flavio Vettori) Date: Thu, 20 May 2010 11:16:22 +0200 Subject: [rancid] "Proxied" config backups Message-ID: <4BF4FDE6.2080901@itplanet.tn.it> Hi all, hope not to break ml policy as this is my first post here, that case I apologize in advance. I would ask people here about the chance to use one rancid-managed network box (in my case Cisco IOS devices such routers and switches) to reach other boxes "behind" it and this way do the things rancid does so well. I've already seen this post: http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html and also this one: http://www.shrubbery.net/pipermail/rancid-discuss/2006-June/001550.html But it needs kind a coder to get that solution work and I couldn't manage to after some hours of trying. Ain't this a smart feature to implement? I'm pretty sure others would appreciate it and I feel (ok ok, these are my not-coder's feelings) it isn't so hard to implement (isn't it some kind of "recursive" call?). Thanks -- Flavio Vettori *IT** Pl at net S.r.l - */Consulente// IT/ From marty at supine.com Thu May 20 11:23:58 2010 From: marty at supine.com (Martin Barry) Date: Thu, 20 May 2010 13:23:58 +0200 Subject: [rancid] Re: "Proxied" config backups In-Reply-To: <4BF4FDE6.2080901@itplanet.tn.it> References: <4BF4FDE6.2080901@itplanet.tn.it> Message-ID: <20100520112358.GB20502@merboo.mamista.net> $quoted_author = "Flavio Vettori" ; > > I would ask people here about the chance to use one rancid-managed > network box (in my case Cisco IOS devices such routers and switches) to > reach other boxes "behind" it and this way do the things rancid does so > well. > > I've already seen this post: > > http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html > > and also this one: > > http://www.shrubbery.net/pipermail/rancid-discuss/2006-June/001550.html > > But it needs kind a coder to get that solution work and I couldn't > manage to after some hours of trying. I set this up late last year. http://supine.com/weblog/tech/software/rancid_with_bzr_and_multihop.html Try that newer version of the patch and see how you go. cheers Marty From flavio at itplanet.tn.it Thu May 20 14:03:14 2010 From: flavio at itplanet.tn.it (Flavio Vettori) Date: Thu, 20 May 2010 16:03:14 +0200 Subject: [rancid] Re: "Proxied" config backups In-Reply-To: <20100520112358.GB20502@merboo.mamista.net> References: <4BF4FDE6.2080901@itplanet.tn.it> <20100520112358.GB20502@merboo.mamista.net> Message-ID: <4BF54122.8080501@itplanet.tn.it> Great, this helped A LOT! Anyway I've realized that I was completely wrong using cloginrc settings with the new "usercmd" method (me dummy): looking at you example showed me the Right Way, so with the correct syntax in config file I was already done with the old patch. Thank you so much. Flavio Il 20/05/2010 13.23, Martin Barry ha scritto: > $quoted_author = "Flavio Vettori" ; > >> I would ask people here about the chance to use one rancid-managed >> network box (in my case Cisco IOS devices such routers and switches) to >> reach other boxes "behind" it and this way do the things rancid does so >> well. >> >> I've already seen this post: >> >> http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html >> >> and also this one: >> >> http://www.shrubbery.net/pipermail/rancid-discuss/2006-June/001550.html >> >> But it needs kind a coder to get that solution work and I couldn't >> manage to after some hours of trying. >> > I set this up late last year. > > http://supine.com/weblog/tech/software/rancid_with_bzr_and_multihop.html > > Try that newer version of the patch and see how you go. > > cheers > Marty > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > -- Flavio Vettori *IT** Pl at net S.r.l - */Consulente// IT/ *flavio at itplanet.tn.it *** +39 0461 349555 ______________________________________________________________________ ______________________________________________________________________ Get Thunderbird From collabrotech at gmail.com Thu May 20 23:47:52 2010 From: collabrotech at gmail.com (A J) Date: Thu, 20 May 2010 16:47:52 -0700 (PDT) Subject: [rancid] not logging in Message-ID: I need to make rancid use the username "admin". How do I do that? here's my cloginrc file: # # Sample .clogin.rc file # #add user 10.2.188.12 admin add password * password! password! add method * ssh telnet This is what happens when I test: bash-3.2$ vi /usr/local/rancid/.cloginrc bash-3.2$ /usr/local/rancid/bin/clogin 10.2.188.12 10.2.188.12 spawn ssh -c 3des -x -l rancid 10.2.188.12 Password: Password: Password: rancid at 10.2.188.12's password: Connection closed by 10.2.188.12 spawn telnet 10.2.188.12 Error: telnet failed: couldn't execute "telnet": no such file or directory bash-3.2$ vi /usr/local/rancid/.cloginrc bash-3.2$ exit exit thanks! From ron.whitney at doitbest.com Fri May 21 17:09:41 2010 From: ron.whitney at doitbest.com (Ron Whitney) Date: Fri, 21 May 2010 13:09:41 -0400 Subject: [rancid] Re: not logging in In-Reply-To: Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6503EE77E7@EXCHANGE1.ntserv.doitbestcorp.com> > #add user 10.2.188.12 admin > add password * password! password! > add method * ssh telnet It appears that you have the "add user" line commented out so RANCID is ignoring it and using the default user. Remove the "#" at the beginning of that first line. Ron From bmahaffey at pelco.com Fri May 21 17:44:12 2010 From: bmahaffey at pelco.com (Mahaffey, Brian) Date: Fri, 21 May 2010 10:44:12 -0700 Subject: [rancid] Unable to fetch data with hlogin In-Reply-To: <4BBAF403456ED74981E7164ED3A4C22401EF84EA@CA-EVS02.pelco.org> References: <4BBAF403456ED74981E7164ED3A4C22401EF84EA@CA-EVS02.pelco.org> Message-ID: <4BBAF403456ED74981E7164ED3A4C22401FE203D@CA-EVS02.pelco.org> Rancid 2.3.3 expect 5.43 When rancid runs I am unable to collect data from HP switches via hlogin I get an error in the log file. When I manually run hlogin -c 'show run' HP5308-B6-1 I get a device timeout. If I run hlogin HP5308-B6-1 rancid logins successfully. I have tried this on another HP 5406 switch with the same issues. -bash-3.2$ hlogin HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: ProCurve J4819A Switch 5308xl Software revision E.11.10 HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# exit HP5308-B6-1> exit Do you want to log out [y/n]? y ----------------------------------------------------- -bash-3.2$ hlogin -c 'show run' HP5308-B6-1 hp5308-b6-1 spawn ssh -c 3des -x -l rancid hp5308-b6-1 rancid at hp5308-b6-1's password: HP5308-B6-1> enable Password: HP5308-B6-1# HP5308-B6-1# couldn't compile regular expression pattern: parentheses () not balanced while executing ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }" invoked from within "expect { -re $reprompt {} -re "\[\n\r]+" { exp_continue } }" (procedure "run_commands" line 9) invoked from within "run_commands $prompt $command" ("foreach" body line 148) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # device timeout set timeout [find t..." (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) --------------------------------------------------------------- I don't know how much of this is relevant for you my apologizes I just grabbed a snip from the log file. "expect {re "\[\n\r]+"md{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"-b-re $repromptrun{}ot found (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withind(s): show stack,show module,show flash,show version,show system-information,write term,show system information (procedure "run_commands" line 9) invoked from withine 148) "run_commands $prompt $command"w stack,show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"intolower $router]show module,show flash,show version,show system-information,write term,show system information ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }"g tolower $router] ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""t.{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[in" line 594) ]+} { exp_continue }""mm{ exp_continue }ern: parentheses () not balanced ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[ ]+} { exp_continue }""mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information invoked from withine{}48)found "expect {re "\[\n\r]+"mm{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue } }"voked from withine 148) $i end] { (procedure "run_commands" line 9)r] invoked from withine 148) $i end] { "run_commands $prompt $command"$router]tern: parentheses () not balanced ("foreach" body line 148) $i end] {login" line 594) invoked from withintolower $router]tern: parentheses () not balanced "foreach router [lrange $argv $i end] {login" line 594) set router [string tolower $router]tern: parentheses () not balanced send_user "$router\n"s/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[n: parentheses () not balanced ]+} { exp_continue }"/apps/rancid/bin/hlogin" line 594) ^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[w module,show flash,show version,show system-information,write term,show system information ]+} { exp_continue }"un not found invoked from withind{}): show stack,show module,show flash,show version,show system-information,write term,show system information "expect {re "\[\n\r]+"un{ exp_continue } }" -re $reprompt {} (pro-re "\[\n\r]+"mm{ exp_continue }show module,show flash,show version,show system-information,write term,show system information }"voked from withinn not found (procedure "run_commands" line 9)k,show module,show flash,show version,show system-information,write term,show system information invoked from withine 148)ound "run_commands $prompt $command" ("foreach" body line 148) $i end] { invoked from withintolower $router] "foreach router [lrange $argv $i end] {show module,show flash,show version,show system-information,write term,show system information set router [string tolower $router] send_user "$router\n" set timeout [find t..."pression pattern: parentheses () not balanced # device timeouti/apps/rancid/bin/hlogin" line 594) set timeout [find t..."pression pattern: parentheses () not balanced (file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594) This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. This transmission is intended only for use by the intended recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100521/647933ff/attachment.html From Stephane.Niles at gnb.ca Tue May 25 13:25:35 2010 From: Stephane.Niles at gnb.ca (=?iso-8859-1?Q?Niles=2C_St=E9phane_=28DSS=5CMAS=29?=) Date: Tue, 25 May 2010 10:25:35 -0300 Subject: [rancid] Adding "show interfaces status" to rancid Message-ID: <7AD1B0314E99A44EA6616AC6F7F1A77B1FF3F51A19@GNBEX3.gnb.ca> Hi, I would like to add the "show interfaces status" command to rancid. From what I can gather from previous postings, I will need to: - Modify %commands : %commands=( 'show interfaces status' => "ShowIntStatus", ... - Modify @commands : @commands=( "show interfaces status", ... - Develop a new sub ("ShowIntStatus") to process/format the output Is there any other (easier) way to accomplish this, or is this the recommended approach? Has anyone already developed a sub for this command that would be willing to share? Thanks in advance for any assistance! St?phane -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100525/f64e8d10/attachment.html From pelle at hemmop.com Wed May 26 19:35:11 2010 From: pelle at hemmop.com (Per Carlson) Date: Wed, 26 May 2010 21:35:11 +0200 Subject: [rancid] Re: Adding "show interfaces status" to rancid In-Reply-To: <7AD1B0314E99A44EA6616AC6F7F1A77B1FF3F51A19@GNBEX3.gnb.ca> References: <7AD1B0314E99A44EA6616AC6F7F1A77B1FF3F51A19@GNBEX3.gnb.ca> Message-ID: Hi. > I would like to add the ?show interfaces status? command to rancid. From > what I can gather from previous postings, I will need to: > > -??????? Modify %commands : > %commands=( > > ??????? 'show interfaces status'????????? => "ShowIntStatus",? ? > > -??????? Modify @commands : > @commands=( > > ??????? "show interfaces status", ? Are you looking at an old RNACID version? In 2.3.2 there is only one list of hashes to modify: # Main @commandtable = ( {'admin show version' => 'ShowVersion'}, {'show version' => 'ShowVersion'}, ... {'write term' => 'WriteTerm'}, ); The actual %commands and @commands are automatically built based on @commandtable. To answer the question: yes just add {'show interfaces status' => "ShowIntStatus"}, to @commandtable. > -??????? Develop a new sub (?ShowIntStatus?) to process/format the output Correct. The hard part is to figure out how to use ProcessHistory. > Is there any other (easier) way to accomplish this, or is this the > recommended approach? AFAIK it's the recommended and only way. I would also recommend to put the code in a separate patch. That way it's easier to re-apply it whenever a new upstream is released. -- Pelle A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From skhehra at proofpoint.com Thu May 27 03:45:57 2010 From: skhehra at proofpoint.com (Sukh Khehra) Date: Wed, 26 May 2010 20:45:57 -0700 Subject: [rancid] broken pipe errors Message-ID: <52207F568D9B5847B313798CC0458D68029734@CUP-POSTAL1.corp.proofpoint.com> I downloaded version 2.3.3, compiled rpm with svn support (rpmbuild log pasted below), and installed on my system. I added a cisco and an juniper device to it to test with. Rancid seems to be able to fetch the juniper config fine but throws the following expect error on the cisco one. clogin to the cisco device works fine. Anyone have any ideas on what I am missing? :::::::::::::: Rancid log :::::::::::::: -bash-3.2$ cat snv.20100526.131835 starting: Wed May 26 13:18:35 PDT 2010 property 'svn:ignore' set on '.' A testcisco.sk.local Adding testcisco.sk.local Transmitting file data . Committed revision 5. Added testcisco.sk.local A testjuniper.sk.local Adding testjuniper.sk.local Transmitting file data . Committed revision 6. Added testjuniper.sk.local Trying to get all of the configs. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) testcisco.sk.local: missed cmd(s): write term,show running-config testcisco.sk.local: End of run not found ! ===================================== Getting missed routers: round 1. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) testcisco.sk.local: missed cmd(s): write term,show running-config testcisco.sk.local: End of run not found ! ===================================== Getting missed routers: round 2. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) testcisco.sk.local: missed cmd(s): write term,show running-config testcisco.sk.local: End of run not found ! ===================================== Getting missed routers: round 3. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) testcisco.sk.local: missed cmd(s): write term,show running-config testcisco.sk.local: End of run not found ! ===================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re+ { exp_continue } -re {^[^ *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)" } -re {^[^ ..." invoked from within "expect { -re "\b+" { exp_continue } -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprom..." (procedure "run_commands" line 39) invoked from within "run_commands $prompt $command" ("foreach" body line 155) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] # attempt at platform switching. set platform "" send_user ..." (file "/usr/bin/clogin" line 722) testcisco.sk.local: missed cmd(s): write term,show running-config testcisco.sk.local: End of run not found ! Sending . svn: Commit failed (details follow): svn: Out of date: '/snv' in transaction '7' ending: Wed May 26 13:20:11 PDT 2010 :::::::::::::: Rancid log :::::::::::::: $ clogin testcisco.sk.local testcisco.sk.local spawn ssh -c 3des -x -l rancid testcisco.sk.local rancid at testcisco.sk.local's password: testcisco>enable Password: testcisco# testcisco#exit Connection to testcisco.sk.local closed. :::::::::::::: RPM build log :::::::::::::: Executing(%prep): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.812 Executing(%build): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.812 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gmake... /usr/bin/gmake checking whether /usr/bin/gmake sets $(MAKE)... yes checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by /usr/bin/gmake... GNU checking dependency style of gcc... gcc3 checking for function prototypes... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking how to run the C preprocessor... gcc -E checking for an ANSI C-conforming const... yes checking for inline... inline checking for preprocessor stringizing operator... yes checking for ANSI C header files... (cached) yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking pty.h usability... yes checking pty.h presence... yes checking for pty.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for memory.h... (cached) yes checking siginfo.h usability... no checking siginfo.h presence... no checking for siginfo.h... no checking for string.h... (cached) yes checking for strings.h... (cached) yes checking stropts.h usability... yes checking stropts.h presence... yes checking for stropts.h... yes checking for sys/types.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking for unistd.h... (cached) yes checking util.h usability... no checking util.h presence... no checking for util.h... no checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking for memcpy... yes checking for memmove... yes checking for memset... yes checking for strerror... yes checking for strchr... yes checking for strrchr... yes checking for strstr... yes checking for strtok... yes checking for strrtok... no checking for index... yes checking for rindex... yes checking for unsetenv... yes checking for openpty... no checking for openpty in -lutil... yes checking return type of signal handlers... void checking for size_t... yes checking whether to create the local state directory at install time... yes checking whether to install sample .conf files in sysconfdir... yes checking whether subversion... yes fstype bdb checking whether mail addresses should be in the rancid+ form... no checking whether admin mail addresses should be in the rancid-admin+ form... rancid-admin- checking for dirname... /usr/bin/dirname checking for a diff(1) that supports -u... diff -U 4 checking for sendmail... /usr/sbin/sendmail checking for gnutar... no checking for gtar... gtar checking for automake... ${SHELL} /home/skhehra/packages/BUILD/rancid-2.3.3/missing --run automake-1.11 checking for perl5... no checking for perl... /usr/bin/perl checking for expect... /usr/bin/expect checking for ping... /bin/ping checking for svn... /usr/bin/svn checking for comm... /usr/bin/comm checking for find... /usr/bin/find checking for grep... (cached) /bin/grep checking for id... /usr/bin/id checking for mkdir... /bin/mkdir checking for rsh... /usr/kerberos/bin/rsh checking for sort... /bin/sort checking for ssh... /usr/bin/ssh checking for telnet... /usr/kerberos/bin/telnet checking for touch... /bin/touch configure: creating ./config.status config.status: creating Makefile config.status: creating bin/Makefile config.status: creating etc/Makefile config.status: creating include/Makefile config.status: creating man/Makefile config.status: creating share/Makefile config.status: creating include/version.h config.status: creating bin/control_rancid config.status: creating bin/par config.status: creating bin/rancid-fe config.status: creating bin/agmrancid config.status: creating bin/alogin config.status: creating bin/arancid config.status: creating bin/arrancid config.status: creating bin/avologin config.status: creating bin/avorancid config.status: creating bin/blogin config.status: creating bin/brancid config.status: creating bin/cat5rancid config.status: creating bin/clogin config.status: creating bin/rancid config.status: creating bin/cssrancid config.status: creating bin/elogin config.status: creating bin/erancid config.status: creating bin/f5rancid config.status: creating bin/f10rancid config.status: creating bin/flogin config.status: creating bin/francid config.status: creating bin/fnrancid config.status: creating bin/hlogin config.status: creating bin/hrancid config.status: creating bin/htlogin config.status: creating bin/htrancid config.status: creating bin/jlogin config.status: creating bin/jrancid config.status: creating bin/jerancid config.status: creating bin/mrancid config.status: creating bin/mrvlogin config.status: creating bin/mrvrancid config.status: creating bin/nlogin config.status: creating bin/nrancid config.status: creating bin/nslogin config.status: creating bin/nsrancid config.status: creating bin/nxrancid config.status: creating bin/prancid config.status: creating bin/rivlogin config.status: creating bin/rivrancid config.status: creating bin/rrancid config.status: creating bin/srancid config.status: creating bin/tlogin config.status: creating bin/tntlogin config.status: creating bin/tntrancid config.status: creating bin/trancid config.status: creating bin/xrancid config.status: creating bin/zrancid config.status: creating share/rtrfilter config.status: creating include/config.h config.status: executing depfiles commands Making all in . gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[1]: Nothing to be done for `all-am'. gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' Making all in include gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' /usr/bin/gmake all-am gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `all-am'. gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' Making all in etc gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' rm -f lg.conf.sample lg.conf.sample.tmp; \ sed -e 's, at bindir\@,/usr/bin,g' -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at ENV_PATH\@,/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin: /usr/bin,g' -e 's, at RCSSYS\@,svn,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at VERSION\@,2.3.3,g' ./lg.conf.sample.in >lg.conf.sample.tmp; \ mv lg.conf.sample.tmp lg.conf.sample rm -f rancid.conf.sample rancid.conf.sample.tmp; \ sed -e 's, at bindir\@,/usr/bin,g' -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at ENV_PATH\@,/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin: /usr/bin,g' -e 's, at RCSSYS\@,svn,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at VERSION\@,2.3.3,g' ./rancid.conf.sample.in >rancid.conf.sample.tmp; \ mv rancid.conf.sample.tmp rancid.conf.sample gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' Making all in bin gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gcc -DHAVE_CONFIG_H -I. -I../include -g -O0 -MT hpuifilter.o -MD -MP -MF .deps/hpuifilter.Tpo -c -o hpuifilter.o hpuifilter.c mv -f .deps/hpuifilter.Tpo .deps/hpuifilter.Po gcc -g -O0 -o hpuifilter hpuifilter.o -lutil rm -f lg.cgi lg.cgi.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type bdb,g' -e 's, at VERSION\@,2.3.3,g' ./lg.cgi.in >lg.cgi.tmp; \ chmod +x lg.cgi.tmp; \ mv lg.cgi.tmp lg.cgi rm -f lgform.cgi lgform.cgi.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type bdb,g' -e 's, at VERSION\@,2.3.3,g' ./lgform.cgi.in >lgform.cgi.tmp; \ chmod +x lgform.cgi.tmp; \ mv lgform.cgi.tmp lgform.cgi rm -f rancid-cvs rancid-cvs.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type bdb,g' -e 's, at VERSION\@,2.3.3,g' ./rancid-cvs.in >rancid-cvs.tmp; \ chmod +x rancid-cvs.tmp; \ mv rancid-cvs.tmp rancid-cvs rm -f rancid-run rancid-run.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at EXPECT_PATH\@,/usr/bin/expect,g' -e 's, at PERLV\@,perl,g' -e 's, at PERLV_PATH\@,/usr/bin/perl,g' -e 's, at LG_PING_CMD\@,/bin/ping -c 1,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' -e 's, at PACKAGE\@,rancid,g' -e 's, at SVN_FSTYPE\@,--fs-type bdb,g' -e 's, at VERSION\@,2.3.3,g' ./rancid-run.in >rancid-run.tmp; \ chmod +x rancid-run.tmp; \ mv rancid-run.tmp rancid-run gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' Making all in man gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' rm -f lg.conf.5 lg.conf.5.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at bindir\@,/usr/bin,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at pkgdatadir\@,/usr/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./lg.conf.5.in >lg.conf.5.tmp; \ mv lg.conf.5.tmp lg.conf.5 rm -f rancid.conf.5 rancid.conf.5.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at bindir\@,/usr/bin,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at pkgdatadir\@,/usr/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./rancid.conf.5.in >rancid.conf.5.tmp; \ mv rancid.conf.5.tmp rancid.conf.5 rm -f lg_intro.1 lg_intro.1.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at bindir\@,/usr/bin,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at pkgdatadir\@,/usr/share/rancid,g' -e 's, at ADMINMAILPLUS\@,rancid-admin-,g' -e 's, at MAILPLUS\@,rancid-,g' ./lg_intro.1.in >lg_intro.1.tmp; \ mv lg_intro.1.tmp lg_intro.1 gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' Making all in share gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' rm -f downreport downreport.tmp; \ sed -e 's, at prefix\@,/usr,g' -e 's, at localstatedir\@,/var/rancid,g' -e 's, at sysconfdir\@,/etc,g' -e 's, at pkgdatadir\@,/usr/share/rancid,g' ./downreport.in >downreport.tmp; \ chmod +x downreport.tmp; \ mv downreport.tmp downreport gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' Executing(%install): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.9688 Making install in . gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `install-exec-am'. test -z "/usr/share/rancid" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid" /usr/bin/install -c -m 644 COPYING CHANGES FAQ README README.lg UPGRADING cloginrc.sample '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid' /usr/bin/gmake install-data-hook gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' /bin/sh ./mkinstalldirs /home/skhehra/packages/tmp/rancid-2.3.3-root/usr /home/skhehra/packages/tmp/rancid-2.3.3-root/etc /home/skhehra/packages/tmp/rancid-2.3.3-root/var/rancid; mkdir -p -- /home/skhehra/packages/tmp/rancid-2.3.3-root/etc /home/skhehra/packages/tmp/rancid-2.3.3-root/var/rancid gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' Making install in include gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `install-exec-am'. gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/include' Making install in etc gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `install-exec-am'. test -z "/usr/share/rancid" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid" /usr/bin/install -c -m 644 lg.conf.sample rancid.conf.sample '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/etc' Making install in bin gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' test -z "/usr/bin" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/bin" /usr/bin/install -c hpuifilter '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/bin' test -z "/usr/bin" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/bin" /usr/bin/install -c agmrancid alogin arancid arrancid avologin avorancid blogin brancid cat5rancid clogin control_rancid cssrancid elogin erancid f5rancid f10rancid flogin fnrancid francid hlogin hrancid htlogin htrancid jerancid jlogin jrancid mrancid mrvlogin mrvrancid nlogin nrancid nslogin nsrancid nxrancid par prancid rancid-fe rancid rivlogin rivrancid '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/bin' /usr/bin/install -c rrancid srancid tlogin tntlogin tntrancid trancid xrancid zrancid lg.cgi lgform.cgi rancid-cvs rancid-run '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/bin' gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/bin' Making install in man gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `install-exec-am'. test -z "/usr/share/man/man1" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/man/man1" /usr/bin/install -c -m 644 agmrancid.1 alogin.1 arancid.1 arrancid.1 avologin.1 avorancid.1 blogin.1 brancid.1 cat5rancid.1 clogin.1 control_rancid.1 cssrancid.1 elogin.1 erancid.1 f5rancid.1 f10rancid.1 flogin.1 fnrancid.1 francid.1 hlogin.1 hrancid.1 htlogin.1 htrancid.1 jerancid.1 jlogin.1 jrancid.1 mrancid.1 mrvlogin.1 mrvrancid.1 nlogin.1 nrancid.1 nslogin.1 nsrancid.1 nxrancid.1 par.1 prancid.1 rancid-cvs.1 rancid-run.1 rancid.1 rancid_intro.1 '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/man/man1' /usr/bin/install -c -m 644 rivlogin.1 rivrancid.1 rrancid.1 srancid.1 tlogin.1 tntlogin.1 tntrancid.1 trancid.1 xrancid.1 zrancid.1 lg_intro.1 '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/man/man1' test -z "/usr/share/man/man5" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/man/man5" /usr/bin/install -c -m 644 cloginrc.5 router.db.5 lg.conf.5 rancid.conf.5 '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/man/man5' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/man' Making install in share gmake[1]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' gmake[3]: Entering directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[3]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3' gmake[2]: Nothing to be done for `install-exec-am'. test -z "/usr/share/rancid" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid" /usr/bin/install -c -m 644 README.misc cisco-load.exp cisco-reload.exp index.html lgnotes.html '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid' test -z "/usr/share/rancid" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid" /usr/bin/install -c getipacctg '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid' test -z "/usr/share/rancid" || /bin/mkdir -p "/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid" /usr/bin/install -c rtrfilter downreport '/home/skhehra/packages/tmp/rancid-2.3.3-root/usr/share/rancid' gmake[2]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' gmake[1]: Leaving directory `/home/skhehra/packages/BUILD/rancid-2.3.3/share' Processing files: rancid-2.3.3-2 Executing(%doc): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.83377 Provides: config(rancid) = 2.3.3-2 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh Requires(postun): /bin/sh Requires: /bin/sh /usr/bin/expect /usr/bin/perl config(rancid) = 2.3.3-2 expect >= 5.40 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.2.5)(64bit) perl >= 1:5 perl(Getopt::Std) rtld(GNU_HASH) subversion Processing files: rancid-lg-2.3.3-2 Executing(%doc): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.31638 Provides: config(rancid-lg) = 2.3.3-2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/perl config(rancid-lg) = 2.3.3-2 perl(CGI) perl(LockFile::Simple) perl(POSIX) perl(Sys::Syslog) Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/skhehra/packages/tmp/rancid-2.3.3-root Wrote: /home/skhehra/packages/RPMS/x86_64/rancid-2.3.3-2.x86_64.rpm Wrote: /home/skhehra/packages/RPMS/x86_64/rancid-lg-2.3.3-2.x86_64.rpm Executing(%clean): /bin/sh -e /home/skhehra/packages/tmp/rpm-tmp.63032 From heas at shrubbery.net Thu May 27 08:13:16 2010 From: heas at shrubbery.net (john heasley) Date: Thu, 27 May 2010 01:13:16 -0700 Subject: [rancid] Re: broken pipe errors In-Reply-To: <52207F568D9B5847B313798CC0458D68029734@CUP-POSTAL1.corp.proofpoint.com> References: <52207F568D9B5847B313798CC0458D68029734@CUP-POSTAL1.corp.proofpoint.com> Message-ID: <20100527081316.GF27854@shrubbery.net> Wed, May 26, 2010 at 08:45:57PM -0700, Sukh Khehra: > I downloaded version 2.3.3, compiled rpm with svn support (rpmbuild log > pasted below), and installed on my system. I added a cisco and an > juniper device to it to test with. Rancid seems to be able to fetch the > juniper config fine but throws the following expect error on the cisco > one. clogin to the cisco device works fine. Anyone have any ideas on > what I am missing? > > Trying to get all of the configs. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re+ { exp_continue } -re {^[^ > *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- > "$expect_out(buffer)" > } -re {^[^ > ..." > invoked from within > "expect { > -re "\b+" { exp_continue } > -re "^\[^\n\r *]*$reprompt" { send_user -- > "$expect_out(buffer)" > } > -re "^\[^\n\r]*$reprom..." > (procedure "run_commands" line 39) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 155) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > # attempt at platform switching. > set platform "" > send_user ..." > (file "/usr/bin/clogin" line 722) > testcisco.sk.local: missed cmd(s): write term,show running-config > testcisco.sk.local: End of run not found youre not missing anything. the device probably has a bug with one of the commands and its closing the connection prematurely. pass the commands that rancid runs in clogin -c 'commands;...' to figure-out which one is making it angry. From pelle at hemmop.com Fri May 28 07:46:24 2010 From: pelle at hemmop.com (Per Carlson) Date: Fri, 28 May 2010 09:46:24 +0200 Subject: [rancid] Re: Adding "show interfaces status" to rancid In-Reply-To: <7AD1B0314E99A44EA6616AC6F7F1A77B1FF3F51A19@GNBEX3.gnb.ca> References: <7AD1B0314E99A44EA6616AC6F7F1A77B1FF3F51A19@GNBEX3.gnb.ca> Message-ID: > I would like to add the ?show interfaces status? command to rancid. From > what I can gather from previous postings, I will need to: > > -??????? Modify %commands : > %commands=( > ??????? 'show interfaces status'????????? => "ShowIntStatus",? ? > > -??????? Modify @commands : > @commands=( > ??????? "show interfaces status", ? Are you looking at an old RANCID version? In 2.3.2 there is only one list of hashes to modify: # Main @commandtable = ( {'admin show version' => 'ShowVersion'}, {'show version' => 'ShowVersion'}, ... {'write term' => 'WriteTerm'}, ); The actual %commands and @commands variables are automatically built based on @commandtable. To answer the question: yes, just add {'show interfaces status' => "ShowIntStatus"}, to @commandtable. > - Develop a new sub (?ShowIntStatus?) to process/format the output Correct. The hard part is to figure out how to use ProcessHistory. > Is there any other (easier) way to accomplish this, or is this the > recommended approach? AFAIK it's the recommended and only way. I would also recommend to put the code in a separate patch. That way it's easier to re-apply it whenever a new upstream is released. -- Pelle A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From Steve at host-it.co.uk Fri May 28 12:43:48 2010 From: Steve at host-it.co.uk (Steve Ousley) Date: Fri, 28 May 2010 13:43:48 +0100 Subject: [rancid] changes in routers Message-ID: Hi All I've just upgraded our rancid box from Debian Etch to Lenny (rather late I know, but hey). Anyway, after the upgrade, I ran a manual rancid-run on a specific firewall, and all seemed ok. What I did notice was that there was an email generated for each group stating a list of routers who's status had changed to down, the list, however, consisted of no routers. I thought this was maybe an oddity as it was the first run of rancid since the update, so ignored it. Now, after it's scheduled run, I get the email again. Literally the entire contents of the email is: "Routers changed to down:" Does anyone have any ideas why seemingly the upgrade to Lenny could have caused this? Out of interest, i'm using a slightly older version of rancid, as I've found it a pain on our systems to get the latest version up and running, but have not encountered this issue at all on our older etch system. If anyone has any ideas what could be causing this, and how we could fix it to stop generating these "blank" emails, it would be much appreciated TIA Steve Ousley steve at host-it.co.uk Nuco Technologies Ltd Unit 1 - Northampton Science Park - Kings Park Road - Moulton Park - Northampton - England - NN3 6LG TEL: (0844) 745 1300 FAX: (0844) 745 1303 Skype: nucotech-support WEB: www.host-it.co.uk www.nucotechnologies.com - www.computalynx.net - www.northampton.it ---------------------------------------------------------------- IMPORTANT - The information transmitted in this email is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please delete this email and inform domainadministrator at host-it.co.uk immediately ---------------------------------------------------------------- Nuco Technologies Ltd is a company registered in England and Wales with company number 04470751 (14) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100528/a671e757/attachment.html From heas at shrubbery.net Fri May 28 21:53:48 2010 From: heas at shrubbery.net (john heasley) Date: Fri, 28 May 2010 14:53:48 -0700 Subject: [rancid] Re: changes in routers In-Reply-To: References: Message-ID: <20100528215348.GG7486@shrubbery.net> Fri, May 28, 2010 at 01:43:48PM +0100, Steve Ousley: > What I did notice was that there was an email generated for each group stating a list of routers who's status had changed to down, the list, however, consisted of no routers. > > I thought this was maybe an oddity as it was the first run of rancid since the update, so ignored it. > > Now, after it's scheduled run, I get the email again. > > Literally the entire contents of the email is: > > > "Routers changed to down:" > > Does anyone have any ideas why seemingly the upgrade to Lenny could have caused this? this is most likely the configure script or the PATH in rancid.conf winding-up with arguments for diff that it doesnt like. see DIFF_CMD in the config.status file that was generated by configure.