From sronan at fattoc.com Fri Oct 2 01:46:44 2009 From: sronan at fattoc.com (Shane Ronan) Date: Thu, 1 Oct 2009 21:46:44 -0400 Subject: [rancid] Full Configs with every run... Message-ID: <8E825454-7A9D-4829-98D0-81F14F438963@fattoc.com> Hello, I am sure I've done something wrong. I am in the process of transitioning my Rancid installation from one box to another, using the same config, and same .cloginrc but having a big issue. On the new box, every time I run rancid-run, I am receiving the full config from all of my devices, as is if they were just added new. I am running Rancid version 2.3.2-3 with SVN as my backend. Does anyone have any suggestions as to what might be? Thanks, Shane From ron.whitney at doitbest.com Fri Oct 2 02:06:38 2009 From: ron.whitney at doitbest.com (Ron Whitney) Date: Thu, 1 Oct 2009 22:06:38 -0400 Subject: [rancid] Re: Full Configs with every run... In-Reply-To: <8E825454-7A9D-4829-98D0-81F14F438963@fattoc.com> Message-ID: <1FD6BFAE6EA54341821D01FB8E617B6501E4AEE9@EXCHANGE1.ntserv.doitbestcorp.com> > On the new box, every time I run rancid-run, I am receiving the full > config from all of my devices, as is if they were just added new. Initial guess would be a permissions issue with the CVS repository. Ensure that the Rancid user is unable to write/update the repository. Check the FAQ at http://www.shrubbery.net/rancid/FAQ for details. Good luck! Ron From heas at shrubbery.net Fri Oct 2 03:32:48 2009 From: heas at shrubbery.net (john heasley) Date: Fri, 2 Oct 2009 03:32:48 +0000 Subject: [rancid] Re: Full Configs with every run... In-Reply-To: <8E825454-7A9D-4829-98D0-81F14F438963@fattoc.com> References: <8E825454-7A9D-4829-98D0-81F14F438963@fattoc.com> Message-ID: <20091002033248.GB15770@shrubbery.net> Thu, Oct 01, 2009 at 09:46:44PM -0400, Shane Ronan: > Hello, > > I am sure I've done something wrong. I am in the process of > transitioning my Rancid installation from one box to another, using > the same config, and same .cloginrc but having a big issue. > > > On the new box, every time I run rancid-run, I am receiving the full > config from all of my devices, as is if they were just added new. > > I am running Rancid version 2.3.2-3 with SVN as my backend. > > Does anyone have any suggestions as to what might be? you'll have to check that file was properly added to the repository, is up to date (always should be) and that the rancid user has permissions to commit changes. look in the group's logs for errors. The fix should be obvious is you know how svn works. > Thanks, > Shane > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From shane.kavanagh at gmail.com Mon Oct 5 10:17:53 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Mon, 5 Oct 2009 11:17:53 +0100 Subject: [rancid] Rancid Reports Changes in router.db when no changes have been made Message-ID: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> All I am having an issued with rancid reporting changes in the routers.db file when no changes have been made. This is a random thing, rancid could run for days without reporting an issue then could report the same issue server time a day. Here is an example -----Original Message----- From: Racnd [mailto:rancid at gbedub-rancid01.GBE.local] Sent: 02 October 2009 17:00 To: rancid-admin-IFSC at gbedub-rancid01.GBE.local Subject: changes in IFSC routers Routers changed to up: intbt01-switch:cisco intcolt01-switch:cisco Added routers: intbt01-switch:cisco intcolt01-switch:cisco Deleted routers: intbt01-switch:cisco intcolt01-switch:cisco Any help, Ideas or Suggestions are welcome Regards Shane Kavanagh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/395764b4/attachment.html From shane.kavanagh at gmail.com Mon Oct 5 10:13:45 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Mon, 5 Oct 2009 11:13:45 +0100 Subject: [rancid] Rancid Reports Config Changes when none have taken place Message-ID: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> Hi all I am having an issue with rancid reporting changes to ports in a VLAN when no changes have taken place. Here is an example - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 - !VLAN: Fa1/0/9, Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 - !VLAN: Fa1/0/16, Gi1/0/2 + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 note that when rancid stores the information id broke it up onto 3 lines and when it retrieves the config again it has it on one line. This does not happen every time it retrieves the config. Any Ideas or suggestions welcome. Regards Shane Kavanagh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/b07b8067/attachment.html From shane.kavanagh at gmail.com Mon Oct 5 11:54:15 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Mon, 5 Oct 2009 12:54:15 +0100 Subject: [rancid] Re: Rancid Reports Config Changes when none have taken place In-Reply-To: <867d5e9c0910050442i51cd4e60xb17ee600aae5b249@mail.gmail.com> References: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> <867d5e9c0910050442i51cd4e60xb17ee600aae5b249@mail.gmail.com> Message-ID: <8cf6dff10910050454i5a70e1a3ve2a93d5ce26498d3@mail.gmail.com> Hi, Jose Thanks for the input, there seems to be no pattern to the event, unless I run rancid-run manually then I am guaranteed to get this error. however it seems to be from missing "," (commas) in the example below after FA 1/0/8 the cisco devices reports a comma after it but the archived version does not have this comma but then later on I get the reverse. I wonder if its the Cisco device going different reports, however the more I look into it, the more I can see all my devices been affected. - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 + !VLAN: Fa1/0/9, Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 + !VLAN: Fa1/0/16, Gi1/0/2 2009/10/5 Jose Madrid > I have had this issue as well and it seems like its a false positive due to > white space. When I get these, I just discard them. How often is it > happening? If it you can deal with it, I would just leave it alone. Maybe > someone else on here has had luck dealing with this. > > 2009/10/5 Shane Kavanagh > >> Hi all >> >> I am having an issue with rancid reporting changes to ports in a VLAN when >> no changes have taken place. >> >> Here is an example >> >> - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 >> - !VLAN: Fa1/0/9, >> Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 >> - !VLAN: Fa1/0/16, Gi1/0/2 >> + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, >> Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 >> >> note that when rancid stores the information id broke it up onto 3 lines >> and when it retrieves the config again it has it on one line. This does not >> happen every time it retrieves the config. >> >> Any Ideas or suggestions welcome. >> >> Regards >> >> Shane Kavanagh >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> > > > > -- > It has to start somewhere, it has to start sometime. What better place > than here? What better time than now? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/eac559eb/attachment.html From jmadrid2 at gmail.com Mon Oct 5 11:42:22 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Mon, 5 Oct 2009 07:42:22 -0400 Subject: [rancid] Re: Rancid Reports Config Changes when none have taken place In-Reply-To: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> References: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> Message-ID: <867d5e9c0910050442i51cd4e60xb17ee600aae5b249@mail.gmail.com> I have had this issue as well and it seems like its a false positive due to white space. When I get these, I just discard them. How often is it happening? If it you can deal with it, I would just leave it alone. Maybe someone else on here has had luck dealing with this. 2009/10/5 Shane Kavanagh > Hi all > > I am having an issue with rancid reporting changes to ports in a VLAN when > no changes have taken place. > > Here is an example > > - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 > - !VLAN: Fa1/0/9, Fa1/0/10, > Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 > - !VLAN: Fa1/0/16, Gi1/0/2 > + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, > Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 > > note that when rancid stores the information id broke it up onto 3 lines > and when it retrieves the config again it has it on one line. This does not > happen every time it retrieves the config. > > Any Ideas or suggestions welcome. > > Regards > > Shane Kavanagh > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/c8d2f9e6/attachment.html From networking at hostalia.com Mon Oct 5 13:59:51 2009 From: networking at hostalia.com (=?ISO-8859-1?Q?I=F1aki_Martinez_Diez?=) Date: Mon, 05 Oct 2009 15:59:51 +0200 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> Message-ID: <4AC9FBD7.4050706@hostalia.com> An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/0a27dac6/attachment.html From crok.bic at gmail.com Mon Oct 5 14:31:44 2009 From: crok.bic at gmail.com (Norbert Rozs) Date: Mon, 5 Oct 2009 16:31:44 +0200 Subject: [rancid] Config making problem Message-ID: Hi Everyone I have a strange problem with RANCID. Everything working fine with it, I have about 14..16 groups in my install and the problem is some of the groups working (login, make commands, get output, format the output and get cvs infos, make the config files in right place) but some of the groups not working (login, make commands, get output, format output but no configs in the right dirs.). So I tried all thing to troubleshoot: clogin works, all commands can run on the devices, but it is not working. Please give me some ideas what goes wrong, what could be the problem. The logs are empty, just a start statement and an end statement is in there. Thank you! -- Best regards: ----------- Norbert Rozs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/deb5f908/attachment.html From shane.kavanagh at gmail.com Mon Oct 5 15:41:32 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Mon, 5 Oct 2009 16:41:32 +0100 Subject: [rancid] Re: Config making problem In-Reply-To: References: Message-ID: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> Hi have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to update the rancid and populate the cvs app SK 2009/10/5 Norbert Rozs > Hi Everyone > > I have a strange problem with RANCID. Everything working fine with it, I > have about 14..16 groups > in my install and the problem is some of the groups working (login, make > commands, get output, > format the output and get cvs infos, make the config files in right place) > but some of the groups > not working (login, make commands, get output, format output but no configs > in the right dirs.). > So I tried all thing to troubleshoot: clogin works, all commands can run on > the devices, but it is > not working. Please give me some ideas what goes wrong, what could be the > problem. The logs > are empty, just a start statement and an end statement is in there. > > Thank you! > > -- > > > Best regards: > ----------- > Norbert Rozs > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091005/df5914c2/attachment.html From denyipanyany at gmail.com Mon Oct 5 15:23:02 2009 From: denyipanyany at gmail.com (Deny IP Any Any) Date: Mon, 5 Oct 2009 11:23:02 -0400 Subject: [rancid] assistance with removing pager from Dell script Message-ID: I'm running rancid 2.3.2a7 on a Ubuntu intrepid virtual. I've been successfully gathering configs from 3 Dell 6248s via an add-on dlogin/drancid script. It has worked fine for months; after making a minor change to one of the Dell switch's configs, now I'm occasionally seeing parts of the pager in my diffs: --- ciscodevices/configs/192.168.220.10 2009/10/05 10:03:01 1.108 +++ ciscodevices/configs/192.168.220.10 2009/10/05 14:03:11 1.109 @@ -673,7 +673,6 @@ exit interface ethernet 3/g15 spanning-tree portfast switchport access vlan 11 -q)uit exit ! interface ethernet 3/g16 I've tried editing the dlogin script to axe this line out, but instead I get a nasty Expect error (couldn't compile regular expression pattern: quantifier operand invalid) -re "^*q\)uit\[^\n\r]*" { send " " exp_continue } Is there a special way I need to escape the close paren in Expect? -- deny ip any any (4393649193 matches) From heas at shrubbery.net Mon Oct 5 15:52:00 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 5 Oct 2009 15:52:00 +0000 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: References: Message-ID: <20091005155158.GE21095@shrubbery.net> Mon, Oct 05, 2009 at 11:23:02AM -0400, Deny IP Any Any: > I'm running rancid 2.3.2a7 on a Ubuntu intrepid virtual. I've been > successfully gathering configs from 3 Dell 6248s via an add-on > dlogin/drancid script. > > It has worked fine for months; after making a minor change to one of > the Dell switch's configs, now I'm occasionally seeing parts of the > pager in my diffs: > > --- ciscodevices/configs/192.168.220.10 2009/10/05 10:03:01 1.108 > +++ ciscodevices/configs/192.168.220.10 2009/10/05 14:03:11 1.109 > @@ -673,7 +673,6 @@ exit > interface ethernet 3/g15 > spanning-tree portfast > switchport access vlan 11 > -q)uit > exit > ! > interface ethernet 3/g16 > > > I've tried editing the dlogin script to axe this line out, but instead > I get a nasty Expect error (couldn't compile regular expression > pattern: quantifier operand invalid) > > > > -re "^*q\)uit\[^\n\r]*" { > send " " > exp_continue } > > > > Is there a special way I need to escape the close paren in Expect? the best way that i found was to disable log_user and send stuff that I wanted to the terminal. the match you have sort of implies thats is what the rest of your script does. From crok.bic at gmail.com Mon Oct 5 16:01:41 2009 From: crok.bic at gmail.com (Rozs Norbert) Date: Mon, 05 Oct 2009 18:01:41 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> Message-ID: <4ACA1865.8060309@gmail.com> Yes, I executed rancid-cvs, it made the directory structure for all entries of LIST_OF_GROUPS, rancid-run make all the things for the cvs (the "source of the diff's") but no configs in the group/config directory. Shane Kavanagh ?rta: > Hi > > have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to > update the rancid and populate the cvs app > > SK > > > 2009/10/5 Norbert Rozs > > > Hi Everyone > > I have a strange problem with RANCID. Everything working fine with > it, I have about 14..16 groups > in my install and the problem is some of the groups working > (login, make commands, get output, > format the output and get cvs infos, make the config files in > right place) but some of the groups > not working (login, make commands, get output, format output but > no configs in the right dirs.). > So I tried all thing to troubleshoot: clogin works, all commands > can run on the devices, but it is > not working. Please give me some ideas what goes wrong, what could > be the problem. The logs > are empty, just a start statement and an end statement is in there. > > Thank you! > > -- > > > Best regards: > ----------- > Norbert Rozs > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > From heas at shrubbery.net Mon Oct 5 17:23:07 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 5 Oct 2009 17:23:07 +0000 Subject: [rancid] Re: Rancid Reports Config Changes when none have taken place In-Reply-To: <8cf6dff10910050454i5a70e1a3ve2a93d5ce26498d3@mail.gmail.com> References: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> <867d5e9c0910050442i51cd4e60xb17ee600aae5b249@mail.gmail.com> <8cf6dff10910050454i5a70e1a3ve2a93d5ce26498d3@mail.gmail.com> Message-ID: <20091005172306.GC20577@shrubbery.net> Mon, Oct 05, 2009 at 12:54:15PM +0100, Shane Kavanagh: > Hi, Jose > > Thanks for the input, there seems to be no pattern to the event, unless I > run rancid-run manually then I am guaranteed to get this error. however it > seems to be from missing "," (commas) in the example below after FA 1/0/8 > the cisco devices reports a comma after it but the archived version does not > have this comma but then later on I get the reverse. I wonder if its the > Cisco device going different reports, however the more I look into it, the > more I can see all my devices been affected. > > - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, > Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 > + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 > + !VLAN: Fa1/0/9, Fa1/0/10, > Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 > + !VLAN: Fa1/0/16, Gi1/0/2 > this is the stupid cisco, not rancid. you can try this hack for that problem. Index: bin/clogin.in =================================================================== --- bin/clogin.in (revision 2113) +++ bin/clogin.in (working copy) @@ -878,6 +880,8 @@ if [ regexp -- ".*> .*enable" "$prompt" ] { send "set length 0\r" expect -re $prompt {} + send "set width 132\r" + expect -re $prompt {} send "set logging session disable\r" } else { send "terminal length 0\r" > 2009/10/5 Jose Madrid > > > I have had this issue as well and it seems like its a false positive due to > > white space. When I get these, I just discard them. How often is it > > happening? If it you can deal with it, I would just leave it alone. Maybe > > someone else on here has had luck dealing with this. > > > > 2009/10/5 Shane Kavanagh > > > >> Hi all > >> > >> I am having an issue with rancid reporting changes to ports in a VLAN when > >> no changes have taken place. > >> > >> Here is an example > >> > >> - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 > >> - !VLAN: Fa1/0/9, > >> Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 > >> - !VLAN: Fa1/0/16, Gi1/0/2 > >> + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, > >> Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 > >> > >> note that when rancid stores the information id broke it up onto 3 lines > >> and when it retrieves the config again it has it on one line. This does not > >> happen every time it retrieves the config. > >> > >> Any Ideas or suggestions welcome. > >> > >> Regards > >> > >> Shane Kavanagh > >> > >> _______________________________________________ > >> Rancid-discuss mailing list > >> Rancid-discuss at shrubbery.net > >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >> > > > > > > > > -- > > It has to start somewhere, it has to start sometime. What better place > > than here? What better time than now? > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Mon Oct 5 17:27:10 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 5 Oct 2009 17:27:10 +0000 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> Message-ID: <20091005172710.GE20577@shrubbery.net> Mon, Oct 05, 2009 at 11:17:53AM +0100, Shane Kavanagh: > All > > I am having an issued with rancid reporting changes in the routers.db file > when no changes have been made. This is a random thing, rancid could run > for days without reporting an issue then could report the same issue server > time a day. Here is an example random is weird; if it were consistent I'd suggest either permissions problem or rancid's configure picked-up the wrong diff options (see DIFF_CMD in rancid.conf). > -----Original Message----- > From: Racnd [mailto:rancid at gbedub-rancid01.GBE.local] > Sent: 02 October 2009 17:00 > To: rancid-admin-IFSC at gbedub-rancid01.GBE.local > Subject: changes in IFSC routers > > > Routers changed to up: > intbt01-switch:cisco > intcolt01-switch:cisco > > Added routers: > intbt01-switch:cisco > intcolt01-switch:cisco > > Deleted routers: > intbt01-switch:cisco > intcolt01-switch:cisco > > > Any help, Ideas or Suggestions are welcome > > Regards > > Shane Kavanagh > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Mon Oct 5 17:28:13 2009 From: heas at shrubbery.net (john heasley) Date: Mon, 5 Oct 2009 17:28:13 +0000 Subject: [rancid] Re: Config making problem In-Reply-To: <4ACA1865.8060309@gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> Message-ID: <20091005172813.GF20577@shrubbery.net> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > Yes, I executed rancid-cvs, it made the directory structure for all > entries of LIST_OF_GROUPS, rancid-run > make all the things for the cvs (the "source of the diff's") but no > configs in the group/config directory. check the group's router.db file. it'l need at least 1 device that is marked 'up'. also see router.db(5). > > > > Shane Kavanagh ?rta: > > Hi > > > > have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to > > update the rancid and populate the cvs app > > > > SK > > > > > > 2009/10/5 Norbert Rozs > > > > > Hi Everyone > > > > I have a strange problem with RANCID. Everything working fine with > > it, I have about 14..16 groups > > in my install and the problem is some of the groups working > > (login, make commands, get output, > > format the output and get cvs infos, make the config files in > > right place) but some of the groups > > not working (login, make commands, get output, format output but > > no configs in the right dirs.). > > So I tried all thing to troubleshoot: clogin works, all commands > > can run on the devices, but it is > > not working. Please give me some ideas what goes wrong, what could > > be the problem. The logs > > are empty, just a start statement and an end statement is in there. > > > > Thank you! > > > > -- > > > > > > Best regards: > > ----------- > > Norbert Rozs > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From jeremys at rickyninja.net Tue Oct 6 05:40:09 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Mon, 5 Oct 2009 22:40:09 -0700 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: References: Message-ID: <20091006054009.GB4206@pegasus.billn.net> On 10/05/09, Deny IP Any Any said: > It has worked fine for months; after making a minor change to one of > the Dell switch's configs, now I'm occasionally seeing parts of the > pager in my diffs: If your dell has the 'terminal datadump' command it would be easier to edit the code to send that command than trying to match the pager prompts. From crok.bic at gmail.com Tue Oct 6 05:16:22 2009 From: crok.bic at gmail.com (Rozs Norbert) Date: Tue, 06 Oct 2009 07:16:22 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <20091005172813.GF20577@shrubbery.net> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> Message-ID: <4ACAD2A6.1010509@gmail.com> john heasley ?rta: > Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > >> Yes, I executed rancid-cvs, it made the directory structure for all >> entries of LIST_OF_GROUPS, rancid-run >> make all the things for the cvs (the "source of the diff's") but no >> configs in the group/config directory. >> > > check the group's router.db file. it'l need at least 1 device that is > marked 'up'. also see router.db(5). > The router.db for the group has 12 entries, all in the format :cisco:up and all the names are in the /etc/hosts. (I wrote before that clogin can login and can execute commands.) > >> >> Shane Kavanagh ?rta: >> >>> Hi >>> >>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to >>> update the rancid and populate the cvs app >>> >>> SK >>> >>> >>> 2009/10/5 Norbert Rozs > >>> >>> Hi Everyone >>> >>> I have a strange problem with RANCID. Everything working fine with >>> it, I have about 14..16 groups >>> in my install and the problem is some of the groups working >>> (login, make commands, get output, >>> format the output and get cvs infos, make the config files in >>> right place) but some of the groups >>> not working (login, make commands, get output, format output but >>> no configs in the right dirs.). >>> So I tried all thing to troubleshoot: clogin works, all commands >>> can run on the devices, but it is >>> not working. Please give me some ideas what goes wrong, what could >>> be the problem. The logs >>> are empty, just a start statement and an end statement is in there. >>> >>> Thank you! >>> >>> -- >>> >>> >>> Best regards: >>> ----------- >>> Norbert Rozs >>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> >>> >>> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> From networking at hostalia.com Tue Oct 6 06:38:25 2009 From: networking at hostalia.com (=?ISO-8859-1?Q?I=F1aki_Martinez_Diez?=) Date: Tue, 06 Oct 2009 08:38:25 +0200 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <20091005172710.GE20577@shrubbery.net> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> <20091005172710.GE20577@shrubbery.net> Message-ID: <4ACAE5E1.3020107@hostalia.com> Hi, In my case it is everyday, so it is not random. In the rancid.conf i have no DIFF_CMD option, my installation is a Debian 5.0.3. But this problem only occurs in 2 groups and i have 10 groups, so i think the problem is in the CVS. The permissions are the same in all groups so i think this is not the problem. john heasley escribi?: > random is weird; if it were consistent I'd suggest either permissions problem > or rancid's configure picked-up the wrong diff options (see DIFF_CMD in > rancid.conf). > From heas at shrubbery.net Tue Oct 6 07:49:06 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 07:49:06 +0000 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <4ACAE5E1.3020107@hostalia.com> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> <20091005172710.GE20577@shrubbery.net> <4ACAE5E1.3020107@hostalia.com> Message-ID: <20091006074906.GE1014@shrubbery.net> Tue, Oct 06, 2009 at 08:38:25AM +0200, I?aki Martinez Diez: > Hi, > > In my case it is everyday, so it is not random. > > In the rancid.conf i have no DIFF_CMD option, my installation is a > Debian 5.0.3. > > But this problem only occurs in 2 groups and i have 10 groups, so i > think the problem is in the CVS. > > The permissions are the same in all groups so i think this is not the > problem. random is not something that i'd expect. its weird, youre in unchartered territory. you'll have to explore youreself or hire a unix wiz. > > john heasley escribi?: > > random is weird; if it were consistent I'd suggest either permissions problem > > or rancid's configure picked-up the wrong diff options (see DIFF_CMD in > > rancid.conf). > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From heas at shrubbery.net Tue Oct 6 07:49:59 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 07:49:59 +0000 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: <20091006054009.GB4206@pegasus.billn.net> References: <20091006054009.GB4206@pegasus.billn.net> Message-ID: <20091006074959.GF1014@shrubbery.net> Mon, Oct 05, 2009 at 10:40:09PM -0700, Jeremy Singletary: > On 10/05/09, Deny IP Any Any said: > > It has worked fine for months; after making a minor change to one of > > the Dell switch's configs, now I'm occasionally seeing parts of the > > pager in my diffs: > > If your dell has the 'terminal datadump' command it would be easier to > edit the code to send that command than trying to match the pager prompts. that leaves the login script less usable for other automation. From heas at shrubbery.net Tue Oct 6 07:58:21 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 07:58:21 +0000 Subject: [rancid] Re: Config making problem In-Reply-To: <4ACAD2A6.1010509@gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> Message-ID: <20091006075821.GG1014@shrubbery.net> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > john heasley ?rta: >> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: >> >>> Yes, I executed rancid-cvs, it made the directory structure for all >>> entries of LIST_OF_GROUPS, rancid-run >>> make all the things for the cvs (the "source of the diff's") but no >>> configs in the group/config directory. >>> >> >> check the group's router.db file. it'l need at least 1 device that is >> marked 'up'. also see router.db(5). >> > > The router.db for the group has 12 entries, all in the format > :cisco:up > and all the names are in the /etc/hosts. (I wrote before that clogin can > login and > can execute commands.) If rancid-cvs created stuff for the group, and there are devices in the group, and the group is in LIST_OF_GROUPS, and cron is working, then at a minimum the log file for the group look similar to: Trying to get all of the configs. All routers sucessfully completed. cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Sat Oct 3 15:10:59 UTC 2009 debug it. sh -x rancid-run or sh -x control_rancid groupname >>> Shane Kavanagh ?rta: >>> >>>> Hi >>>> >>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to >>>> update the rancid and populate the cvs app >>>> >>>> SK >>>> >>>> >>>> 2009/10/5 Norbert Rozs > >>>> >>>> Hi Everyone >>>> >>>> I have a strange problem with RANCID. Everything working fine with >>>> it, I have about 14..16 groups >>>> in my install and the problem is some of the groups working >>>> (login, make commands, get output, >>>> format the output and get cvs infos, make the config files in >>>> right place) but some of the groups >>>> not working (login, make commands, get output, format output but >>>> no configs in the right dirs.). >>>> So I tried all thing to troubleshoot: clogin works, all commands >>>> can run on the devices, but it is >>>> not working. Please give me some ideas what goes wrong, what could >>>> be the problem. The logs >>>> are empty, just a start statement and an end statement is in there. >>>> >>>> Thank you! >>>> >>>> -- >>>> >>>> >>>> Best regards: >>>> ----------- >>>> Norbert Rozs >>>> >>>> _______________________________________________ >>>> Rancid-discuss mailing list >>>> Rancid-discuss at shrubbery.net >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>>> >>>> >>>> >>> _______________________________________________ >>> Rancid-discuss mailing list >>> Rancid-discuss at shrubbery.net >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> From shane.kavanagh at gmail.com Tue Oct 6 09:00:45 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Tue, 6 Oct 2009 10:00:45 +0100 Subject: [rancid] Re: Config making problem In-Reply-To: References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> Message-ID: <8cf6dff10910060200h4f8aae3fg973a9c5b869a60b2@mail.gmail.com> When you switch to your rancid uses and test with clogin can you execute the commands at the cisco prompt or does the router login successfully but you are unable to type in commands. 2009/10/6 Norbert Rozs > 2009/10/6 john heasley > > Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: >> > john heasley ?rta: >> >> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: >> >> >> >>> Yes, I executed rancid-cvs, it made the directory structure for all >> >>> entries of LIST_OF_GROUPS, rancid-run >> >>> make all the things for the cvs (the "source of the diff's") but no >> >>> configs in the group/config directory. >> >>> >> >> >> >> check the group's router.db file. it'l need at least 1 device that is >> >> marked 'up'. also see router.db(5). >> >> >> > >> > The router.db for the group has 12 entries, all in the format >> > :cisco:up >> > and all the names are in the /etc/hosts. (I wrote before that clogin can >> > login and >> > can execute commands.) >> >> If rancid-cvs created stuff for the group, and there are devices in the >> group, and the group is in LIST_OF_GROUPS, and cron is working, then at a >> minimum the log file for the group look similar to: >> >> >> Trying to get all of the configs. >> All routers sucessfully completed. >> >> cvs diff: Diffing . >> cvs diff: Diffing configs >> cvs commit: Examining . >> cvs commit: Examining configs >> >> ending: Sat Oct 3 15:10:59 UTC 2009 >> >> >> debug it. sh -x rancid-run or sh -x control_rancid groupname >> >> > So, the logs are similar as this: > > --- cut --- > begin: Sat Oct 3 15:10:59 UTC 2009 > > > > ending: Sat Oct 3 15:10:59 UTC 2009 > --- cut --- > > Nothing more, nothing less. > I will try the sh -x rancid-run or sh -x control_rancid groupname method to > test/debug it. > > >> >>> Shane Kavanagh ?rta: >> >>> >> >>>> Hi >> >>>> >> >>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to >> >>>> update the rancid and populate the cvs app >> >>>> >> >>>> SK >> >>>> >> >>>> >> >>>> 2009/10/5 Norbert Rozs > crok.bic at gmail.com>> >> >>>> >> >>>> Hi Everyone >> >>>> >> >>>> I have a strange problem with RANCID. Everything working fine >> with >> >>>> it, I have about 14..16 groups >> >>>> in my install and the problem is some of the groups working >> >>>> (login, make commands, get output, >> >>>> format the output and get cvs infos, make the config files in >> >>>> right place) but some of the groups >> >>>> not working (login, make commands, get output, format output but >> >>>> no configs in the right dirs.). >> >>>> So I tried all thing to troubleshoot: clogin works, all commands >> >>>> can run on the devices, but it is >> >>>> not working. Please give me some ideas what goes wrong, what >> could >> >>>> be the problem. The logs >> >>>> are empty, just a start statement and an end statement is in >> there. >> >>>> >> >>>> Thank you! >> >>>> >> >>>> -- >> >>>> >> >>>> >> >>>> Best regards: >> >>>> ----------- >> >>>> Norbert Rozs >> >>>> >> >>>> _______________________________________________ >> >>>> Rancid-discuss mailing list >> >>>> Rancid-discuss at shrubbery.net > Rancid-discuss at shrubbery.net> >> >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >>>> >> >>>> >> >>>> >> >>> _______________________________________________ >> >>> Rancid-discuss mailing list >> >>> Rancid-discuss at shrubbery.net >> >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >>> >> > > > > -- > > > Best regards: > ----------- > Norbert Rozs > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/ed1c876e/attachment.html From shane.kavanagh at gmail.com Tue Oct 6 09:08:37 2009 From: shane.kavanagh at gmail.com (Shane Kavanagh) Date: Tue, 6 Oct 2009 10:08:37 +0100 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <20091006074906.GE1014@shrubbery.net> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> <20091005172710.GE20577@shrubbery.net> <4ACAE5E1.3020107@hostalia.com> <20091006074906.GE1014@shrubbery.net> Message-ID: <8cf6dff10910060208y42c5d4b7r71401feb4f1358b9@mail.gmail.com> All I added the fake router to the end of the config and this did not solve the problem, I cut and paste the offending devices to the end of the config and this did not work either, I deleted the offending devices from the config and ran rancid again, got an alert for deleted routers, then added them in from scratch and I got 1 alert to inform me of new routers and I have not had any issues since then. if anyone else if having this issue they may try the above. I think it may have been an issue with and CR at the end of each line might not have been a CR but a Manual line break instead. Regards SK 2009/10/6 john heasley > Tue, Oct 06, 2009 at 08:38:25AM +0200, I?aki Martinez Diez: > > Hi, > > > > In my case it is everyday, so it is not random. > > > > In the rancid.conf i have no DIFF_CMD option, my installation is a > > Debian 5.0.3. > > > > But this problem only occurs in 2 groups and i have 10 groups, so i > > think the problem is in the CVS. > > > > The permissions are the same in all groups so i think this is not the > > problem. > > random is not something that i'd expect. its weird, youre in unchartered > territory. you'll have to explore youreself or hire a unix wiz. > > > > > john heasley escribi?: > > > random is weird; if it were consistent I'd suggest either permissions > problem > > > or rancid's configure picked-up the wrong diff options (see DIFF_CMD in > > > rancid.conf). > > > > > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/3d15b73b/attachment.html From crok.bic at gmail.com Tue Oct 6 08:27:15 2009 From: crok.bic at gmail.com (Norbert Rozs) Date: Tue, 6 Oct 2009 10:27:15 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <20091006075821.GG1014@shrubbery.net> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> Message-ID: 2009/10/6 john heasley > Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > > john heasley ?rta: > >> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > >> > >>> Yes, I executed rancid-cvs, it made the directory structure for all > >>> entries of LIST_OF_GROUPS, rancid-run > >>> make all the things for the cvs (the "source of the diff's") but no > >>> configs in the group/config directory. > >>> > >> > >> check the group's router.db file. it'l need at least 1 device that is > >> marked 'up'. also see router.db(5). > >> > > > > The router.db for the group has 12 entries, all in the format > > :cisco:up > > and all the names are in the /etc/hosts. (I wrote before that clogin can > > login and > > can execute commands.) > > If rancid-cvs created stuff for the group, and there are devices in the > group, and the group is in LIST_OF_GROUPS, and cron is working, then at a > minimum the log file for the group look similar to: > > > Trying to get all of the configs. > All routers sucessfully completed. > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > > ending: Sat Oct 3 15:10:59 UTC 2009 > > > debug it. sh -x rancid-run or sh -x control_rancid groupname > > So, the logs are similar as this: --- cut --- begin: Sat Oct 3 15:10:59 UTC 2009 ending: Sat Oct 3 15:10:59 UTC 2009 --- cut --- Nothing more, nothing less. I will try the sh -x rancid-run or sh -x control_rancid groupname method to test/debug it. > >>> Shane Kavanagh ?rta: > >>> > >>>> Hi > >>>> > >>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to > >>>> update the rancid and populate the cvs app > >>>> > >>>> SK > >>>> > >>>> > >>>> 2009/10/5 Norbert Rozs >> > >>>> > >>>> Hi Everyone > >>>> > >>>> I have a strange problem with RANCID. Everything working fine with > >>>> it, I have about 14..16 groups > >>>> in my install and the problem is some of the groups working > >>>> (login, make commands, get output, > >>>> format the output and get cvs infos, make the config files in > >>>> right place) but some of the groups > >>>> not working (login, make commands, get output, format output but > >>>> no configs in the right dirs.). > >>>> So I tried all thing to troubleshoot: clogin works, all commands > >>>> can run on the devices, but it is > >>>> not working. Please give me some ideas what goes wrong, what could > >>>> be the problem. The logs > >>>> are empty, just a start statement and an end statement is in > there. > >>>> > >>>> Thank you! > >>>> > >>>> -- > >>>> > >>>> > >>>> Best regards: > >>>> ----------- > >>>> Norbert Rozs > >>>> > >>>> _______________________________________________ > >>>> Rancid-discuss mailing list > >>>> Rancid-discuss at shrubbery.net > > >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>>> > >>>> > >>>> > >>> _______________________________________________ > >>> Rancid-discuss mailing list > >>> Rancid-discuss at shrubbery.net > >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>> > -- Best regards: ----------- Norbert Rozs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/851ffd6e/attachment.html From crok.bic at gmail.com Tue Oct 6 10:07:21 2009 From: crok.bic at gmail.com (Norbert Rozs) Date: Tue, 6 Oct 2009 12:07:21 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <8cf6dff10910060200h4f8aae3fg973a9c5b869a60b2@mail.gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <8cf6dff10910060200h4f8aae3fg973a9c5b869a60b2@mail.gmail.com> Message-ID: 2009/10/6 Shane Kavanagh > When you switch to your rancid uses and test with clogin > can you execute the commands at the cisco prompt or does the router login > successfully but you are unable to type in commands. > > Login is successful and I'm able to type commands. > 2009/10/6 Norbert Rozs > > 2009/10/6 john heasley >> >> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: >>> > john heasley ?rta: >>> >> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: >>> >> >>> >>> Yes, I executed rancid-cvs, it made the directory structure for all >>> >>> entries of LIST_OF_GROUPS, rancid-run >>> >>> make all the things for the cvs (the "source of the diff's") but no >>> >>> configs in the group/config directory. >>> >>> >>> >> >>> >> check the group's router.db file. it'l need at least 1 device that is >>> >> marked 'up'. also see router.db(5). >>> >> >>> > >>> > The router.db for the group has 12 entries, all in the format >>> > :cisco:up >>> > and all the names are in the /etc/hosts. (I wrote before that clogin >>> can >>> > login and >>> > can execute commands.) >>> >>> If rancid-cvs created stuff for the group, and there are devices in the >>> group, and the group is in LIST_OF_GROUPS, and cron is working, then at a >>> minimum the log file for the group look similar to: >>> >>> >>> Trying to get all of the configs. >>> All routers sucessfully completed. >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> cvs commit: Examining . >>> cvs commit: Examining configs >>> >>> ending: Sat Oct 3 15:10:59 UTC 2009 >>> >>> >>> debug it. sh -x rancid-run or sh -x control_rancid groupname >>> >>> >> So, the logs are similar as this: >> >> --- cut --- >> begin: Sat Oct 3 15:10:59 UTC 2009 >> >> >> >> ending: Sat Oct 3 15:10:59 UTC 2009 >> --- cut --- >> >> Nothing more, nothing less. >> I will try the sh -x rancid-run or sh -x control_rancid groupname method >> to test/debug it. >> >> >>> >>> Shane Kavanagh ?rta: >>> >>> >>> >>>> Hi >>> >>>> >>> >>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to >>> >>>> update the rancid and populate the cvs app >>> >>>> >>> >>>> SK >>> >>>> >>> >>>> >>> >>>> 2009/10/5 Norbert Rozs >> crok.bic at gmail.com>> >>> >>>> >>> >>>> Hi Everyone >>> >>>> >>> >>>> I have a strange problem with RANCID. Everything working fine >>> with >>> >>>> it, I have about 14..16 groups >>> >>>> in my install and the problem is some of the groups working >>> >>>> (login, make commands, get output, >>> >>>> format the output and get cvs infos, make the config files in >>> >>>> right place) but some of the groups >>> >>>> not working (login, make commands, get output, format output but >>> >>>> no configs in the right dirs.). >>> >>>> So I tried all thing to troubleshoot: clogin works, all commands >>> >>>> can run on the devices, but it is >>> >>>> not working. Please give me some ideas what goes wrong, what >>> could >>> >>>> be the problem. The logs >>> >>>> are empty, just a start statement and an end statement is in >>> there. >>> >>>> >>> >>>> Thank you! >>> >>>> >>> >>>> -- >>> >>>> >>> >>>> >>> >>>> Best regards: >>> >>>> ----------- >>> >>>> Norbert Rozs >>> >>>> >>> >>>> _______________________________________________ >>> >>>> Rancid-discuss mailing list >>> >>>> Rancid-discuss at shrubbery.net >> Rancid-discuss at shrubbery.net> >>> >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> >>>> >>> >>>> >>> >>>> >>> >>> _______________________________________________ >>> >>> Rancid-discuss mailing list >>> >>> Rancid-discuss at shrubbery.net >>> >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>> >>> >>> >> >> >> >> -- >> >> >> Best regards: >> ----------- >> Norbert Rozs >> > > -- Best regards: ----------- Norbert Rozs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/4a49fc0b/attachment.html From heas at shrubbery.net Tue Oct 6 16:10:58 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 16:10:58 +0000 Subject: [rancid] Re: Config making problem In-Reply-To: References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> Message-ID: <20091006161058.GD15866@shrubbery.net> Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: > 2009/10/6 john heasley > > > Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > > > john heasley ?rta: > > >> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > > >> > > >>> Yes, I executed rancid-cvs, it made the directory structure for all > > >>> entries of LIST_OF_GROUPS, rancid-run > > >>> make all the things for the cvs (the "source of the diff's") but no > > >>> configs in the group/config directory. > > >>> > > >> > > >> check the group's router.db file. it'l need at least 1 device that is > > >> marked 'up'. also see router.db(5). > > >> > > > > > > The router.db for the group has 12 entries, all in the format > > > :cisco:up > > > and all the names are in the /etc/hosts. (I wrote before that clogin can > > > login and > > > can execute commands.) > > > > If rancid-cvs created stuff for the group, and there are devices in the > > group, and the group is in LIST_OF_GROUPS, and cron is working, then at a > > minimum the log file for the group look similar to: > > > > > > Trying to get all of the configs. > > All routers sucessfully completed. > > > > cvs diff: Diffing . > > cvs diff: Diffing configs > > cvs commit: Examining . > > cvs commit: Examining configs > > > > ending: Sat Oct 3 15:10:59 UTC 2009 > > > > > > debug it. sh -x rancid-run or sh -x control_rancid groupname > > > > > So, the logs are similar as this: > > --- cut --- > begin: Sat Oct 3 15:10:59 UTC 2009 > > > > ending: Sat Oct 3 15:10:59 UTC 2009 > --- cut --- > > Nothing more, nothing less. are group/routers.{all,up} populated? > I will try the sh -x rancid-run or sh -x control_rancid groupname method to > test/debug it. > > > > >>> Shane Kavanagh ?rta: > > >>> > > >>>> Hi > > >>>> > > >>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to > > >>>> update the rancid and populate the cvs app > > >>>> > > >>>> SK > > >>>> > > >>>> > > >>>> 2009/10/5 Norbert Rozs > >> > > >>>> > > >>>> Hi Everyone > > >>>> > > >>>> I have a strange problem with RANCID. Everything working fine with > > >>>> it, I have about 14..16 groups > > >>>> in my install and the problem is some of the groups working > > >>>> (login, make commands, get output, > > >>>> format the output and get cvs infos, make the config files in > > >>>> right place) but some of the groups > > >>>> not working (login, make commands, get output, format output but > > >>>> no configs in the right dirs.). > > >>>> So I tried all thing to troubleshoot: clogin works, all commands > > >>>> can run on the devices, but it is > > >>>> not working. Please give me some ideas what goes wrong, what could > > >>>> be the problem. The logs > > >>>> are empty, just a start statement and an end statement is in > > there. > > >>>> > > >>>> Thank you! > > >>>> > > >>>> -- > > >>>> > > >>>> > > >>>> Best regards: > > >>>> ----------- > > >>>> Norbert Rozs > > >>>> > > >>>> _______________________________________________ > > >>>> Rancid-discuss mailing list > > >>>> Rancid-discuss at shrubbery.net > > > > >>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > >>>> > > >>>> > > >>>> > > >>> _______________________________________________ > > >>> Rancid-discuss mailing list > > >>> Rancid-discuss at shrubbery.net > > >>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > >>> > > > > > > -- > > > Best regards: > ----------- > Norbert Rozs From heas at shrubbery.net Tue Oct 6 16:17:18 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 16:17:18 +0000 Subject: [rancid] Re: Rancid Reports Changes in router.db when no changes have been made In-Reply-To: <8cf6dff10910060208y42c5d4b7r71401feb4f1358b9@mail.gmail.com> References: <8cf6dff10910050317r5ba000bdyab444e5a4d119930@mail.gmail.com> <20091005172710.GE20577@shrubbery.net> <4ACAE5E1.3020107@hostalia.com> <20091006074906.GE1014@shrubbery.net> <8cf6dff10910060208y42c5d4b7r71401feb4f1358b9@mail.gmail.com> Message-ID: <20091006161718.GE15866@shrubbery.net> Tue, Oct 06, 2009 at 10:08:37AM +0100, Shane Kavanagh: > All > > I added the fake router to the end of the config and this did not solve the > problem, I cut and paste the offending devices to the end of the config and > this did not work either, I deleted the offending devices from the config > and ran rancid again, got an alert for deleted routers, then added them in > from scratch and I got 1 alert to inform me of new routers and I have not > had any issues since then. > > if anyone else if having this issue they may try the above. I think it may > have been an issue with and CR at the end of each line might not have been a > CR but a Manual line break instead. What is a 'manual line break'? Do you mean that you used a Windows box to create router.db, so it had a CR? > Regards > > SK > > > > 2009/10/6 john heasley > > > Tue, Oct 06, 2009 at 08:38:25AM +0200, I?aki Martinez Diez: > > > Hi, > > > > > > In my case it is everyday, so it is not random. > > > > > > In the rancid.conf i have no DIFF_CMD option, my installation is a > > > Debian 5.0.3. > > > > > > But this problem only occurs in 2 groups and i have 10 groups, so i > > > think the problem is in the CVS. > > > > > > The permissions are the same in all groups so i think this is not the > > > problem. > > > > random is not something that i'd expect. its weird, youre in unchartered > > territory. you'll have to explore youreself or hire a unix wiz. > > > > > > > > john heasley escribi?: > > > > random is weird; if it were consistent I'd suggest either permissions > > problem > > > > or rancid's configure picked-up the wrong diff options (see DIFF_CMD in > > > > rancid.conf). > > > > > > > > > > > > > _______________________________________________ > > > Rancid-discuss mailing list > > > Rancid-discuss at shrubbery.net > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > From crok.bic at gmail.com Tue Oct 6 16:20:19 2009 From: crok.bic at gmail.com (Rozs Norbert) Date: Tue, 06 Oct 2009 18:20:19 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <20091006161058.GD15866@shrubbery.net> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <20091006161058.GD15866@shrubbery.net> Message-ID: <4ACB6E43.4090205@gmail.com> john heasley ?rta: > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: > >> 2009/10/6 john heasley >> >> >>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: >>> >>>> john heasley ?rta: >>>> >>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: >>>>> >>>>> >>>>>> Yes, I executed rancid-cvs, it made the directory structure for all >>>>>> entries of LIST_OF_GROUPS, rancid-run >>>>>> make all the things for the cvs (the "source of the diff's") but no >>>>>> configs in the group/config directory. >>>>>> >>>>>> >>>>> check the group's router.db file. it'l need at least 1 device that is >>>>> marked 'up'. also see router.db(5). >>>>> >>>>> >>>> The router.db for the group has 12 entries, all in the format >>>> :cisco:up >>>> and all the names are in the /etc/hosts. (I wrote before that clogin can >>>> login and >>>> can execute commands.) >>>> >>> If rancid-cvs created stuff for the group, and there are devices in the >>> group, and the group is in LIST_OF_GROUPS, and cron is working, then at a >>> minimum the log file for the group look similar to: >>> >>> >>> Trying to get all of the configs. >>> All routers sucessfully completed. >>> >>> cvs diff: Diffing . >>> cvs diff: Diffing configs >>> cvs commit: Examining . >>> cvs commit: Examining configs >>> >>> ending: Sat Oct 3 15:10:59 UTC 2009 >>> >>> >>> debug it. sh -x rancid-run or sh -x control_rancid groupname >>> >>> >>> >> So, the logs are similar as this: >> >> --- cut --- >> begin: Sat Oct 3 15:10:59 UTC 2009 >> >> >> >> ending: Sat Oct 3 15:10:59 UTC 2009 >> --- cut --- >> >> Nothing more, nothing less. >> > > are group/routers.{all,up} populated? > > Sorry for my english, but what is it mean "populated"? If that mean group/routers.all and group/routers.up are created, my answer is yes, but the file routers.up is empty and routers.all is filled with lines from router.db without ':up' in the end of the entries. >> I will try the sh -x rancid-run or sh -x control_rancid groupname method to >> test/debug it. >> >> >> >>>>>> Shane Kavanagh ?rta: >>>>>> >>>>>> >>>>>>> Hi >>>>>>> >>>>>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to >>>>>>> update the rancid and populate the cvs app >>>>>>> >>>>>>> SK >>>>>>> >>>>>>> >>>>>>> 2009/10/5 Norbert Rozs >>>>>> >>>>>>> Hi Everyone >>>>>>> >>>>>>> I have a strange problem with RANCID. Everything working fine with >>>>>>> it, I have about 14..16 groups >>>>>>> in my install and the problem is some of the groups working >>>>>>> (login, make commands, get output, >>>>>>> format the output and get cvs infos, make the config files in >>>>>>> right place) but some of the groups >>>>>>> not working (login, make commands, get output, format output but >>>>>>> no configs in the right dirs.). >>>>>>> So I tried all thing to troubleshoot: clogin works, all commands >>>>>>> can run on the devices, but it is >>>>>>> not working. Please give me some ideas what goes wrong, what could >>>>>>> be the problem. The logs >>>>>>> are empty, just a start statement and an end statement is in >>>>>>> >>> there. >>> >>>>>>> Thank you! >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> Best regards: >>>>>>> ----------- >>>>>>> Norbert Rozs >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Rancid-discuss mailing list >>>>>>> Rancid-discuss at shrubbery.net >>>>>> >>>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> Rancid-discuss mailing list >>>>>> Rancid-discuss at shrubbery.net >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >>>>>> >>>>>> >> >> -- >> >> >> Best regards: >> ----------- >> Norbert Rozs >> From Dan_Mitton at YMP.GOV Tue Oct 6 17:01:23 2009 From: Dan_Mitton at YMP.GOV (Dan_Mitton at YMP.GOV) Date: Tue, 6 Oct 2009 10:01:23 -0700 Subject: [rancid] Nexus expect looping Message-ID: I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having problems. First, it tried to run the command 'show version build-info all', which doesn't exist, so I commented it out of the nxrancid file. Second, it seems to get most of the way through (I think), but then the expect process goes to 100% CPU until it is killed. The Nexus 5000 is running: Software BIOS: version 1.2.0 loader: version N/A kickstart: version 4.1(3)N1(1) system: version 4.1(3)N1(1) BIOS compile time: 06/19/08 kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] and has 1 - 2148 hung off of it. Any ideas?? Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/c0232833/attachment.html From heas at shrubbery.net Tue Oct 6 17:06:10 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 17:06:10 +0000 Subject: [rancid] Re: Nexus expect looping In-Reply-To: References: Message-ID: <20091006170610.GM15866@shrubbery.net> Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > problems. > > First, it tried to run the command 'show version build-info all', which > doesn't exist, so I commented it out of the nxrancid file. that should not be necessary, it should just skip it. > Second, it seems to get most of the way through (I think), but then the > expect process goes to 100% CPU until it is killed. > > The Nexus 5000 is running: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.1(3)N1(1) > system: version 4.1(3)N1(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > and has 1 - 2148 hung off of it. > > Any ideas?? Most like its expect on you O/S. What OS and expect version? did you look at the o/s section on the rancid web page. From jmadrid2 at gmail.com Tue Oct 6 17:52:44 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Tue, 6 Oct 2009 13:52:44 -0400 Subject: [rancid] Re: Config making problem In-Reply-To: <4ACB6E43.4090205@gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <20091006161058.GD15866@shrubbery.net> <4ACB6E43.4090205@gmail.com> Message-ID: <867d5e9c0910061052j29b4cccdoce9545b3a3f184d6@mail.gmail.com> That is most likely your problem. Routers.up gets filled with the devices that are marked as up in router.db. Please paste your router.db here and maybe we can help you find the problem. What does your routers.down say? On Tue, Oct 6, 2009 at 12:20 PM, Rozs Norbert wrote: > john heasley ?rta: > > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: > > > >> 2009/10/6 john heasley > >> > >> > >>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > >>> > >>>> john heasley ?rta: > >>>> > >>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > >>>>> > >>>>> > >>>>>> Yes, I executed rancid-cvs, it made the directory structure for all > >>>>>> entries of LIST_OF_GROUPS, rancid-run > >>>>>> make all the things for the cvs (the "source of the diff's") but no > >>>>>> configs in the group/config directory. > >>>>>> > >>>>>> > >>>>> check the group's router.db file. it'l need at least 1 device that > is > >>>>> marked 'up'. also see router.db(5). > >>>>> > >>>>> > >>>> The router.db for the group has 12 entries, all in the format > >>>> :cisco:up > >>>> and all the names are in the /etc/hosts. (I wrote before that clogin > can > >>>> login and > >>>> can execute commands.) > >>>> > >>> If rancid-cvs created stuff for the group, and there are devices in the > >>> group, and the group is in LIST_OF_GROUPS, and cron is working, then at > a > >>> minimum the log file for the group look similar to: > >>> > >>> > >>> Trying to get all of the configs. > >>> All routers sucessfully completed. > >>> > >>> cvs diff: Diffing . > >>> cvs diff: Diffing configs > >>> cvs commit: Examining . > >>> cvs commit: Examining configs > >>> > >>> ending: Sat Oct 3 15:10:59 UTC 2009 > >>> > >>> > >>> debug it. sh -x rancid-run or sh -x control_rancid groupname > >>> > >>> > >>> > >> So, the logs are similar as this: > >> > >> --- cut --- > >> begin: Sat Oct 3 15:10:59 UTC 2009 > >> > >> > >> > >> ending: Sat Oct 3 15:10:59 UTC 2009 > >> --- cut --- > >> > >> Nothing more, nothing less. > >> > > > > are group/routers.{all,up} populated? > > > > > Sorry for my english, but what is it mean "populated"? > If that mean group/routers.all and group/routers.up are created, my > answer is yes, > but the file routers.up is empty and routers.all is filled with lines > from router.db > without ':up' in the end of the entries. > >> I will try the sh -x rancid-run or sh -x control_rancid groupname method > to > >> test/debug it. > >> > >> > >> > >>>>>> Shane Kavanagh ?rta: > >>>>>> > >>>>>> > >>>>>>> Hi > >>>>>>> > >>>>>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to > >>>>>>> update the rancid and populate the cvs app > >>>>>>> > >>>>>>> SK > >>>>>>> > >>>>>>> > >>>>>>> 2009/10/5 Norbert Rozs crok.bic at gmail.com > >>>>>>> > >>>>>>> Hi Everyone > >>>>>>> > >>>>>>> I have a strange problem with RANCID. Everything working fine > with > >>>>>>> it, I have about 14..16 groups > >>>>>>> in my install and the problem is some of the groups working > >>>>>>> (login, make commands, get output, > >>>>>>> format the output and get cvs infos, make the config files in > >>>>>>> right place) but some of the groups > >>>>>>> not working (login, make commands, get output, format output > but > >>>>>>> no configs in the right dirs.). > >>>>>>> So I tried all thing to troubleshoot: clogin works, all > commands > >>>>>>> can run on the devices, but it is > >>>>>>> not working. Please give me some ideas what goes wrong, what > could > >>>>>>> be the problem. The logs > >>>>>>> are empty, just a start statement and an end statement is in > >>>>>>> > >>> there. > >>> > >>>>>>> Thank you! > >>>>>>> > >>>>>>> -- > >>>>>>> > >>>>>>> > >>>>>>> Best regards: > >>>>>>> ----------- > >>>>>>> Norbert Rozs > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> Rancid-discuss mailing list > >>>>>>> Rancid-discuss at shrubbery.net Rancid-discuss at shrubbery.net > >>>>>>> > >>>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> Rancid-discuss mailing list > >>>>>> Rancid-discuss at shrubbery.net > >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>>>>> > >>>>>> > >> > >> -- > >> > >> > >> Best regards: > >> ----------- > >> Norbert Rozs > >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/bf3d5ce7/attachment.html From Dan_Mitton at YMP.GOV Tue Oct 6 17:28:01 2009 From: Dan_Mitton at YMP.GOV (Dan_Mitton at YMP.GOV) Date: Tue, 6 Oct 2009 10:28:01 -0700 Subject: [rancid] Re: Nexus expect looping In-Reply-To: <20091006170610.GM15866@shrubbery.net> Message-ID: John, Thanks for your reply. I'm running FreeBSD 7.2: FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 expect verion: expect version 5.43.0 To: Dan_Mitton at YMP.GOV cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus expect looping LSN: Not Relevant - Not Privileged User Filed as: Excl/AdminMgmt-14-4/QA:N/A Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > problems. > > First, it tried to run the command 'show version build-info all', which > doesn't exist, so I commented it out of the nxrancid file. that should not be necessary, it should just skip it. > Second, it seems to get most of the way through (I think), but then the > expect process goes to 100% CPU until it is killed. > > The Nexus 5000 is running: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.1(3)N1(1) > system: version 4.1(3)N1(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > and has 1 - 2148 hung off of it. > > Any ideas?? Most like its expect on you O/S. What OS and expect version? did you look at the o/s section on the rancid web page. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/0cd3519b/attachment.html From crok.bic at gmail.com Tue Oct 6 18:31:55 2009 From: crok.bic at gmail.com (Rozs Norbert) Date: Tue, 06 Oct 2009 20:31:55 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <867d5e9c0910061052j29b4cccdoce9545b3a3f184d6@mail.gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <20091006161058.GD15866@shrubbery.net> <4ACB6E43.4090205@gmail.com> <867d5e9c0910061052j29b4cccdoce9545b3a3f184d6@mail.gmail.com> Message-ID: <4ACB8D1B.9030300@gmail.com> Jose Madrid ?rta: > That is most likely your problem. Routers.up gets filled with the > devices that are marked as up in router.db. Please paste your > router.db here and maybe we can help you find the problem. What does > your routers.down say? routers.down say all routers in router.db are down, so routers.down filled up with entries from router.db without :up. The router.db look like this: --- cut --- :cisco:up :cisco:up :cisco:up ... 12..14 times --- cut --- I wrote that routers are reachable, clogin can login, commands can be executed on the routers. > > On Tue, Oct 6, 2009 at 12:20 PM, Rozs Norbert > wrote: > > john heasley ?rta: > > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: > > > >> 2009/10/6 john heasley > > >> > >> > >>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > >>> > >>>> john heasley ?rta: > >>>> > >>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > >>>>> > >>>>> > >>>>>> Yes, I executed rancid-cvs, it made the directory structure > for all > >>>>>> entries of LIST_OF_GROUPS, rancid-run > >>>>>> make all the things for the cvs (the "source of the > diff's") but no > >>>>>> configs in the group/config directory. > >>>>>> > >>>>>> > >>>>> check the group's router.db file. it'l need at least 1 > device that is > >>>>> marked 'up'. also see router.db(5). > >>>>> > >>>>> > >>>> The router.db for the group has 12 entries, all in the format > >>>> :cisco:up > >>>> and all the names are in the /etc/hosts. (I wrote before that > clogin can > >>>> login and > >>>> can execute commands.) > >>>> > >>> If rancid-cvs created stuff for the group, and there are > devices in the > >>> group, and the group is in LIST_OF_GROUPS, and cron is > working, then at a > >>> minimum the log file for the group look similar to: > >>> > >>> > >>> Trying to get all of the configs. > >>> All routers sucessfully completed. > >>> > >>> cvs diff: Diffing . > >>> cvs diff: Diffing configs > >>> cvs commit: Examining . > >>> cvs commit: Examining configs > >>> > >>> ending: Sat Oct 3 15:10:59 UTC 2009 > >>> > >>> > >>> debug it. sh -x rancid-run or sh -x control_rancid groupname > >>> > >>> > >>> > >> So, the logs are similar as this: > >> > >> --- cut --- > >> begin: Sat Oct 3 15:10:59 UTC 2009 > >> > >> > >> > >> ending: Sat Oct 3 15:10:59 UTC 2009 > >> --- cut --- > >> > >> Nothing more, nothing less. > >> > > > > are group/routers.{all,up} populated? > > > > > Sorry for my english, but what is it mean "populated"? > If that mean group/routers.all and group/routers.up are created, my > answer is yes, > but the file routers.up is empty and routers.all is filled with lines > from router.db > without ':up' in the end of the entries. > >> I will try the sh -x rancid-run or sh -x control_rancid > groupname method to > >> test/debug it. > >> > >> > >> > >>>>>> Shane Kavanagh ?rta: > >>>>>> > >>>>>> > >>>>>>> Hi > >>>>>>> > >>>>>>> have you executed rancid-cvs > (/usr/lib/rancid/bin/rancid-cvs) to > >>>>>>> update the rancid and populate the cvs app > >>>>>>> > >>>>>>> SK > >>>>>>> > >>>>>>> > >>>>>>> 2009/10/5 Norbert Rozs > >>>>>>> > >>>>>>> Hi Everyone > >>>>>>> > >>>>>>> I have a strange problem with RANCID. Everything > working fine with > >>>>>>> it, I have about 14..16 groups > >>>>>>> in my install and the problem is some of the groups > working > >>>>>>> (login, make commands, get output, > >>>>>>> format the output and get cvs infos, make the config > files in > >>>>>>> right place) but some of the groups > >>>>>>> not working (login, make commands, get output, format > output but > >>>>>>> no configs in the right dirs.). > >>>>>>> So I tried all thing to troubleshoot: clogin works, > all commands > >>>>>>> can run on the devices, but it is > >>>>>>> not working. Please give me some ideas what goes > wrong, what could > >>>>>>> be the problem. The logs > >>>>>>> are empty, just a start statement and an end statement > is in > >>>>>>> > >>> there. > >>> > >>>>>>> Thank you! > >>>>>>> > >>>>>>> -- > >>>>>>> > >>>>>>> > >>>>>>> Best regards: > >>>>>>> ----------- > >>>>>>> Norbert Rozs > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> Rancid-discuss mailing list > >>>>>>> Rancid-discuss at shrubbery.net > > > >>>>>>> > >>>>>>> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> Rancid-discuss mailing list > >>>>>> Rancid-discuss at shrubbery.net > > >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >>>>>> > >>>>>> > >> > >> -- > >> > >> > >> Best regards: > >> ----------- > >> Norbert Rozs > >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > -- > It has to start somewhere, it has to start sometime. What better > place than here? What better time than now? From heas at shrubbery.net Tue Oct 6 19:01:15 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 19:01:15 +0000 Subject: [rancid] Re: Nexus expect looping In-Reply-To: References: <20091006170610.GM15866@shrubbery.net> Message-ID: <20091006190115.GE11669@shrubbery.net> Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > John, > > Thanks for your reply. I'm running FreeBSD 7.2: > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > 07:18:07 UTC 2009 > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > expect verion: > > expect version 5.43.0 Its most likely your expect/tcl set. A friend (and others) has had this problem a few times. He recently updated his ports and the set of tcl/expect that he got with that update has been working. pkginfo on that host gives me: expect-5.43.0_3 A sophisticated scripter based on tcl/tk tcl-8.3.5_8 Tool Command Language > > > > To: Dan_Mitton at YMP.GOV > cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > problems. > > > > First, it tried to run the command 'show version build-info all', which > > doesn't exist, so I commented it out of the nxrancid file. > > that should not be necessary, it should just skip it. > > > Second, it seems to get most of the way through (I think), but then the > > expect process goes to 100% CPU until it is killed. > > > > The Nexus 5000 is running: > > > > Software > > BIOS: version 1.2.0 > > loader: version N/A > > kickstart: version 4.1(3)N1(1) > > system: version 4.1(3)N1(1) > > BIOS compile time: 06/19/08 > > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > and has 1 - 2148 hung off of it. > > > > Any ideas?? > > Most like its expect on you O/S. What OS and expect version? did you > look at the o/s section on the rancid web page. > > From heas at shrubbery.net Tue Oct 6 19:03:59 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 19:03:59 +0000 Subject: [rancid] Re: Config making problem In-Reply-To: <4ACB8D1B.9030300@gmail.com> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <4ACA1865.8060309@gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <20091006161058.GD15866@shrubbery.net> <4ACB6E43.4090205@gmail.com> <867d5e9c0910061052j29b4cccdoce9545b3a3f184d6@mail.gmail.com> <4ACB8D1B.9030300@gmail.com> Message-ID: <20091006190359.GF11669@shrubbery.net> Tue, Oct 06, 2009 at 08:31:55PM +0200, Rozs Norbert: > Jose Madrid ?rta: >> That is most likely your problem. Routers.up gets filled with the >> devices that are marked as up in router.db. Please paste your >> router.db here and maybe we can help you find the problem. What does >> your routers.down say? > routers.down say all routers in router.db are down, so routers.down > filled up with entries from router.db without :up. > The router.db look like this: > --- cut --- > :cisco:up > :cisco:up > :cisco:up > ... > 12..14 times > --- cut --- > I wrote that routers are reachable, clogin can login, commands can be > executed on the routers. then you probably have trailing shit after "up". Insert a colon after "up". >> On Tue, Oct 6, 2009 at 12:20 PM, Rozs Norbert > > wrote: >> >> john heasley ?rta: >> > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: >> > >> >> 2009/10/6 john heasley > > >> >> >> >> >> >>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: >> >>> >> >>>> john heasley ?rta: >> >>>> >> >>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: >> >>>>> >> >>>>> >> >>>>>> Yes, I executed rancid-cvs, it made the directory structure >> for all >> >>>>>> entries of LIST_OF_GROUPS, rancid-run >> >>>>>> make all the things for the cvs (the "source of the >> diff's") but no >> >>>>>> configs in the group/config directory. >> >>>>>> >> >>>>>> >> >>>>> check the group's router.db file. it'l need at least 1 >> device that is >> >>>>> marked 'up'. also see router.db(5). >> >>>>> >> >>>>> >> >>>> The router.db for the group has 12 entries, all in the format >> >>>> :cisco:up >> >>>> and all the names are in the /etc/hosts. (I wrote before that >> clogin can >> >>>> login and >> >>>> can execute commands.) >> >>>> >> >>> If rancid-cvs created stuff for the group, and there are >> devices in the >> >>> group, and the group is in LIST_OF_GROUPS, and cron is >> working, then at a >> >>> minimum the log file for the group look similar to: >> >>> >> >>> >> >>> Trying to get all of the configs. >> >>> All routers sucessfully completed. >> >>> >> >>> cvs diff: Diffing . >> >>> cvs diff: Diffing configs >> >>> cvs commit: Examining . >> >>> cvs commit: Examining configs >> >>> >> >>> ending: Sat Oct 3 15:10:59 UTC 2009 >> >>> >> >>> >> >>> debug it. sh -x rancid-run or sh -x control_rancid groupname >> >>> >> >>> >> >>> >> >> So, the logs are similar as this: >> >> >> >> --- cut --- >> >> begin: Sat Oct 3 15:10:59 UTC 2009 >> >> >> >> >> >> >> >> ending: Sat Oct 3 15:10:59 UTC 2009 >> >> --- cut --- >> >> >> >> Nothing more, nothing less. >> >> >> > >> > are group/routers.{all,up} populated? >> > >> > >> Sorry for my english, but what is it mean "populated"? >> If that mean group/routers.all and group/routers.up are created, my >> answer is yes, >> but the file routers.up is empty and routers.all is filled with lines >> from router.db >> without ':up' in the end of the entries. >> >> I will try the sh -x rancid-run or sh -x control_rancid >> groupname method to >> >> test/debug it. >> >> >> >> >> >> >> >>>>>> Shane Kavanagh ?rta: >> >>>>>> >> >>>>>> >> >>>>>>> Hi >> >>>>>>> >> >>>>>>> have you executed rancid-cvs >> (/usr/lib/rancid/bin/rancid-cvs) to >> >>>>>>> update the rancid and populate the cvs app >> >>>>>>> >> >>>>>>> SK >> >>>>>>> >> >>>>>>> >> >>>>>>> 2009/10/5 Norbert Rozs > > >> >>>>>>> >> >>>>>>> Hi Everyone >> >>>>>>> >> >>>>>>> I have a strange problem with RANCID. Everything >> working fine with >> >>>>>>> it, I have about 14..16 groups >> >>>>>>> in my install and the problem is some of the groups >> working >> >>>>>>> (login, make commands, get output, >> >>>>>>> format the output and get cvs infos, make the config >> files in >> >>>>>>> right place) but some of the groups >> >>>>>>> not working (login, make commands, get output, format >> output but >> >>>>>>> no configs in the right dirs.). >> >>>>>>> So I tried all thing to troubleshoot: clogin works, >> all commands >> >>>>>>> can run on the devices, but it is >> >>>>>>> not working. Please give me some ideas what goes >> wrong, what could >> >>>>>>> be the problem. The logs >> >>>>>>> are empty, just a start statement and an end statement >> is in >> >>>>>>> >> >>> there. >> >>> >> >>>>>>> Thank you! >> >>>>>>> >> >>>>>>> -- >> >>>>>>> >> >>>>>>> >> >>>>>>> Best regards: >> >>>>>>> ----------- >> >>>>>>> Norbert Rozs >> >>>>>>> >> >>>>>>> _______________________________________________ >> >>>>>>> Rancid-discuss mailing list >> >>>>>>> Rancid-discuss at shrubbery.net >> >> > >> >>>>>>> >> >>>>>>> >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>> _______________________________________________ >> >>>>>> Rancid-discuss mailing list >> >>>>>> Rancid-discuss at shrubbery.net >> >> >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >>>>>> >> >>>>>> >> >> >> >> -- >> >> >> >> >> >> Best regards: >> >> ----------- >> >> Norbert Rozs >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss >> >> >> >> >> -- >> It has to start somewhere, it has to start sometime. What better >> place than here? What better time than now? From Dan_Mitton at YMP.GOV Tue Oct 6 19:45:46 2009 From: Dan_Mitton at YMP.GOV (Dan_Mitton at YMP.GOV) Date: Tue, 6 Oct 2009 12:45:46 -0700 Subject: [rancid] Re: Nexus expect looping In-Reply-To: <20091006190115.GE11669@shrubbery.net> Message-ID: pkg_info shows me the same version of expect, but a newer version of tcl... pkg_info | egrep "expect|tcl" expect-5.43.0_3 A sophisticated scripter based on tcl/tk tcl-8.4.19_3,1 Tool Command Language Do you think I should go back to the older version of tcl? Dan To: Dan_Mitton at YMP.GOV cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus expect looping LSN: Not Relevant - Not Privileged User Filed as: Excl/AdminMgmt-14-4/QA:N/A Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > John, > > Thanks for your reply. I'm running FreeBSD 7.2: > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > 07:18:07 UTC 2009 > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > expect verion: > > expect version 5.43.0 Its most likely your expect/tcl set. A friend (and others) has had this problem a few times. He recently updated his ports and the set of tcl/expect that he got with that update has been working. pkginfo on that host gives me: expect-5.43.0_3 A sophisticated scripter based on tcl/tk tcl-8.3.5_8 Tool Command Language > > > > To: Dan_Mitton at YMP.GOV > cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > problems. > > > > First, it tried to run the command 'show version build-info all', which > > doesn't exist, so I commented it out of the nxrancid file. > > that should not be necessary, it should just skip it. > > > Second, it seems to get most of the way through (I think), but then the > > expect process goes to 100% CPU until it is killed. > > > > The Nexus 5000 is running: > > > > Software > > BIOS: version 1.2.0 > > loader: version N/A > > kickstart: version 4.1(3)N1(1) > > system: version 4.1(3)N1(1) > > BIOS compile time: 06/19/08 > > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > and has 1 - 2148 hung off of it. > > > > Any ideas?? > > Most like its expect on you O/S. What OS and expect version? did you > look at the o/s section on the rancid web page. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/9b1e34cc/attachment.html From heas at shrubbery.net Tue Oct 6 19:55:35 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 19:55:35 +0000 Subject: [rancid] Re: Nexus expect looping In-Reply-To: References: <20091006190115.GE11669@shrubbery.net> Message-ID: <20091006195535.GB9867@shrubbery.net> Tue, Oct 06, 2009 at 12:45:46PM -0700, Dan_Mitton at YMP.GOV: > pkg_info shows me the same version of expect, but a newer version of > tcl... > > pkg_info | egrep "expect|tcl" > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > tcl-8.4.19_3,1 Tool Command Language > > Do you think I should go back to the older version of tcl? Please try it; I dont use fbsd regularly, but I know the combination below is working. > Dan > > > > > To: Dan_Mitton at YMP.GOV > cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > > John, > > > > Thanks for your reply. I'm running FreeBSD 7.2: > > > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > > 07:18:07 UTC 2009 > > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > > expect verion: > > > > expect version 5.43.0 > > Its most likely your expect/tcl set. A friend (and others) has had > this problem a few times. He recently updated his ports and the set > of tcl/expect that he got with that update has been working. pkginfo > on that host gives me: > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > tcl-8.3.5_8 Tool Command Language > > > > > > > > > To: Dan_Mitton at YMP.GOV > > cc: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Nexus expect looping > > LSN: Not Relevant - Not Privileged > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > > problems. > > > > > > First, it tried to run the command 'show version build-info all', > which > > > doesn't exist, so I commented it out of the nxrancid file. > > > > that should not be necessary, it should just skip it. > > > > > Second, it seems to get most of the way through (I think), but then > the > > > expect process goes to 100% CPU until it is killed. > > > > > > The Nexus 5000 is running: > > > > > > Software > > > BIOS: version 1.2.0 > > > loader: version N/A > > > kickstart: version 4.1(3)N1(1) > > > system: version 4.1(3)N1(1) > > > BIOS compile time: 06/19/08 > > > kickstart image file is: > bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > > > and has 1 - 2148 hung off of it. > > > > > > Any ideas?? > > > > Most like its expect on you O/S. What OS and expect version? did you > > look at the o/s section on the rancid web page. > > > > > > From mylists at aicmail.net Tue Oct 6 19:50:21 2009 From: mylists at aicmail.net (Richey Goldberg) Date: Tue, 6 Oct 2009 15:50:21 -0400 Subject: [rancid] Adtran Message-ID: <011b01ca46be$3d0356c0$b70a0440$@net> Is anyone using Rancid to grab the configs on Adtran gear? I am looking to backup the Total Access 900 series routers. Is it as simple as devicename:adtran:up in the router config file? Richey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/51afcef6/attachment.html From Dan_Mitton at YMP.GOV Tue Oct 6 22:27:10 2009 From: Dan_Mitton at YMP.GOV (Dan_Mitton at YMP.GOV) Date: Tue, 6 Oct 2009 15:27:10 -0700 Subject: [rancid] Re: Nexus expect looping In-Reply-To: <20091006195535.GB9867@shrubbery.net> Message-ID: Ok, some more info I just discovered... Our whole configuration is 3 Nexus and about 20 misc. other Cisco IOS and CatOS switches/routers. Everything seems to be working except 1 of the Nexus servers. It is running a slightly old version of its software then the other 2... Broken: Software BIOS: version 1.2.0 loader: version N/A kickstart: version 4.0(1a)N2(1) system: version 4.0(1a)N2(1) BIOS compile time: 06/19/08 kickstart image file is: bootflash:/n5000-uk9-kickstart.4.0.1a.N2.1.bin kickstart compile time: 2/25/2009 0:00:00 [02/25/2009 08:29:12] system image file is: bootflash:/n5000-uk9.4.0.1a.N2.1.bin system compile time: 2/25/2009 0:00:00 [02/25/2009 08:56:57] Working: Software BIOS: version 1.2.0 loader: version N/A kickstart: version 4.1(3)N1(1) system: version 4.1(3)N1(1) BIOS compile time: 06/19/08 kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] Doing 'top' on the machine, I see 'expect' doing its normal thing for a while and then waiting (for a long time), before looping to 100% cpu. I added some debugging lines to nxrancid, to print out the $linecnt and $_ and found... linecnt = 57, [vlan 200 ] linecnt = 58, [ name dan-test ] linecnt = 59, [ ] linecnt = 60, [Error: TIMEOUT reached ] linecnt = 61, [Hangup ] The 'Hangup' is (I assume) from me 'kill -HUP ' the expect process. If I resize my terminal window from 60 lines, down to 50 lines, I then get... linecnt = 48, [tacacs-server directed-request ] linecnt = 49, [ ] linecnt = 50, [Error: TIMEOUT reached ] linecnt = 51, [Hangup ] So it seems like the 'pager' is involved some how. To: Dan_Mitton at YMP.GOV cc: john heasley , rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus expect looping LSN: Not Relevant - Not Privileged User Filed as: Excl/AdminMgmt-14-4/QA:N/A Tue, Oct 06, 2009 at 12:45:46PM -0700, Dan_Mitton at YMP.GOV: > pkg_info shows me the same version of expect, but a newer version of > tcl... > > pkg_info | egrep "expect|tcl" > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > tcl-8.4.19_3,1 Tool Command Language > > Do you think I should go back to the older version of tcl? Please try it; I dont use fbsd regularly, but I know the combination below is working. > Dan > > > > > To: Dan_Mitton at YMP.GOV > cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > > John, > > > > Thanks for your reply. I'm running FreeBSD 7.2: > > > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > > 07:18:07 UTC 2009 > > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > > expect verion: > > > > expect version 5.43.0 > > Its most likely your expect/tcl set. A friend (and others) has had > this problem a few times. He recently updated his ports and the set > of tcl/expect that he got with that update has been working. pkginfo > on that host gives me: > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > tcl-8.3.5_8 Tool Command Language > > > > > > > > > To: Dan_Mitton at YMP.GOV > > cc: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Nexus expect looping > > LSN: Not Relevant - Not Privileged > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > > problems. > > > > > > First, it tried to run the command 'show version build-info all', > which > > > doesn't exist, so I commented it out of the nxrancid file. > > > > that should not be necessary, it should just skip it. > > > > > Second, it seems to get most of the way through (I think), but then > the > > > expect process goes to 100% CPU until it is killed. > > > > > > The Nexus 5000 is running: > > > > > > Software > > > BIOS: version 1.2.0 > > > loader: version N/A > > > kickstart: version 4.1(3)N1(1) > > > system: version 4.1(3)N1(1) > > > BIOS compile time: 06/19/08 > > > kickstart image file is: > bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > > > and has 1 - 2148 hung off of it. > > > > > > Any ideas?? > > > > Most like its expect on you O/S. What OS and expect version? did you > > look at the o/s section on the rancid web page. > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/5ad0ac8a/attachment.html From heas at shrubbery.net Tue Oct 6 23:22:39 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 6 Oct 2009 23:22:39 +0000 Subject: [rancid] Re: Nexus expect looping In-Reply-To: References: <20091006195535.GB9867@shrubbery.net> Message-ID: <20091006232239.GD72@shrubbery.net> Tue, Oct 06, 2009 at 03:27:10PM -0700, Dan_Mitton at YMP.GOV: > Ok, some more info I just discovered... > > Our whole configuration is 3 Nexus and about 20 misc. other Cisco IOS and > CatOS switches/routers. Everything seems to be working except 1 of the > Nexus servers. It is running a slightly old version of its software then > the other 2... > > Broken: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.0(1a)N2(1) > system: version 4.0(1a)N2(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.0.1a.N2.1.bin > kickstart compile time: 2/25/2009 0:00:00 [02/25/2009 08:29:12] > system image file is: bootflash:/n5000-uk9.4.0.1a.N2.1.bin > system compile time: 2/25/2009 0:00:00 [02/25/2009 08:56:57] > > Working: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.1(3)N1(1) > system: version 4.1(3)N1(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > Doing 'top' on the machine, I see 'expect' doing its normal thing for a > while and then waiting (for a long time), before looping to 100% cpu. yes, iirc from the debugging, whatever happened before (dont really care) would leave it with the device having closed the connection to the rancid host. at that point, expect should receive an EOF when trying to read from the half-closed (and drained) pty/file descriptor, but it doesnt. Either try rolling back to the suggested tcl/expect or report it to fbsd ports maintainers. > I added some debugging lines to nxrancid, to print out the $linecnt and $_ > and found... > > linecnt = 57, [vlan 200 > ] > linecnt = 58, [ name dan-test > ] > linecnt = 59, [ > ] > linecnt = 60, [Error: TIMEOUT reached > ] > linecnt = 61, [Hangup > ] > > The 'Hangup' is (I assume) from me 'kill -HUP ' the expect process. > If I resize my terminal window from 60 lines, down to 50 lines, I then > get... > > linecnt = 48, [tacacs-server directed-request > ] > linecnt = 49, [ > ] > linecnt = 50, [Error: TIMEOUT reached > ] > linecnt = 51, [Hangup > ] > > So it seems like the 'pager' is involved some how. > > > > > > > > To: Dan_Mitton at YMP.GOV > cc: john heasley , rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 12:45:46PM -0700, Dan_Mitton at YMP.GOV: > > pkg_info shows me the same version of expect, but a newer version of > > tcl... > > > > pkg_info | egrep "expect|tcl" > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > tcl-8.4.19_3,1 Tool Command Language > > > > Do you think I should go back to the older version of tcl? > > Please try it; I dont use fbsd regularly, but I know the combination > below is working. > > > Dan > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > cc: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Nexus expect looping > > LSN: Not Relevant - Not Privileged > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > > > John, > > > > > > Thanks for your reply. I'm running FreeBSD 7.2: > > > > > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > > > 07:18:07 UTC 2009 > > > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > > > > expect verion: > > > > > > expect version 5.43.0 > > > > Its most likely your expect/tcl set. A friend (and others) has had > > this problem a few times. He recently updated his ports and the set > > of tcl/expect that he got with that update has been working. pkginfo > > on that host gives me: > > > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > tcl-8.3.5_8 Tool Command Language > > > > > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > > cc: rancid-discuss at shrubbery.net > > > Subject: Re: [rancid] Nexus expect looping > > > LSN: Not Relevant - Not Privileged > > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > > > > problems. > > > > > > > > First, it tried to run the command 'show version build-info all', > > which > > > > doesn't exist, so I commented it out of the nxrancid file. > > > > > > that should not be necessary, it should just skip it. > > > > > > > Second, it seems to get most of the way through (I think), but then > > the > > > > expect process goes to 100% CPU until it is killed. > > > > > > > > The Nexus 5000 is running: > > > > > > > > Software > > > > BIOS: version 1.2.0 > > > > loader: version N/A > > > > kickstart: version 4.1(3)N1(1) > > > > system: version 4.1(3)N1(1) > > > > BIOS compile time: 06/19/08 > > > > kickstart image file is: > > bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > > > > > and has 1 - 2148 hung off of it. > > > > > > > > Any ideas?? > > > > > > Most like its expect on you O/S. What OS and expect version? did you > > > look at the o/s section on the rancid web page. > > > > > > > > > > > > From jeremys at rickyninja.net Wed Oct 7 02:08:49 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Tue, 6 Oct 2009 19:08:49 -0700 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: <20091006074959.GF1014@shrubbery.net> References: <20091006054009.GB4206@pegasus.billn.net> <20091006074959.GF1014@shrubbery.net> Message-ID: <20091007020849.GC4206@pegasus.billn.net> On 10/06/09, john heasley said: > Mon, Oct 05, 2009 at 10:40:09PM -0700, Jeremy Singletary: > > On 10/05/09, Deny IP Any Any said: > > > It has worked fine for months; after making a minor change to one of > > > the Dell switch's configs, now I'm occasionally seeing parts of the > > > pager in my diffs: > > > > If your dell has the 'terminal datadump' command it would be easier to > > edit the code to send that command than trying to match the pager prompts. > > that leaves the login script less usable for other automation. How does it make it less usable for other automation? clogin uses the 'term length 0' or 'set length 0' commands to disable the pager. From heas at shrubbery.net Wed Oct 7 02:33:38 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Oct 2009 02:33:38 +0000 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: <20091007020849.GC4206@pegasus.billn.net> References: <20091006054009.GB4206@pegasus.billn.net> <20091006074959.GF1014@shrubbery.net> <20091007020849.GC4206@pegasus.billn.net> Message-ID: <20091007023338.GZ72@shrubbery.net> Tue, Oct 06, 2009 at 07:08:49PM -0700, Jeremy Singletary: > On 10/06/09, john heasley said: > > Mon, Oct 05, 2009 at 10:40:09PM -0700, Jeremy Singletary: > > > On 10/05/09, Deny IP Any Any said: > > > > It has worked fine for months; after making a minor change to one of > > > > the Dell switch's configs, now I'm occasionally seeing parts of the > > > > pager in my diffs: > > > > > > If your dell has the 'terminal datadump' command it would be easier to > > > edit the code to send that command than trying to match the pager prompts. > > > > that leaves the login script less usable for other automation. > > How does it make it less usable for other automation? clogin uses the 'term > length 0' or 'set length 0' commands to disable the pager. But you can't disable the pager here, right? which means that if someone tries to use it for automation and pager comes into play, they have the same issue. the login script should deal with the pager if possible. From jmadrid2 at gmail.com Wed Oct 7 02:44:31 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Tue, 6 Oct 2009 22:44:31 -0400 Subject: [rancid] Re: Adtran In-Reply-To: <011b01ca46be$3d0356c0$b70a0440$@net> References: <011b01ca46be$3d0356c0$b70a0440$@net> Message-ID: <867d5e9c0910061944ha1877d5k27e6f868450b9f9@mail.gmail.com> Richey, >From a simple google search, it would seem that you need to set the device type to Cisco. I did a grep for Adtran in bin dir of Rancid and that device name isnt matched so there is no specific script for it. I would suggest a Google search which brought up quite a few answers. 2009/10/6 Richey Goldberg > Is anyone using Rancid to grab the configs on Adtran gear? I am looking > to backup the Total Access 900 series routers. Is it as simple as > devicename:adtran:up in the router config file? > > > > > > > > Richey > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091006/20265b61/attachment.html From jeremys at rickyninja.net Wed Oct 7 03:11:09 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Tue, 6 Oct 2009 20:11:09 -0700 Subject: [rancid] Re: assistance with removing pager from Dell script In-Reply-To: <20091007023338.GZ72@shrubbery.net> References: <20091006054009.GB4206@pegasus.billn.net> <20091006074959.GF1014@shrubbery.net> <20091007020849.GC4206@pegasus.billn.net> <20091007023338.GZ72@shrubbery.net> Message-ID: <20091007031107.GD4206@pegasus.billn.net> On 10/07/09, john heasley said: > Tue, Oct 06, 2009 at 07:08:49PM -0700, Jeremy Singletary: > > On 10/06/09, john heasley said: > > > Mon, Oct 05, 2009 at 10:40:09PM -0700, Jeremy Singletary: > > > > On 10/05/09, Deny IP Any Any said: > > > > > It has worked fine for months; after making a minor change to one of > > > > > the Dell switch's configs, now I'm occasionally seeing parts of the > > > > > pager in my diffs: > > > > > > > > If your dell has the 'terminal datadump' command it would be easier to > > > > edit the code to send that command than trying to match the pager prompts. > > > > > > that leaves the login script less usable for other automation. > > > > How does it make it less usable for other automation? clogin uses the 'term > > length 0' or 'set length 0' commands to disable the pager. > > But you can't disable the pager here, right? which means that if someone > tries to use it for automation and pager comes into play, they have the > same issue. the login script should deal with the pager if possible. Some dells will allow you to disable the pager. I don't know if this one will or not. Until the pager recognition expect code can be updated appropriately, disabling the pager will work for some devices and leave you no worse off than the present paging failure. I agree that the login script should be able to handle the pager, and I would update the code on rickyninja to handle more dell pagers if I had access to more than one type of dell to test against. From networking at hostalia.com Wed Oct 7 07:59:24 2009 From: networking at hostalia.com (=?UTF-8?B?ScOxYWtpIE1hcnRpbmV6IERpZXo=?=) Date: Wed, 07 Oct 2009 09:59:24 +0200 Subject: [rancid] Nortel Alteon problem "end of run" SOLVED!!!! Message-ID: <4ACC4A5C.4040709@hostalia.com> Hi, I have 9 Nortel Alteons (i am newbie in Nortel Alteons) and i have added them to rancid. I have created a new group for them and added to router.db (alteon type) and to .clogin, but i'd got in some devices this error: "end of run" Well, the error was that the Alteon that show "end of run" were access with "oper" (not admin) password, so the alogin and arancid ONLY work well with the admin password. The admin password has a prompt ended in # The oper password has a prompt ended in ] Hope this can help to someone. From jleitao at gmail.com Wed Oct 7 08:12:32 2009 From: jleitao at gmail.com (Jose Leitao) Date: Wed, 7 Oct 2009 10:12:32 +0200 Subject: [rancid] Cisco 3845 with a Cisco Unity Express unexplained hardware diffs Message-ID: Hello, I have a Cisco 3845 with a Cisco Unity Express module for which rancid shows these diffs constantly: retrieving revision 1.50 diff -U 4 -r1.50 192.168.0.1 @@ -301,11 +301,9 @@ !Slot 1: type Integrated Service Engine, 1 ports !Slot 1: hvers 1.0 rev A0 !Slot 1: hvers 1.0 rev A0 !Slot 1: part 800-29801-01, serial FOC11111111 - !Slot 1: hvers 0.0 rev UNKNOWN !Slot 1: part 800-29814-01, serial FOC22222222 - !Slot 1: part 00-0000-00, serial 0 retrieving revision 1.51 diff -U 4 -r1.51 192.168.0.1 @@ -301,9 +301,11 @@ - Hide quoted text - !Slot 1: type Integrated Service Engine, 1 ports !Slot 1: hvers 1.0 rev A0 !Slot 1: hvers 1.0 rev A0 !Slot 1: part 800-29801-01, serial FOC11111111 + !Slot 1: hvers 0.0 rev UNKNOWN !Slot 1: part 800-29814-01, serial FOC22222222 + !Slot 1: part 00-0000-00, serial 0 retrieving revision 1.52 diff -U 4 -r1.52 192.168.0.1 @@ -301,11 +301,9 @@ - Hide quoted text - !Slot 1: type Integrated Service Engine, 1 ports !Slot 1: hvers 1.0 rev A0 !Slot 1: hvers 1.0 rev A0 !Slot 1: part 800-29801-01, serial FOC11111111 - !Slot 1: hvers 0.0 rev UNKNOWN !Slot 1: part 800-29814-01, serial FOC22222222 - !Slot 1: part 00-0000-00, serial 0 retrieving revision 1.53 diff -U 4 -r1.53 192.168.0.1 @@ -301,9 +301,11 @@ - Hide quoted text - !Slot 1: type Integrated Service Engine, 1 ports !Slot 1: hvers 1.0 rev A0 !Slot 1: hvers 1.0 rev A0 !Slot 1: part 800-29801-01, serial FOC11111111 + !Slot 1: hvers 0.0 rev UNKNOWN !Slot 1: part 800-29814-01, serial FOC22222222 + !Slot 1: part 00-0000-00, serial 0 In the Slot1 is a NME-CUE, what could this mean?: !Slot 1: hvers 0.0 rev UNKNOWN !Slot 1: part 00-0000-00, serial 0 I have another Cisco 3845 with a NME-CUE on the same slot without incident. Both routers have the same IOS version (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but since the above output seems to come from show inventory and show diag, there wasn?t much they could do. In fact, running sh diag and show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev UNKNOWN" message. Any ideas? Thanks, JL From jmadrid2 at gmail.com Wed Oct 7 11:24:46 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Wed, 7 Oct 2009 07:24:46 -0400 Subject: [rancid] Re: Adtran In-Reply-To: <016201ca473e$2651cd00$72f56700$@net> References: <011b01ca46be$3d0356c0$b70a0440$@net> <867d5e9c0910061944ha1877d5k27e6f868450b9f9@mail.gmail.com> <016201ca473e$2651cd00$72f56700$@net> Message-ID: <867d5e9c0910070424w25622763pff6c7586ee88d0d0@mail.gmail.com> First and foremost you should do research before emailing this list. By the email you sent, you are asking us to do the work for you. Unfortunately, I did it for you and even gave you the answer. I answered your question and tried to put you on the right path to find your own answer. I was sincerely trying to help you and this is how you respond? I apologize to everyone on the list for this type of BS getting emailed to everyone. I don't care enough about your problem to email any further about it. By the way, its spelled CUBICLE, not cubical. A google search would have told you that also. On Wed, Oct 7, 2009 at 7:05 AM, Richey Goldberg wrote: > Wow, I bet you feel more powerful now. Quick, run to the next cubical > and tell everyone how you just showed some guy how smart you were! You will > be the cubical farm hero! > > > > Richey > > > > *From:* Jose Madrid [mailto:jmadrid2 at gmail.com] > *Sent:* Tuesday, October 06, 2009 10:45 PM > *To:* Richey Goldberg > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Adtran > > > > Richey, > > From a simple google search, it would seem that you need to set the device > type to Cisco. I did a grep for Adtran in bin dir of Rancid and that device > name isnt matched so there is no specific script for it. I would suggest a > Google search which brought up quite a few answers. > > 2009/10/6 Richey Goldberg > > Is anyone using Rancid to grab the configs on Adtran gear? I am looking to > backup the Total Access 900 series routers. Is it as simple as > devicename:adtran:up in the router config file? > > > > > > > > Richey > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > -- > It has to start somewhere, it has to start sometime. What better place > than here? What better time than now? > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091007/5a8ca300/attachment.html From crok.bic at gmail.com Wed Oct 7 07:58:12 2009 From: crok.bic at gmail.com (Norbert Rozs) Date: Wed, 7 Oct 2009 09:58:12 +0200 Subject: [rancid] Re: Config making problem In-Reply-To: <20091006190359.GF11669@shrubbery.net> References: <8cf6dff10910050841n73b8faf8gcc080f901c9921f3@mail.gmail.com> <20091005172813.GF20577@shrubbery.net> <4ACAD2A6.1010509@gmail.com> <20091006075821.GG1014@shrubbery.net> <20091006161058.GD15866@shrubbery.net> <4ACB6E43.4090205@gmail.com> <867d5e9c0910061052j29b4cccdoce9545b3a3f184d6@mail.gmail.com> <4ACB8D1B.9030300@gmail.com> <20091006190359.GF11669@shrubbery.net> Message-ID: Thank you so much, problem seems to be solved. My excolleague put some space chars after the "up". (Probably a notepad->putty copy-paste problem.) 2009/10/6 john heasley > Tue, Oct 06, 2009 at 08:31:55PM +0200, Rozs Norbert: > > Jose Madrid ?rta: > >> That is most likely your problem. Routers.up gets filled with the > >> devices that are marked as up in router.db. Please paste your > >> router.db here and maybe we can help you find the problem. What does > >> your routers.down say? > > routers.down say all routers in router.db are down, so routers.down > > filled up with entries from router.db without :up. > > The router.db look like this: > > --- cut --- > > :cisco:up > > :cisco:up > > :cisco:up > > ... > > 12..14 times > > --- cut --- > > I wrote that routers are reachable, clogin can login, commands can be > > executed on the routers. > > then you probably have trailing shit after "up". Insert a colon after > "up". > > >> On Tue, Oct 6, 2009 at 12:20 PM, Rozs Norbert >> > wrote: > >> > >> john heasley ?rta: > >> > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs: > >> > > >> >> 2009/10/6 john heasley >> > > >> >> > >> >> > >> >>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert: > >> >>> > >> >>>> john heasley ?rta: > >> >>>> > >> >>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert: > >> >>>>> > >> >>>>> > >> >>>>>> Yes, I executed rancid-cvs, it made the directory structure > >> for all > >> >>>>>> entries of LIST_OF_GROUPS, rancid-run > >> >>>>>> make all the things for the cvs (the "source of the > >> diff's") but no > >> >>>>>> configs in the group/config directory. > >> >>>>>> > >> >>>>>> > >> >>>>> check the group's router.db file. it'l need at least 1 > >> device that is > >> >>>>> marked 'up'. also see router.db(5). > >> >>>>> > >> >>>>> > >> >>>> The router.db for the group has 12 entries, all in the format > >> >>>> :cisco:up > >> >>>> and all the names are in the /etc/hosts. (I wrote before that > >> clogin can > >> >>>> login and > >> >>>> can execute commands.) > >> >>>> > >> >>> If rancid-cvs created stuff for the group, and there are > >> devices in the > >> >>> group, and the group is in LIST_OF_GROUPS, and cron is > >> working, then at a > >> >>> minimum the log file for the group look similar to: > >> >>> > >> >>> > >> >>> Trying to get all of the configs. > >> >>> All routers sucessfully completed. > >> >>> > >> >>> cvs diff: Diffing . > >> >>> cvs diff: Diffing configs > >> >>> cvs commit: Examining . > >> >>> cvs commit: Examining configs > >> >>> > >> >>> ending: Sat Oct 3 15:10:59 UTC 2009 > >> >>> > >> >>> > >> >>> debug it. sh -x rancid-run or sh -x control_rancid groupname > >> >>> > >> >>> > >> >>> > >> >> So, the logs are similar as this: > >> >> > >> >> --- cut --- > >> >> begin: Sat Oct 3 15:10:59 UTC 2009 > >> >> > >> >> > >> >> > >> >> ending: Sat Oct 3 15:10:59 UTC 2009 > >> >> --- cut --- > >> >> > >> >> Nothing more, nothing less. > >> >> > >> > > >> > are group/routers.{all,up} populated? > >> > > >> > > >> Sorry for my english, but what is it mean "populated"? > >> If that mean group/routers.all and group/routers.up are created, my > >> answer is yes, > >> but the file routers.up is empty and routers.all is filled with > lines > >> from router.db > >> without ':up' in the end of the entries. > >> >> I will try the sh -x rancid-run or sh -x control_rancid > >> groupname method to > >> >> test/debug it. > >> >> > >> >> > >> >> > >> >>>>>> Shane Kavanagh ?rta: > >> >>>>>> > >> >>>>>> > >> >>>>>>> Hi > >> >>>>>>> > >> >>>>>>> have you executed rancid-cvs > >> (/usr/lib/rancid/bin/rancid-cvs) to > >> >>>>>>> update the rancid and populate the cvs app > >> >>>>>>> > >> >>>>>>> SK > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> 2009/10/5 Norbert Rozs >> >> > >> >>>>>>> > >> >>>>>>> Hi Everyone > >> >>>>>>> > >> >>>>>>> I have a strange problem with RANCID. Everything > >> working fine with > >> >>>>>>> it, I have about 14..16 groups > >> >>>>>>> in my install and the problem is some of the groups > >> working > >> >>>>>>> (login, make commands, get output, > >> >>>>>>> format the output and get cvs infos, make the config > >> files in > >> >>>>>>> right place) but some of the groups > >> >>>>>>> not working (login, make commands, get output, format > >> output but > >> >>>>>>> no configs in the right dirs.). > >> >>>>>>> So I tried all thing to troubleshoot: clogin works, > >> all commands > >> >>>>>>> can run on the devices, but it is > >> >>>>>>> not working. Please give me some ideas what goes > >> wrong, what could > >> >>>>>>> be the problem. The logs > >> >>>>>>> are empty, just a start statement and an end statement > >> is in > >> >>>>>>> > >> >>> there. > >> >>> > >> >>>>>>> Thank you! > >> >>>>>>> > >> >>>>>>> -- > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> Best regards: > >> >>>>>>> ----------- > >> >>>>>>> Norbert Rozs > >> >>>>>>> > >> >>>>>>> _______________________________________________ > >> >>>>>>> Rancid-discuss mailing list > >> >>>>>>> Rancid-discuss at shrubbery.net > >> > >> >> > >> >>>>>>> > >> >>>>>>> > >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > >> >>>>>> _______________________________________________ > >> >>>>>> Rancid-discuss mailing list > >> >>>>>> Rancid-discuss at shrubbery.net > >> > >> >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >> >>>>>> > >> >>>>>> > >> >> > >> >> -- > >> >> > >> >> > >> >> Best regards: > >> >> ----------- > >> >> Norbert Rozs > >> >> > >> > >> _______________________________________________ > >> Rancid-discuss mailing list > >> Rancid-discuss at shrubbery.net > >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > >> > >> > >> > >> > >> -- > >> It has to start somewhere, it has to start sometime. What better > >> place than here? What better time than now? > -- Best regards: ----------- Norbert Rozs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091007/51e54142/attachment.html From jmadrid2 at gmail.com Wed Oct 7 13:19:11 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Wed, 7 Oct 2009 09:19:11 -0400 Subject: [rancid] Re: Adtran In-Reply-To: <01af01ca4750$8175feb0$8461fc10$@net> References: <011b01ca46be$3d0356c0$b70a0440$@net> <867d5e9c0910061944ha1877d5k27e6f868450b9f9@mail.gmail.com> <016201ca473e$2651cd00$72f56700$@net> <867d5e9c0910070424w25622763pff6c7586ee88d0d0@mail.gmail.com> <01af01ca4750$8175feb0$8461fc10$@net> Message-ID: <867d5e9c0910070619x7b67c658pe16900688f4219c8@mail.gmail.com> No biggie, it happens :) On Wed, Oct 7, 2009 at 9:17 AM, Richey Goldberg wrote: > Sorry but it pisses me off to no end to see someone ask a question and > get belittled because they didn?t do it the way you did it. The majority > of my searches on Rancid (other topics) come up empty so I thought I might > ask a simple question and get a simple answer. I apologize for my snappy > response this morning, your email followed another email that had pissed me > off and I snapped at you. > > > > Richey > > > > *From:* Jose Madrid [mailto:jmadrid2 at gmail.com] > *Sent:* Wednesday, October 07, 2009 7:25 AM > > *To:* Richey Goldberg > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Adtran > > > > First and foremost you should do research before emailing this list. By > the email you sent, you are asking us to do the work for you. > Unfortunately, I did it for you and even gave you the answer. I answered > your question and tried to put you on the right path to find your own > answer. I was sincerely trying to help you and this is how you respond? I > apologize to everyone on the list for this type of BS getting emailed to > everyone. I don't care enough about your problem to email any further about > it. > > > > By the way, its spelled CUBICLE, not cubical. A google search would have > told you that also. > > > > On Wed, Oct 7, 2009 at 7:05 AM, Richey Goldberg > wrote: > > Wow, I bet you feel more powerful now. Quick, run to the next cubical > and tell everyone how you just showed some guy how smart you were! You will > be the cubical farm hero! > > > > Richey > > > > *From:* Jose Madrid [mailto:jmadrid2 at gmail.com] > *Sent:* Tuesday, October 06, 2009 10:45 PM > *To:* Richey Goldberg > *Cc:* rancid-discuss at shrubbery.net > *Subject:* Re: [rancid] Adtran > > > > Richey, > > From a simple google search, it would seem that you need to set the device > type to Cisco. I did a grep for Adtran in bin dir of Rancid and that device > name isnt matched so there is no specific script for it. I would suggest a > Google search which brought up quite a few answers. > > 2009/10/6 Richey Goldberg > > Is anyone using Rancid to grab the configs on Adtran gear? I am looking to > backup the Total Access 900 series routers. Is it as simple as > devicename:adtran:up in the router config file? > > > > > > > > Richey > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > > > > -- > It has to start somewhere, it has to start sometime. What better place > than here? What better time than now? > > > > > -- > It has to start somewhere, it has to start sometime. What better place > than here? What better time than now? > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091007/b182789c/attachment.html From heas at shrubbery.net Wed Oct 7 14:16:57 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Oct 2009 14:16:57 +0000 Subject: [rancid] Re: Adtran In-Reply-To: <011b01ca46be$3d0356c0$b70a0440$@net> References: <011b01ca46be$3d0356c0$b70a0440$@net> Message-ID: <20091007141657.GA22134@shrubbery.net> Tue, Oct 06, 2009 at 03:50:21PM -0400, Richey Goldberg: > Is anyone using Rancid to grab the configs on Adtran gear? I am looking to > backup the Total Access 900 series routers. Is it as simple as > devicename:adtran:up in the router config file? there is no adtran module in the rancid dist. I believe that someone posted a script for adtran; I do not if it works. such as http://www.shrubbery.net/pipermail/rancid-discuss/2008-December/003499.html From heas at shrubbery.net Wed Oct 7 14:28:52 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Oct 2009 14:28:52 +0000 Subject: [rancid] Re: Cisco 3845 with a Cisco Unity Express unexplained hardware diffs In-Reply-To: References: Message-ID: <20091007142852.GB22134@shrubbery.net> Wed, Oct 07, 2009 at 10:12:32AM +0200, Jose Leitao: > Hello, > > I have a Cisco 3845 with a Cisco Unity Express module for which rancid > shows these diffs constantly: > > retrieving revision 1.50 > diff -U 4 -r1.50 192.168.0.1 > @@ -301,11 +301,9 @@ > !Slot 1: type Integrated Service Engine, 1 ports > !Slot 1: hvers 1.0 rev A0 > !Slot 1: hvers 1.0 rev A0 > !Slot 1: part 800-29801-01, serial FOC11111111 > - !Slot 1: hvers 0.0 rev UNKNOWN > !Slot 1: part 800-29814-01, serial FOC22222222 > - !Slot 1: part 00-0000-00, serial 0 > > retrieving revision 1.51 > diff -U 4 -r1.51 192.168.0.1 > @@ -301,9 +301,11 @@ > - Hide quoted text - > !Slot 1: type Integrated Service Engine, 1 ports > !Slot 1: hvers 1.0 rev A0 > !Slot 1: hvers 1.0 rev A0 > !Slot 1: part 800-29801-01, serial FOC11111111 > + !Slot 1: hvers 0.0 rev UNKNOWN > !Slot 1: part 800-29814-01, serial FOC22222222 > + !Slot 1: part 00-0000-00, serial 0 > > retrieving revision 1.52 > diff -U 4 -r1.52 192.168.0.1 > @@ -301,11 +301,9 @@ > - Hide quoted text - > !Slot 1: type Integrated Service Engine, 1 ports > !Slot 1: hvers 1.0 rev A0 > !Slot 1: hvers 1.0 rev A0 > !Slot 1: part 800-29801-01, serial FOC11111111 > - !Slot 1: hvers 0.0 rev UNKNOWN > !Slot 1: part 800-29814-01, serial FOC22222222 > - !Slot 1: part 00-0000-00, serial 0 > > retrieving revision 1.53 > diff -U 4 -r1.53 192.168.0.1 > @@ -301,9 +301,11 @@ > - Hide quoted text - > !Slot 1: type Integrated Service Engine, 1 ports > !Slot 1: hvers 1.0 rev A0 > !Slot 1: hvers 1.0 rev A0 > !Slot 1: part 800-29801-01, serial FOC11111111 > + !Slot 1: hvers 0.0 rev UNKNOWN > !Slot 1: part 800-29814-01, serial FOC22222222 > + !Slot 1: part 00-0000-00, serial 0 > > In the Slot1 is a NME-CUE, what could this mean?: > > !Slot 1: hvers 0.0 rev UNKNOWN > !Slot 1: part 00-0000-00, serial 0 > > I have another Cisco 3845 with a NME-CUE on the same slot without > incident. Both routers have the same IOS version > (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but > since the above output seems to come from show inventory and show > diag, there wasn?t much they could do. In fact, running sh diag and > show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev > UNKNOWN" message. > > Any ideas? the module/card is broken? this info comes from show diag, not inventory. the output does look odd, 3 hvers entries for slot 1. there must be some daughter entries in the show diag output for the ISE card that rancid is missing; its hard to get that data because the output formatting is inconsistent even among platforms with the same IOS rev. However, inconsistent o/p is an artifact of what the device is returning, not rancid. From Lee.Jorissen at usmetrotel.com Wed Oct 7 14:45:00 2009 From: Lee.Jorissen at usmetrotel.com (Jorissen, Lee) Date: Wed, 7 Oct 2009 10:45:00 -0400 Subject: [rancid] Re: Adtran In-Reply-To: <20091007141657.GA22134@shrubbery.net> References: <011b01ca46be$3d0356c0$b70a0440$@net> <20091007141657.GA22134@shrubbery.net> Message-ID: Richey, We have had success with the 900 series Adtran IAD's using the standard cisco module. Lee Jorissen -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of john heasley Sent: Wednesday, October 07, 2009 10:17 AM To: Richey Goldberg Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: Adtran Tue, Oct 06, 2009 at 03:50:21PM -0400, Richey Goldberg: > Is anyone using Rancid to grab the configs on Adtran gear? I am looking to > backup the Total Access 900 series routers. Is it as simple as > devicename:adtran:up in the router config file? there is no adtran module in the rancid dist. I believe that someone posted a script for adtran; I do not if it works. such as http://www.shrubbery.net/pipermail/rancid-discuss/2008-December/003499.html _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From jleitao at gmail.com Wed Oct 7 14:47:07 2009 From: jleitao at gmail.com (Jose Leitao) Date: Wed, 7 Oct 2009 16:47:07 +0200 Subject: [rancid] Re: Cisco 3845 with a Cisco Unity Express unexplained hardware diffs In-Reply-To: <20091007142852.GB22134@shrubbery.net> References: <20091007142852.GB22134@shrubbery.net> Message-ID: Hello, We have run several tests on the Unity Module, it seems to work fine. Thanks, JL On Wed, Oct 7, 2009 at 4:28 PM, john heasley wrote: > Wed, Oct 07, 2009 at 10:12:32AM +0200, Jose Leitao: >> Hello, >> >> I have a Cisco 3845 with a Cisco Unity Express module for which rancid >> shows these diffs constantly: >> >> retrieving revision 1.50 >> diff -U 4 -r1.50 192.168.0.1 >> @@ -301,11 +301,9 @@ >> ?!Slot 1: type Integrated Service Engine, 1 ports >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> - !Slot 1: hvers 0.0 rev UNKNOWN >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> - !Slot 1: part 00-0000-00, serial 0 >> >> retrieving revision 1.51 >> diff -U 4 -r1.51 192.168.0.1 >> @@ -301,9 +301,11 @@ >> - Hide quoted text - >> ?!Slot 1: type Integrated Service Engine, 1 ports >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> + !Slot 1: hvers 0.0 rev UNKNOWN >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> + !Slot 1: part 00-0000-00, serial 0 >> >> retrieving revision 1.52 >> diff -U 4 -r1.52 192.168.0.1 >> @@ -301,11 +301,9 @@ >> - Hide quoted text - >> ?!Slot 1: type Integrated Service Engine, 1 ports >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> - !Slot 1: hvers 0.0 rev UNKNOWN >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> - !Slot 1: part 00-0000-00, serial 0 >> >> retrieving revision 1.53 >> diff -U 4 -r1.53 192.168.0.1 >> @@ -301,9 +301,11 @@ >> - Hide quoted text - >> ?!Slot 1: type Integrated Service Engine, 1 ports >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: hvers 1.0 rev A0 >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> + !Slot 1: hvers 0.0 rev UNKNOWN >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> + !Slot 1: part 00-0000-00, serial 0 >> >> In the Slot1 is a NME-CUE, what could this mean?: >> >> !Slot 1: hvers 0.0 rev UNKNOWN >> !Slot 1: part 00-0000-00, serial 0 >> >> I have another Cisco 3845 with a NME-CUE on the same slot without >> incident. Both routers have the same IOS version >> (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but >> since the above output seems to come from show inventory and show >> diag, there wasn?t much they could do. In fact, running sh diag and >> show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev >> UNKNOWN" message. >> >> Any ideas? > > the module/card is broken? ?this info comes from show diag, not inventory. > the output does look odd, 3 hvers entries for slot 1. ?there must be some > daughter entries in the show diag output for the ISE card that rancid is > missing; its hard to get that data because the output formatting is > inconsistent even among platforms with the same IOS rev. ?However, > inconsistent o/p is an artifact of what the device is returning, not > rancid. > > From heas at shrubbery.net Wed Oct 7 16:43:40 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Oct 2009 16:43:40 +0000 Subject: [rancid] Re: Cisco 3845 with a Cisco Unity Express unexplained hardware diffs In-Reply-To: References: <20091007142852.GB22134@shrubbery.net> Message-ID: <20091007164340.GH22134@shrubbery.net> Wed, Oct 07, 2009 at 04:47:07PM +0200, Jose Leitao: > Hello, > > We have run several tests on the Unity Module, it seems to work fine. that does not mean that it's ID prom is functioning reliably, or .... you could try moving it to a different slot or swap it with the move in your other router. I'll bet the problem moves with the card. > Thanks, > JL > > On Wed, Oct 7, 2009 at 4:28 PM, john heasley wrote: > > Wed, Oct 07, 2009 at 10:12:32AM +0200, Jose Leitao: > >> Hello, > >> > >> I have a Cisco 3845 with a Cisco Unity Express module for which rancid > >> shows these diffs constantly: > >> > >> retrieving revision 1.50 > >> diff -U 4 -r1.50 192.168.0.1 > >> @@ -301,11 +301,9 @@ > >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> - !Slot 1: hvers 0.0 rev UNKNOWN > >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> - !Slot 1: part 00-0000-00, serial 0 > >> > >> retrieving revision 1.51 > >> diff -U 4 -r1.51 192.168.0.1 > >> @@ -301,9 +301,11 @@ > >> - Hide quoted text - > >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> + !Slot 1: hvers 0.0 rev UNKNOWN > >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> + !Slot 1: part 00-0000-00, serial 0 > >> > >> retrieving revision 1.52 > >> diff -U 4 -r1.52 192.168.0.1 > >> @@ -301,11 +301,9 @@ > >> - Hide quoted text - > >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> - !Slot 1: hvers 0.0 rev UNKNOWN > >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> - !Slot 1: part 00-0000-00, serial 0 > >> > >> retrieving revision 1.53 > >> diff -U 4 -r1.53 192.168.0.1 > >> @@ -301,9 +301,11 @@ > >> - Hide quoted text - > >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: hvers 1.0 rev A0 > >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> + !Slot 1: hvers 0.0 rev UNKNOWN > >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> + !Slot 1: part 00-0000-00, serial 0 > >> > >> In the Slot1 is a NME-CUE, what could this mean?: > >> > >> !Slot 1: hvers 0.0 rev UNKNOWN > >> !Slot 1: part 00-0000-00, serial 0 > >> > >> I have another Cisco 3845 with a NME-CUE on the same slot without > >> incident. Both routers have the same IOS version > >> (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but > >> since the above output seems to come from show inventory and show > >> diag, there wasn?t much they could do. In fact, running sh diag and > >> show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev > >> UNKNOWN" message. > >> > >> Any ideas? > > > > the module/card is broken? ?this info comes from show diag, not inventory. > > the output does look odd, 3 hvers entries for slot 1. ?there must be some > > daughter entries in the show diag output for the ISE card that rancid is > > missing; its hard to get that data because the output formatting is > > inconsistent even among platforms with the same IOS rev. ?However, > > inconsistent o/p is an artifact of what the device is returning, not > > rancid. > > > > From Dan_Mitton at YMP.GOV Wed Oct 7 18:38:15 2009 From: Dan_Mitton at YMP.GOV (Dan_Mitton at YMP.GOV) Date: Wed, 7 Oct 2009 11:38:15 -0700 Subject: [rancid] Solved - Re: Nexus expect looping In-Reply-To: <20091006232239.GD72@shrubbery.net> Message-ID: I have the answer!!... clogin tries to do a 'terminal length 0' to turn paging off. Under NX-OS, that command is only available to users with the roles 'vdc-admin' and 'network-admin'. My rancid user was logging in and was only a 'vdc-operator', so the command failed, so the expect script would hang at the first --More-- prompt, until it timed out, then it would loop. Now on to all of the other nxrancid problems. To: Dan_Mitton at YMP.GOV cc: john heasley , rancid-discuss at shrubbery.net Subject: Re: [rancid] Nexus expect looping LSN: Not Relevant - Not Privileged User Filed as: Excl/AdminMgmt-14-4/QA:N/A Tue, Oct 06, 2009 at 03:27:10PM -0700, Dan_Mitton at YMP.GOV: > Ok, some more info I just discovered... > > Our whole configuration is 3 Nexus and about 20 misc. other Cisco IOS and > CatOS switches/routers. Everything seems to be working except 1 of the > Nexus servers. It is running a slightly old version of its software then > the other 2... > > Broken: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.0(1a)N2(1) > system: version 4.0(1a)N2(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.0.1a.N2.1.bin > kickstart compile time: 2/25/2009 0:00:00 [02/25/2009 08:29:12] > system image file is: bootflash:/n5000-uk9.4.0.1a.N2.1.bin > system compile time: 2/25/2009 0:00:00 [02/25/2009 08:56:57] > > Working: > > Software > BIOS: version 1.2.0 > loader: version N/A > kickstart: version 4.1(3)N1(1) > system: version 4.1(3)N1(1) > BIOS compile time: 06/19/08 > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > Doing 'top' on the machine, I see 'expect' doing its normal thing for a > while and then waiting (for a long time), before looping to 100% cpu. yes, iirc from the debugging, whatever happened before (dont really care) would leave it with the device having closed the connection to the rancid host. at that point, expect should receive an EOF when trying to read from the half-closed (and drained) pty/file descriptor, but it doesnt. Either try rolling back to the suggested tcl/expect or report it to fbsd ports maintainers. > I added some debugging lines to nxrancid, to print out the $linecnt and $_ > and found... > > linecnt = 57, [vlan 200 > ] > linecnt = 58, [ name dan-test > ] > linecnt = 59, [ > ] > linecnt = 60, [Error: TIMEOUT reached > ] > linecnt = 61, [Hangup > ] > > The 'Hangup' is (I assume) from me 'kill -HUP ' the expect process. > If I resize my terminal window from 60 lines, down to 50 lines, I then > get... > > linecnt = 48, [tacacs-server directed-request > ] > linecnt = 49, [ > ] > linecnt = 50, [Error: TIMEOUT reached > ] > linecnt = 51, [Hangup > ] > > So it seems like the 'pager' is involved some how. > > > > > > > > To: Dan_Mitton at YMP.GOV > cc: john heasley , rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 12:45:46PM -0700, Dan_Mitton at YMP.GOV: > > pkg_info shows me the same version of expect, but a newer version of > > tcl... > > > > pkg_info | egrep "expect|tcl" > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > tcl-8.4.19_3,1 Tool Command Language > > > > Do you think I should go back to the older version of tcl? > > Please try it; I dont use fbsd regularly, but I know the combination > below is working. > > > Dan > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > cc: rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Nexus expect looping > > LSN: Not Relevant - Not Privileged > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > > > John, > > > > > > Thanks for your reply. I'm running FreeBSD 7.2: > > > > > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > > > 07:18:07 UTC 2009 > > > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > > > > expect verion: > > > > > > expect version 5.43.0 > > > > Its most likely your expect/tcl set. A friend (and others) has had > > this problem a few times. He recently updated his ports and the set > > of tcl/expect that he got with that update has been working. pkginfo > > on that host gives me: > > > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > tcl-8.3.5_8 Tool Command Language > > > > > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > > cc: rancid-discuss at shrubbery.net > > > Subject: Re: [rancid] Nexus expect looping > > > LSN: Not Relevant - Not Privileged > > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm having > > > > > problems. > > > > > > > > First, it tried to run the command 'show version build-info all', > > which > > > > doesn't exist, so I commented it out of the nxrancid file. > > > > > > that should not be necessary, it should just skip it. > > > > > > > Second, it seems to get most of the way through (I think), but then > > the > > > > expect process goes to 100% CPU until it is killed. > > > > > > > > The Nexus 5000 is running: > > > > > > > > Software > > > > BIOS: version 1.2.0 > > > > loader: version N/A > > > > kickstart: version 4.1(3)N1(1) > > > > system: version 4.1(3)N1(1) > > > > BIOS compile time: 06/19/08 > > > > kickstart image file is: > > bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > > > > > and has 1 - 2148 hung off of it. > > > > > > > > Any ideas?? > > > > > > Most like its expect on you O/S. What OS and expect version? did you > > > look at the o/s section on the rancid web page. > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091007/7f16cb76/attachment.html From heas at shrubbery.net Wed Oct 7 19:35:13 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 7 Oct 2009 19:35:13 +0000 Subject: [rancid] Re: Solved - Re: Nexus expect looping In-Reply-To: References: <20091006232239.GD72@shrubbery.net> Message-ID: <20091007193513.GP22134@shrubbery.net> Wed, Oct 07, 2009 at 11:38:15AM -0700, Dan_Mitton at YMP.GOV: > I have the answer!!... > > clogin tries to do a 'terminal length 0' to turn paging off. Under NX-OS, > that command is only available to users with the roles 'vdc-admin' and > 'network-admin'. My rancid user was logging in and was only a > 'vdc-operator', so the command failed, so the expect script would hang at > the first --More-- prompt, until it timed out, then it would loop. it (expect) should not spin out, regardless of pager issue. > Now on to all of the other nxrancid problems. > > > > > To: Dan_Mitton at YMP.GOV > cc: john heasley , rancid-discuss at shrubbery.net > Subject: Re: [rancid] Nexus expect looping > LSN: Not Relevant - Not Privileged > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > Tue, Oct 06, 2009 at 03:27:10PM -0700, Dan_Mitton at YMP.GOV: > > Ok, some more info I just discovered... > > > > Our whole configuration is 3 Nexus and about 20 misc. other Cisco IOS > and > > CatOS switches/routers. Everything seems to be working except 1 of the > > Nexus servers. It is running a slightly old version of its software > then > > the other 2... > > > > Broken: > > > > Software > > BIOS: version 1.2.0 > > loader: version N/A > > kickstart: version 4.0(1a)N2(1) > > system: version 4.0(1a)N2(1) > > BIOS compile time: 06/19/08 > > kickstart image file is: > bootflash:/n5000-uk9-kickstart.4.0.1a.N2.1.bin > > kickstart compile time: 2/25/2009 0:00:00 [02/25/2009 08:29:12] > > system image file is: bootflash:/n5000-uk9.4.0.1a.N2.1.bin > > system compile time: 2/25/2009 0:00:00 [02/25/2009 08:56:57] > > > > Working: > > > > Software > > BIOS: version 1.2.0 > > loader: version N/A > > kickstart: version 4.1(3)N1(1) > > system: version 4.1(3)N1(1) > > BIOS compile time: 06/19/08 > > kickstart image file is: bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 00:53:59] > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > system compile time: 7/23/2009 17:00:00 [07/24/2009 01:42:52] > > > > Doing 'top' on the machine, I see 'expect' doing its normal thing for a > > while and then waiting (for a long time), before looping to 100% cpu. > > yes, iirc from the debugging, whatever happened before (dont really care) > would leave it with the device having closed the connection to the rancid > host. at that point, expect should receive an EOF when trying to read > from the half-closed (and drained) pty/file descriptor, but it doesnt. > > Either try rolling back to the suggested tcl/expect or report it to fbsd > ports maintainers. > > > I added some debugging lines to nxrancid, to print out the $linecnt and > $_ > > and found... > > > > linecnt = 57, [vlan 200 > > ] > > linecnt = 58, [ name dan-test > > ] > > linecnt = 59, [ > > ] > > linecnt = 60, [Error: TIMEOUT reached > > ] > > linecnt = 61, [Hangup > > ] > > > > The 'Hangup' is (I assume) from me 'kill -HUP ' the expect process. > > > If I resize my terminal window from 60 lines, down to 50 lines, I then > > get... > > > > linecnt = 48, [tacacs-server directed-request > > ] > > linecnt = 49, [ > > ] > > linecnt = 50, [Error: TIMEOUT reached > > ] > > linecnt = 51, [Hangup > > ] > > > > So it seems like the 'pager' is involved some how. > > > > > > > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > cc: john heasley , rancid-discuss at shrubbery.net > > Subject: Re: [rancid] Nexus expect looping > > LSN: Not Relevant - Not Privileged > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > Tue, Oct 06, 2009 at 12:45:46PM -0700, Dan_Mitton at YMP.GOV: > > > pkg_info shows me the same version of expect, but a newer version of > > > tcl... > > > > > > pkg_info | egrep "expect|tcl" > > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > > tcl-8.4.19_3,1 Tool Command Language > > > > > > Do you think I should go back to the older version of tcl? > > > > Please try it; I dont use fbsd regularly, but I know the combination > > below is working. > > > > > Dan > > > > > > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > > cc: rancid-discuss at shrubbery.net > > > Subject: Re: [rancid] Nexus expect looping > > > LSN: Not Relevant - Not Privileged > > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > > > Tue, Oct 06, 2009 at 10:28:01AM -0700, Dan_Mitton at YMP.GOV: > > > > John, > > > > > > > > Thanks for your reply. I'm running FreeBSD 7.2: > > > > > > > > FreeBSD host.ymp.gov 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 > > > > 07:18:07 UTC 2009 > > > > root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > > > > > > expect verion: > > > > > > > > expect version 5.43.0 > > > > > > Its most likely your expect/tcl set. A friend (and others) has had > > > this problem a few times. He recently updated his ports and the set > > > of tcl/expect that he got with that update has been working. pkginfo > > > on that host gives me: > > > > > > expect-5.43.0_3 A sophisticated scripter based on tcl/tk > > > tcl-8.3.5_8 Tool Command Language > > > > > > > > > > > > > > > > > > > To: Dan_Mitton at YMP.GOV > > > > cc: rancid-discuss at shrubbery.net > > > > Subject: Re: [rancid] Nexus expect looping > > > > LSN: Not Relevant - Not Privileged > > > > User Filed as: Excl/AdminMgmt-14-4/QA:N/A > > > > > > > > Tue, Oct 06, 2009 at 10:01:23AM -0700, Dan_Mitton at YMP.GOV: > > > > > I am trying to get Rancid to scan a Cisco Nexus 5000, but I'm > having > > > > > > > problems. > > > > > > > > > > First, it tried to run the command 'show version build-info all', > > > which > > > > > doesn't exist, so I commented it out of the nxrancid file. > > > > > > > > that should not be necessary, it should just skip it. > > > > > > > > > Second, it seems to get most of the way through (I think), but > then > > > the > > > > > expect process goes to 100% CPU until it is killed. > > > > > > > > > > The Nexus 5000 is running: > > > > > > > > > > Software > > > > > BIOS: version 1.2.0 > > > > > loader: version N/A > > > > > kickstart: version 4.1(3)N1(1) > > > > > system: version 4.1(3)N1(1) > > > > > BIOS compile time: 06/19/08 > > > > > kickstart image file is: > > > bootflash:/n5000-uk9-kickstart.4.1.3.N1.1.bin > > > > > kickstart compile time: 7/23/2009 17:00:00 [07/24/2009 > 00:53:59] > > > > > system image file is: bootflash:/n5000-uk9.4.1.3.N1.1.bin > > > > > system compile time: 7/23/2009 17:00:00 [07/24/2009 > 01:42:52] > > > > > > > > > > and has 1 - 2148 hung off of it. > > > > > > > > > > Any ideas?? > > > > > > > > Most like its expect on you O/S. What OS and expect version? did > you > > > > look at the o/s section on the rancid web page. > > > > > > > > > > > > > > > > > > > > From mrgreiner at gmail.com Thu Oct 8 14:02:16 2009 From: mrgreiner at gmail.com (Roberto Greiner) Date: Thu, 08 Oct 2009 11:02:16 -0300 Subject: [rancid] Dell PowerConnect Message-ID: <4ACDF0E8.7070609@gmail.com> Hi, I'm using Rancid for some time on our routers/switches, and recently we acquired a few PowerConnect 6248 switches. I downloaded the scripts on http://www.rickyninja.net/rancid/, and most of it works, but I'm getting the problem that at the of a run, the script does not recognize the end of the output, apparently due to the 'quit' command issue. Is somebody still working on that problem? Thank you, Roberto Greiner -- ----------------------------------------------------- Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade James Branch Cabell ----------------------------------------------------- From oogali at gmail.com Thu Oct 8 15:14:39 2009 From: oogali at gmail.com (Omachonu Ogali) Date: Thu, 8 Oct 2009 11:14:39 -0400 Subject: [rancid] bay/nortel switches Message-ID: I know you're not a big fan of menu-based systems, but I've inherited a network full of Nortel switches, that I need to monitor the configurations of. So I modified the brancid and blogin scripts to deal with the initial menu. In my environment, I created a separate set of binaries for the gear since the original bay stuff doesn't work with the code I'm running. I also have a few Nortel Passports, that also aren't serviced by the bay stuff. I'm not sure if splitting this things up in the format I've done is the way to go, but here are some diffs... Thanks, oo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091008/5435d62a/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: baynortel.diff Type: application/octet-stream Size: 8190 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091008/5435d62a/attachment.obj From raina at luggnagg.net Thu Oct 8 15:27:56 2009 From: raina at luggnagg.net (Raina Otoni) Date: Fri, 09 Oct 2009 00:27:56 +0900 Subject: [rancid] Re: Dell PowerConnect In-Reply-To: <4ACDF0E8.7070609@gmail.com> References: <4ACDF0E8.7070609@gmail.com> Message-ID: <4ACE04FC.7030002@luggnagg.net> Hi Have you tried this version? http://www.rickyninja.net/rancid/dlogin-dev (2009?10?08? 23:02), Roberto Greiner wrote: > Hi, > > I'm using Rancid for some time on our routers/switches, and recently we > acquired a few PowerConnect 6248 switches. I downloaded the scripts on > http://www.rickyninja.net/rancid/, and most of it works, but I'm getting > the problem that at the of a run, the script does not recognize the end > of the output, apparently due to the 'quit' command issue. Is somebody > still working on that problem? > > Thank you, > > Roberto Greiner > > From mrgreiner at gmail.com Thu Oct 8 17:18:01 2009 From: mrgreiner at gmail.com (Roberto Greiner) Date: Thu, 08 Oct 2009 14:18:01 -0300 Subject: [rancid] Re: Dell PowerConnect In-Reply-To: <4ACE04FC.7030002@luggnagg.net> References: <4ACDF0E8.7070609@gmail.com> <4ACE04FC.7030002@luggnagg.net> Message-ID: <4ACE1EC9.3090908@gmail.com> I've managed to make it work. "Deny IP Any Any" sent me a version he is using, and it worked fine. Thanks. Roberto Raina Otoni wrote: > Hi > > Have you tried this version? > http://www.rickyninja.net/rancid/dlogin-dev > > > (2009$BG/(B10$B7n(B08$BF|(B 23:02), Roberto Greiner wrote: > >> Hi, >> >> I'm using Rancid for some time on our routers/switches, and recently we >> acquired a few PowerConnect 6248 switches. I downloaded the scripts on >> http://www.rickyninja.net/rancid/, and most of it works, but I'm getting >> the problem that at the of a run, the script does not recognize the end >> of the output, apparently due to the 'quit' command issue. Is somebody >> still working on that problem? >> >> Thank you, >> >> Roberto Greiner >> >> >> > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > -- ----------------------------------------------------- Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade James Branch Cabell ----------------------------------------------------- From asmirnoff at office.beeline.ru Fri Oct 9 06:40:33 2009 From: asmirnoff at office.beeline.ru (Smirnoff Alexander) Date: Fri, 9 Oct 2009 10:40:33 +0400 Subject: [rancid] Re: bay/nortel switches In-Reply-To: References: Message-ID: <986544234AB0A44BADE40DF502E2012A02338776@SPBMAIL.spb.sovintel.net> I have troubles with downloading Nortel Passports configs in CLI, and move to snmp->tftp downloading. Arter that configs go to rancid , store and diffs on standart scheme. ________________________________ From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Omachonu Ogali Sent: Thursday, October 08, 2009 7:15 PM To: rancid-discuss at shrubbery.net Subject: [rancid] bay/nortel switches I know you're not a big fan of menu-based systems, but I've inherited a network full of Nortel switches, that I need to monitor the configurations of. So I modified the brancid and blogin scripts to deal with the initial menu. In my environment, I created a separate set of binaries for the gear since the original bay stuff doesn't work with the code I'm running. I also have a few Nortel Passports, that also aren't serviced by the bay stuff. I'm not sure if splitting this things up in the format I've done is the way to go, but here are some diffs... Thanks, oo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091009/e54a97d8/attachment.html From networking at hostalia.com Fri Oct 9 08:28:41 2009 From: networking at hostalia.com (=?ISO-8859-1?Q?I=F1aki_Martinez_Diez?=) Date: Fri, 09 Oct 2009 10:28:41 +0200 Subject: [rancid] Re: Dell PowerConnect In-Reply-To: <4ACE1EC9.3090908@gmail.com> References: <4ACDF0E8.7070609@gmail.com> <4ACE04FC.7030002@luggnagg.net> <4ACE1EC9.3090908@gmail.com> Message-ID: <4ACEF439.4090003@hostalia.com> Roberto Greiner escribi?: > I've managed to make it work. "Deny IP Any Any" sent me a version he is > using, and it worked fine. > > can you send to the list that working version ? Thanks. From mrgreiner at gmail.com Fri Oct 9 13:39:25 2009 From: mrgreiner at gmail.com (Roberto Greiner) Date: Fri, 09 Oct 2009 10:39:25 -0300 Subject: [rancid] Re: Dell PowerConnect In-Reply-To: <4ACEF439.4090003@hostalia.com> References: <4ACDF0E8.7070609@gmail.com> <4ACE04FC.7030002@luggnagg.net> <4ACE1EC9.3090908@gmail.com> <4ACEF439.4090003@hostalia.com> Message-ID: <4ACF3D0D.8030409@gmail.com> I'm sending the files dlogin and drancid atached in a tar.bz2 file (I hope the list allows attach files). The rancid-fe I'm using is the one in http://www.rickyninja.net/rancid/ . Roberto I?aki Martinez Diez wrote: > Roberto Greiner escribi?: >> I've managed to make it work. "Deny IP Any Any" sent me a version he is >> using, and it worked fine. >> >> > can you send to the list that working version ? > > Thanks. > > > > -- ----------------------------------------------------- Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade James Branch Cabell ----------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: rancid-dell.tar.bz2 Type: application/octet-stream Size: 11651 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091009/ca341898/attachment.obj From oogali at gmail.com Fri Oct 9 19:14:59 2009 From: oogali at gmail.com (Omachonu Ogali) Date: Fri, 9 Oct 2009 15:14:59 -0400 Subject: [rancid] Re: bay/nortel switches In-Reply-To: <986544234AB0A44BADE40DF502E2012A02338776@SPBMAIL.spb.sovintel.net> References: <986544234AB0A44BADE40DF502E2012A02338776@SPBMAIL.spb.sovintel.net> Message-ID: I tend to have a problem with my telnet session hanging when I do a "show config -all" which dumps out default, and non-default changes, so I reverted back to just plain old "show config" which just displays non-default changes. oo On Fri, Oct 9, 2009 at 2:40 AM, Smirnoff Alexander < asmirnoff at office.beeline.ru> wrote: > I have troubles with downloading Nortel Passports configs in CLI, and > move to snmp->tftp downloading. Arter that configs go to rancid , store and > diffs on standart scheme. > > > > > ------------------------------ > > *From:* rancid-discuss-bounces at shrubbery.net [mailto: > rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Omachonu Ogali > *Sent:* Thursday, October 08, 2009 7:15 PM > *To:* rancid-discuss at shrubbery.net > *Subject:* [rancid] bay/nortel switches > > > > I know you're not a big fan of menu-based systems, but I've inherited a > network full of Nortel switches, that I need to monitor the configurations > of. So I modified the brancid and blogin scripts to deal with the initial > menu. > > > > In my environment, I created a separate set of binaries for the gear since > the original bay stuff doesn't work with the code I'm running. I also have a > few Nortel Passports, that also aren't serviced by the bay stuff. > > > > I'm not sure if splitting this things up in the format I've done is the way > to go, but here are some diffs... > > > > Thanks, > > oo > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091009/d3563a25/attachment.html From J.S.Peatfield at damtp.cam.ac.uk Mon Oct 12 21:45:04 2009 From: J.S.Peatfield at damtp.cam.ac.uk (Jon Peatfield) Date: Mon, 12 Oct 2009 22:45:04 +0100 (BST) Subject: [rancid] Re: Rancid Reports Config Changes when none have taken place In-Reply-To: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> References: <8cf6dff10910050313k5820075eoa4d9e5f11fc40d45@mail.gmail.com> Message-ID: On Mon, 5 Oct 2009, Shane Kavanagh wrote: > Hi all > > I am having an issue with rancid reporting changes to ports in a VLAN when > no changes have taken place. > > Here is an example > > - !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8 > - !VLAN: Fa1/0/9, Fa1/0/10, > Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15 > - !VLAN: Fa1/0/16, Gi1/0/2 > + !VLAN: 4 server active Fa1/0/1, Fa1/0/2, > Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11, > Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2 > > note that when rancid stores the information id broke it up onto 3 lines and > when it retrieves the config again it has it on one line. This does not > happen every time it retrieves the config. > > Any Ideas or suggestions welcome. I see similar formatting differences in the output from some Cisco switches if I run rancid-run from a terminal - since the terminal width seems to get through to the switch and IOS tries to format the lines to look pretty. If I always make sure that rancid-run is run without a terminal (so no width to get passed through) then for output doesn't change. There are some places in the code where it tried to set terminal-width 0 (or equivalent) but as far as I can tell rancid-run uses options which don't force that. -- /--------------------------------------------------------------------\ | "Computers are different from telephones. Computers do not ring." | | -- A. Tanenbaum, "Computer Networks", p. 32 | ---------------------------------------------------------------------| | Jon Peatfield, _Computer_ Officer, DAMTP, University of Cambridge | | Mail: jp107 at damtp.cam.ac.uk Web: http://www.damtp.cam.ac.uk/ | \--------------------------------------------------------------------/ From jleitao at gmail.com Tue Oct 13 07:20:28 2009 From: jleitao at gmail.com (Jose Leitao) Date: Tue, 13 Oct 2009 09:20:28 +0200 Subject: [rancid] Re: Cisco 3845 with a Cisco Unity Express unexplained hardware diffs In-Reply-To: <20091007164340.GH22134@shrubbery.net> References: <20091007142852.GB22134@shrubbery.net> <20091007164340.GH22134@shrubbery.net> Message-ID: Hello, You are probably correct but for the sake of debugging, is there any way of saving the raw information that rancid gets from the router on each run for further examination? Thanks, JL On Wed, Oct 7, 2009 at 6:43 PM, john heasley wrote: > Wed, Oct 07, 2009 at 04:47:07PM +0200, Jose Leitao: >> Hello, >> >> We have run several tests on the Unity Module, it seems to work fine. > > that does not mean that it's ID prom is functioning reliably, or .... > you could try moving it to a different slot or swap it with the move > in your other router. ?I'll bet the problem moves with the card. > >> Thanks, >> JL >> >> On Wed, Oct 7, 2009 at 4:28 PM, john heasley wrote: >> > Wed, Oct 07, 2009 at 10:12:32AM +0200, Jose Leitao: >> >> Hello, >> >> >> >> I have a Cisco 3845 with a Cisco Unity Express module for which rancid >> >> shows these diffs constantly: >> >> >> >> retrieving revision 1.50 >> >> diff -U 4 -r1.50 192.168.0.1 >> >> @@ -301,11 +301,9 @@ >> >> ?!Slot 1: type Integrated Service Engine, 1 ports >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> >> - !Slot 1: hvers 0.0 rev UNKNOWN >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> >> - !Slot 1: part 00-0000-00, serial 0 >> >> >> >> retrieving revision 1.51 >> >> diff -U 4 -r1.51 192.168.0.1 >> >> @@ -301,9 +301,11 @@ >> >> - Hide quoted text - >> >> ?!Slot 1: type Integrated Service Engine, 1 ports >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> >> + !Slot 1: hvers 0.0 rev UNKNOWN >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> >> + !Slot 1: part 00-0000-00, serial 0 >> >> >> >> retrieving revision 1.52 >> >> diff -U 4 -r1.52 192.168.0.1 >> >> @@ -301,11 +301,9 @@ >> >> - Hide quoted text - >> >> ?!Slot 1: type Integrated Service Engine, 1 ports >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> >> - !Slot 1: hvers 0.0 rev UNKNOWN >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> >> - !Slot 1: part 00-0000-00, serial 0 >> >> >> >> retrieving revision 1.53 >> >> diff -U 4 -r1.53 192.168.0.1 >> >> @@ -301,9 +301,11 @@ >> >> - Hide quoted text - >> >> ?!Slot 1: type Integrated Service Engine, 1 ports >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: hvers 1.0 rev A0 >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 >> >> + !Slot 1: hvers 0.0 rev UNKNOWN >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 >> >> + !Slot 1: part 00-0000-00, serial 0 >> >> >> >> In the Slot1 is a NME-CUE, what could this mean?: >> >> >> >> !Slot 1: hvers 0.0 rev UNKNOWN >> >> !Slot 1: part 00-0000-00, serial 0 >> >> >> >> I have another Cisco 3845 with a NME-CUE on the same slot without >> >> incident. Both routers have the same IOS version >> >> (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but >> >> since the above output seems to come from show inventory and show >> >> diag, there wasn?t much they could do. In fact, running sh diag and >> >> show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev >> >> UNKNOWN" message. >> >> >> >> Any ideas? >> > >> > the module/card is broken? ?this info comes from show diag, not inventory. >> > the output does look odd, 3 hvers entries for slot 1. ?there must be some >> > daughter entries in the show diag output for the ISE card that rancid is >> > missing; its hard to get that data because the output formatting is >> > inconsistent even among platforms with the same IOS rev. ?However, >> > inconsistent o/p is an artifact of what the device is returning, not >> > rancid. >> > >> > > From heas at shrubbery.net Tue Oct 13 16:25:35 2009 From: heas at shrubbery.net (john heasley) Date: Tue, 13 Oct 2009 16:25:35 +0000 Subject: [rancid] Re: Cisco 3845 with a Cisco Unity Express unexplained hardware diffs In-Reply-To: References: <20091007142852.GB22134@shrubbery.net> <20091007164340.GH22134@shrubbery.net> Message-ID: <20091013162535.GJ23741@shrubbery.net> Tue, Oct 13, 2009 at 09:20:28AM +0200, Jose Leitao: > Hello, > > You are probably correct but for the sake of debugging, is there any > way of saving the raw information that rancid gets from the router on > each run for further examination? not w/o hacking the code; sorry. you can roll your own cron; like dt=`date +%s` rename "s/(raw|new)/\$1.$dt/" host.raw host.new NOPIPE=YES;export NOPIPE rancid -d host >> log 2>&1 > Thanks, > JL > > On Wed, Oct 7, 2009 at 6:43 PM, john heasley wrote: > > Wed, Oct 07, 2009 at 04:47:07PM +0200, Jose Leitao: > >> Hello, > >> > >> We have run several tests on the Unity Module, it seems to work fine. > > > > that does not mean that it's ID prom is functioning reliably, or .... > > you could try moving it to a different slot or swap it with the move > > in your other router. ?I'll bet the problem moves with the card. > > > >> Thanks, > >> JL > >> > >> On Wed, Oct 7, 2009 at 4:28 PM, john heasley wrote: > >> > Wed, Oct 07, 2009 at 10:12:32AM +0200, Jose Leitao: > >> >> Hello, > >> >> > >> >> I have a Cisco 3845 with a Cisco Unity Express module for which rancid > >> >> shows these diffs constantly: > >> >> > >> >> retrieving revision 1.50 > >> >> diff -U 4 -r1.50 192.168.0.1 > >> >> @@ -301,11 +301,9 @@ > >> >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> >> - !Slot 1: hvers 0.0 rev UNKNOWN > >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> >> - !Slot 1: part 00-0000-00, serial 0 > >> >> > >> >> retrieving revision 1.51 > >> >> diff -U 4 -r1.51 192.168.0.1 > >> >> @@ -301,9 +301,11 @@ > >> >> - Hide quoted text - > >> >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> >> + !Slot 1: hvers 0.0 rev UNKNOWN > >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> >> + !Slot 1: part 00-0000-00, serial 0 > >> >> > >> >> retrieving revision 1.52 > >> >> diff -U 4 -r1.52 192.168.0.1 > >> >> @@ -301,11 +301,9 @@ > >> >> - Hide quoted text - > >> >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> >> - !Slot 1: hvers 0.0 rev UNKNOWN > >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> >> - !Slot 1: part 00-0000-00, serial 0 > >> >> > >> >> retrieving revision 1.53 > >> >> diff -U 4 -r1.53 192.168.0.1 > >> >> @@ -301,9 +301,11 @@ > >> >> - Hide quoted text - > >> >> ?!Slot 1: type Integrated Service Engine, 1 ports > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: hvers 1.0 rev A0 > >> >> ?!Slot 1: part 800-29801-01, serial FOC11111111 > >> >> + !Slot 1: hvers 0.0 rev UNKNOWN > >> >> ?!Slot 1: part 800-29814-01, serial FOC22222222 > >> >> + !Slot 1: part 00-0000-00, serial 0 > >> >> > >> >> In the Slot1 is a NME-CUE, what could this mean?: > >> >> > >> >> !Slot 1: hvers 0.0 rev UNKNOWN > >> >> !Slot 1: part 00-0000-00, serial 0 > >> >> > >> >> I have another Cisco 3845 with a NME-CUE on the same slot without > >> >> incident. Both routers have the same IOS version > >> >> (adventerprisek9-mz.124-24.T1) and I recently opened a TAC case, but > >> >> since the above output seems to come from show inventory and show > >> >> diag, there wasn?t much they could do. In fact, running sh diag and > >> >> show inv from the CLI has never shown me the "Slot 1: hvers 0.0 rev > >> >> UNKNOWN" message. > >> >> > >> >> Any ideas? > >> > > >> > the module/card is broken? ?this info comes from show diag, not inventory. > >> > the output does look odd, 3 hvers entries for slot 1. ?there must be some > >> > daughter entries in the show diag output for the ISE card that rancid is > >> > missing; its hard to get that data because the output formatting is > >> > inconsistent even among platforms with the same IOS rev. ?However, > >> > inconsistent o/p is an artifact of what the device is returning, not > >> > rancid. > >> > > >> > > > From networking at hostalia.com Fri Oct 16 07:29:47 2009 From: networking at hostalia.com (=?UTF-8?B?ScOxYWtpIE1hcnRpbmV6IERpZXo=?=) Date: Fri, 16 Oct 2009 09:29:47 +0200 Subject: [rancid] Alteon arancid change Message-ID: <4AD820EB.5050407@hostalia.com> Hi, I had to change the arancid script to remove everyday this line: - opw hex_pass + opw hex_pass The original script: 205 /^(\s+.{2,3}pw )\S+/ && 206 ProcessHistory("","","","\/\*$1\n") && next; And my change: 205 /^(\s+.{1,3}pw )\S+/ && 206 ProcessHistory("","","","\/\*$1\n") && next; The change is only the number "2" to number "1" so the regex match: opw admpw usrpw I hope this helps someone. I am newbie in Alteons but i do not understand why the hex_pass change every time i got (dump) the config, i mean if i comment the 205 and 206 lines, everyday rancid-run dump the config i got the "hex_pass" different everyday for the three opw, admpw and usrpw. From mjoyner at ewc.edu Fri Oct 16 13:46:50 2009 From: mjoyner at ewc.edu (Michael Joyner) Date: Fri, 16 Oct 2009 09:46:50 -0400 Subject: [rancid] Anyone got this working for 3coms ? Message-ID: <4AD8794A.7080406@ewc.edu> Anyone got this working for 3coms ? From snaiperb at gmail.com Sun Oct 18 08:46:36 2009 From: snaiperb at gmail.com (Snaiper) Date: Sun, 18 Oct 2009 10:46:36 +0200 Subject: [rancid] Need help with backup multi context in Cisco ACE Message-ID: <5a6225190910180146g79793ccle63b633aa698a3ca@mail.gmail.com> Hi, i can backup only one context with command: invoke context Admin show running-config but if i configure in file rancid 2 commands: 'invoke context Admin show running-config' => "WriteTerm", 'invoke context test show running-config' => "WriteTerm", i backup only one context: admin or test. Please help. Thanks Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091018/08da88b6/attachment.html From ThomisonL at muni.org Sun Oct 18 16:51:49 2009 From: ThomisonL at muni.org (Thomison, Lee) Date: Sun, 18 Oct 2009 08:51:49 -0800 Subject: [rancid] svn not updating? Message-ID: <27B58F038E8FC24680CE64F6CDC508E590A2DA34AE@mlpsmail01.mlp.muniverse.net> Hi all. Trying to get rancid set up on a small network. I'm using Centos 5.3 as a host and svn as the CVS. It is almost there, I think. It's going to the ciscos every hour. It's grabbing configs; the timestamps in /var/rancid/ciscos/configs are current. It's emailing results. But the results... The output looks like a diff with a null file. And the 'router config diffs' email contents are all the same, from one hour to the next, one day to the next. I've diff'ed several of the diffs, and they are all identical. Any idea what's going on, and what do I need to do to fix it? Here's the what I think may be the relevant extract from /var/rancid/logs: ----------------- . . . Sending . svn: Commit failed (details follow): svn: Directory '/cis' is out of date ending: Sat Oct 17 17:09:17 AKDT 2009 ------------------- For what it's worth, here's some other maybe relevant info: here's /etc/rancid/rancid.conf (comments removed): Code: TERM=network;export TERM umask 027 TMPDIR=/tmp; export TMPDIR BASEDIR=/var/rancid; export BASEDIR PATH=/usr/libexec/rancid:/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin; export PATH CVSROOT=$BASEDIR/CVS; export CVSROOT LOGDIR=$BASEDIR/logs; export LOGDIR RCSSYS=svn; export RCSSYS FILTER_PWDS=NO; export FILTER_PWDS NOCOMMSTR=NO; export NOCOMMSTR LIST_OF_GROUPS="cis" permissions is always a gotcha, so here's the /var/rancid permissions tree: Code: [ ~]$ ls -la /var/rancid /var/rancid: total 40 drwxrwsr-x 5 rancid netadm 4096 Oct 16 12:40 . drwxr-xr-x 29 root root 4096 Oct 16 12:39 .. drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 CVS drwxr-s--- 2 rancid netadm 4096 Oct 17 17:01 logs drwxr-s--- 4 rancid netadm 4096 Oct 17 17:09 cis [ ~]$ ls -la /var/rancid/CVS total 64 drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 . drwxrwsr-x 5 rancid netadm 4096 Oct 16 12:40 .. drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 conf drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 db -r--r----- 1 rancid netadm 2 Oct 16 12:40 format drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 hooks drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 locks -rw-r----- 1 rancid netadm 229 Oct 16 12:40 README.txt [ ~]$ ls -la /var/rancid/CVS/conf total 40 drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. -rw-r----- 1 rancid netadm 1080 Oct 16 12:40 authz -rw-r----- 1 rancid netadm 309 Oct 16 12:40 passwd -rw-r----- 1 rancid netadm 2279 Oct 16 12:40 svnserve.conf [ ~]$ ls -la /var/rancid/CVS/db total 120 drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 . drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. -rw-r----- 1 rancid netadm 3 Oct 16 12:45 current -r--r----- 1 rancid netadm 22 Oct 16 12:40 format -rw-r----- 1 rancid netadm 1920 Oct 16 12:40 fsfs.conf -rw-r----- 1 rancid netadm 5 Oct 16 12:40 fs-type -rw-r----- 1 rancid netadm 2 Oct 16 12:40 min-unpacked-rev -rw-r----- 1 rancid netadm 4096 Oct 16 12:40 rep-cache.db drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revprops drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revs drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 transactions -rw-r----- 1 rancid netadm 3 Oct 17 17:09 txn-current -rw-r----- 1 rancid netadm 0 Oct 16 12:40 txn-current-lock drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 txn-protorevs -rw-r----- 1 rancid netadm 37 Oct 16 12:40 uuid -rw-r----- 1 rancid netadm 0 Oct 16 12:40 write-lock [ ~]$ ls -la /var/rancid/CVS/hooks total 88 drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. -rw-r----- 1 rancid netadm 1955 Oct 16 12:40 post-commit.tmpl -rw-r----- 1 rancid netadm 1638 Oct 16 12:40 post-lock.tmpl -rw-r----- 1 rancid netadm 2267 Oct 16 12:40 post-revprop-change.tmpl -rw-r----- 1 rancid netadm 1567 Oct 16 12:40 post-unlock.tmpl -rw-r----- 1 rancid netadm 3404 Oct 16 12:40 pre-commit.tmpl -rw-r----- 1 rancid netadm 2410 Oct 16 12:40 pre-lock.tmpl -rw-r----- 1 rancid netadm 2764 Oct 16 12:40 pre-revprop-change.tmpl -rw-r----- 1 rancid netadm 2100 Oct 16 12:40 pre-unlock.tmpl -rw-r----- 1 rancid netadm 2758 Oct 16 12:40 start-commit.tmpl [ ~]$ ls -la /var/rancid/CVS/locks total 32 drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. -rw-r----- 1 rancid netadm 139 Oct 16 12:40 db.lock -rw-r----- 1 rancid netadm 139 Oct 16 12:40 db-logs.lock [ ~]$ ls -la /var/rancid/cis/configs/ total 284 drwxr-s--- 3 rancid netadm 4096 Oct 17 17:09 . drwxr-s--- 4 rancid netadm 4096 Oct 17 17:09 .. -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts01 -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts02 -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts11 -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts12 -rw-r----- 1 rancid netadm 17381 Oct 17 17:01 ciscomm1c -rw-r----- 1 rancid netadm 0 Oct 16 12:45 ciscomm1d -rw-r----- 1 rancid netadm 17526 Oct 17 17:01 ciscomm2c -rw-r----- 1 rancid netadm 17559 Oct 17 17:01 ciscomm2d -rw-r----- 1 rancid netadm 20598 Oct 17 17:01 cisfw1 -rw-r----- 1 rancid netadm 20600 Oct 17 17:02 cisfw2 -rw-r----- 1 rancid netadm 17962 Oct 17 17:01 cismmsi1a -rw-r----- 1 rancid netadm 17933 Oct 17 17:01 cismmsi1b -rw-r----- 1 rancid netadm 18495 Oct 17 17:02 cismmsi2a -rw-r----- 1 rancid netadm 18369 Oct 17 17:02 cismmsi2b -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts01 -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts02 -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts11 -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts12 drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 .svn Code: [ ~]$ ls -la /usr/bin/rancid* lrwxrwxrwx 1 root root 26 Sep 30 16:18 /usr/bin/rancid -> /usr/libexec/rancid/rancid lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-cvs -> /usr/libexec/rancid/rancid-cvs lrwxrwxrwx 1 root root 29 Sep 30 16:18 /usr/bin/rancid-fe -> /usr/libexec/rancid/rancid-fe lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-run -> /usr/libexec/rancid/rancid-run [ ~]$ ls -la /usr/libexec/rancid/ total 1220 drwxr-xr-x 2 rancid netadm 4096 Oct 1 04:06 . drwxr-xr-x 15 root root 4096 Sep 30 16:18 .. -rwxr-xr-x 1 rancid netadm 16213 Sep 30 15:07 agmrancid -rwxr-xr-x 1 rancid netadm 15581 Sep 30 15:07 alogin -rwxr-xr-x 1 rancid netadm 10386 Sep 30 15:07 arancid -rwxr-xr-x 1 rancid netadm 21374 Sep 30 15:07 avologin -rwxr-xr-x 1 rancid netadm 9703 Sep 30 15:07 avorancid -rwxr-xr-x 1 rancid netadm 18726 Sep 30 15:07 blogin -rwxr-xr-x 1 rancid netadm 10010 Sep 30 15:07 brancid -rwxr-xr-x 1 rancid netadm 37347 Sep 30 15:07 cat5rancid -rwxr-xr-x 1 rancid netadm 25906 Sep 30 15:07 clogin -rwxr-xr-x 1 rancid netadm 14132 Sep 30 15:07 control_rancid -rwxr-xr-x 1 rancid netadm 23123 Sep 30 15:07 cssrancid -rwxr-xr-x 1 rancid netadm 14539 Sep 30 15:07 elogin -rwxr-xr-x 1 rancid netadm 10502 Sep 30 15:07 erancid -rwxr-xr-x 1 rancid netadm 20031 Sep 30 15:07 f10rancid -rwxr-xr-x 1 rancid netadm 18667 Sep 30 15:07 f5rancid -rwxr-xr-x 1 rancid netadm 19857 Sep 30 15:07 flogin -rwxr-xr-x 1 rancid netadm 9546 Sep 30 15:07 fnrancid -rwxr-xr-x 1 rancid netadm 15103 Sep 30 15:07 francid -rwxr-xr-x 1 rancid netadm 21788 Sep 30 15:07 hlogin -rwxr-xr-x 1 rancid netadm 18404 Sep 30 15:07 hpuifilter -rwxr-xr-x 1 rancid netadm 18067 Sep 30 15:07 hrancid -rwxr-xr-x 1 rancid netadm 14471 Sep 30 15:07 htlogin -rwxr-xr-x 1 rancid netadm 9281 Sep 30 15:07 htrancid -rwxr-xr-x 1 rancid netadm 20998 Sep 30 15:07 jerancid -rwxr-xr-x 1 rancid netadm 16205 Sep 30 15:07 jlogin -rwxr-xr-x 1 rancid netadm 22412 Sep 30 15:07 jrancid -rwxr-xr-x 1 rancid netadm 24477 Sep 30 15:07 lg.cgi -rwxr-xr-x 1 rancid netadm 7786 Sep 30 15:07 lgform.cgi -rwxr-xr-x 1 rancid netadm 13695 Sep 30 15:07 mrancid -rwxr-xr-x 1 rancid netadm 22128 Sep 30 15:07 mrvlogin -rwxr-xr-x 1 rancid netadm 16005 Sep 30 15:07 mrvrancid -rwxr-xr-x 1 rancid netadm 16631 Sep 30 15:07 nlogin -rwxr-xr-x 1 rancid netadm 11502 Sep 30 15:07 nrancid -rwxr-xr-x 1 rancid netadm 18934 Sep 30 15:07 nslogin -rwxr-xr-x 1 rancid netadm 9637 Sep 30 15:07 nsrancid -rwxr-xr-x 1 rancid netadm 58114 Sep 30 15:07 nxrancid -rwxr-xr-x 1 rancid netadm 6043 Sep 30 15:07 par -rwxr-xr-x 1 rancid netadm 18781 Sep 30 15:07 prancid -rwxr-xr-x 1 rancid netadm 65813 Sep 30 15:07 rancid -rwxr-xr-x 1 rancid netadm 4423 Oct 14 11:48 rancid-cvs -rwxr-xr-x 1 rancid netadm 3607 Sep 30 15:07 rancid-fe -rwxr-xr-x 1 rancid netadm 4865 Sep 30 15:07 rancid-run -rwxr-xr-x 1 rancid netadm 23790 Sep 30 15:07 rivlogin -rwxr-xr-x 1 rancid netadm 10922 Sep 30 15:07 rivrancid -rwxr-xr-x 1 rancid netadm 13242 Sep 30 15:07 rrancid -rwxr-xr-x 1 rancid netadm 12982 Sep 30 15:07 srancid -rwxr-xr-x 1 rancid netadm 24375 Sep 30 15:07 tlogin -rwxr-xr-x 1 rancid netadm 15483 Sep 30 15:07 tntlogin -rwxr-xr-x 1 rancid netadm 9919 Sep 30 15:07 tntrancid -rwxr-xr-x 1 rancid netadm 9692 Sep 30 15:07 trancid -rwxr-xr-x 1 rancid netadm 16827 Sep 30 15:07 xrancid -rwxr-xr-x 1 rancid netadm 13755 Sep 30 15:07 zrancid From oogali at gmail.com Mon Oct 19 03:55:06 2009 From: oogali at gmail.com (Omachonu Ogali) Date: Sun, 18 Oct 2009 23:55:06 -0400 Subject: [rancid] Re: svn not updating? In-Reply-To: <27B58F038E8FC24680CE64F6CDC508E590A2DA34AE@mlpsmail01.mlp.muniverse.net> References: <27B58F038E8FC24680CE64F6CDC508E590A2DA34AE@mlpsmail01.mlp.muniverse.net> Message-ID: Your repo directory seems to be in a busted state ("svn: Directory '/cis' is out of date")... Try this:cd /var/rancid/cis/ && svn update I believe it should work after that. oo On Sun, Oct 18, 2009 at 12:51 PM, Thomison, Lee wrote: > Hi all. > > Trying to get rancid set up on a small network. I'm using Centos 5.3 as a > host and svn as the CVS. It is almost there, I think. It's going to the > ciscos every hour. It's grabbing configs; the timestamps in > /var/rancid/ciscos/configs are current. It's emailing results. But the > results... > > The output looks like a diff with a null file. And the 'router > config diffs' email contents are all the same, from one hour to the next, > one day to the next. I've diff'ed several of the diffs, and they are all > identical. > > Any idea what's going on, and what do I need to do to fix it? > > Here's the what I think may be the relevant extract from /var/rancid/logs: > > ----------------- > . > . > . > Sending . > svn: Commit failed (details follow): > svn: Directory '/cis' is out of date > > ending: Sat Oct 17 17:09:17 AKDT 2009 > > ------------------- > > For what it's worth, here's some other maybe relevant info: > > here's /etc/rancid/rancid.conf (comments removed): > > Code: > > TERM=network;export TERM > umask 027 > TMPDIR=/tmp; export TMPDIR > BASEDIR=/var/rancid; export BASEDIR > PATH=/usr/libexec/rancid:/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin; > export PATH > CVSROOT=$BASEDIR/CVS; export CVSROOT > LOGDIR=$BASEDIR/logs; export LOGDIR > RCSSYS=svn; export RCSSYS > FILTER_PWDS=NO; export FILTER_PWDS > NOCOMMSTR=NO; export NOCOMMSTR > LIST_OF_GROUPS="cis" > > > > > permissions is always a gotcha, so here's the /var/rancid permissions tree: > > Code: > > [ ~]$ ls -la /var/rancid > /var/rancid: > total 40 > drwxrwsr-x 5 rancid netadm 4096 Oct 16 12:40 . > drwxr-xr-x 29 root root 4096 Oct 16 12:39 .. > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 CVS > drwxr-s--- 2 rancid netadm 4096 Oct 17 17:01 logs > drwxr-s--- 4 rancid netadm 4096 Oct 17 17:09 cis > [ ~]$ ls -la /var/rancid/CVS > total 64 > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 . > drwxrwsr-x 5 rancid netadm 4096 Oct 16 12:40 .. > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 conf > drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 db > -r--r----- 1 rancid netadm 2 Oct 16 12:40 format > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 hooks > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 locks > -rw-r----- 1 rancid netadm 229 Oct 16 12:40 README.txt > > [ ~]$ ls -la /var/rancid/CVS/conf > total 40 > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. > -rw-r----- 1 rancid netadm 1080 Oct 16 12:40 authz > -rw-r----- 1 rancid netadm 309 Oct 16 12:40 passwd > -rw-r----- 1 rancid netadm 2279 Oct 16 12:40 svnserve.conf > > [ ~]$ ls -la /var/rancid/CVS/db > total 120 > drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 . > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. > -rw-r----- 1 rancid netadm 3 Oct 16 12:45 current > -r--r----- 1 rancid netadm 22 Oct 16 12:40 format > -rw-r----- 1 rancid netadm 1920 Oct 16 12:40 fsfs.conf > -rw-r----- 1 rancid netadm 5 Oct 16 12:40 fs-type > -rw-r----- 1 rancid netadm 2 Oct 16 12:40 min-unpacked-rev > -rw-r----- 1 rancid netadm 4096 Oct 16 12:40 rep-cache.db > drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revprops > drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revs > drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 transactions > -rw-r----- 1 rancid netadm 3 Oct 17 17:09 txn-current > -rw-r----- 1 rancid netadm 0 Oct 16 12:40 txn-current-lock > drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 txn-protorevs > -rw-r----- 1 rancid netadm 37 Oct 16 12:40 uuid > -rw-r----- 1 rancid netadm 0 Oct 16 12:40 write-lock > > [ ~]$ ls -la /var/rancid/CVS/hooks > total 88 > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. > -rw-r----- 1 rancid netadm 1955 Oct 16 12:40 post-commit.tmpl > -rw-r----- 1 rancid netadm 1638 Oct 16 12:40 post-lock.tmpl > -rw-r----- 1 rancid netadm 2267 Oct 16 12:40 post-revprop-change.tmpl > -rw-r----- 1 rancid netadm 1567 Oct 16 12:40 post-unlock.tmpl > -rw-r----- 1 rancid netadm 3404 Oct 16 12:40 pre-commit.tmpl > -rw-r----- 1 rancid netadm 2410 Oct 16 12:40 pre-lock.tmpl > -rw-r----- 1 rancid netadm 2764 Oct 16 12:40 pre-revprop-change.tmpl > -rw-r----- 1 rancid netadm 2100 Oct 16 12:40 pre-unlock.tmpl > -rw-r----- 1 rancid netadm 2758 Oct 16 12:40 start-commit.tmpl > > [ ~]$ ls -la /var/rancid/CVS/locks > total 32 > drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 . > drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .. > -rw-r----- 1 rancid netadm 139 Oct 16 12:40 db.lock > -rw-r----- 1 rancid netadm 139 Oct 16 12:40 db-logs.lock > > [ ~]$ ls -la /var/rancid/cis/configs/ > total 284 > drwxr-s--- 3 rancid netadm 4096 Oct 17 17:09 . > drwxr-s--- 4 rancid netadm 4096 Oct 17 17:09 .. > -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts01 > -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts02 > -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts11 > -rw-r----- 1 rancid netadm 0 Oct 16 12:44 fepts12 > -rw-r----- 1 rancid netadm 17381 Oct 17 17:01 ciscomm1c > -rw-r----- 1 rancid netadm 0 Oct 16 12:45 ciscomm1d > -rw-r----- 1 rancid netadm 17526 Oct 17 17:01 ciscomm2c > -rw-r----- 1 rancid netadm 17559 Oct 17 17:01 ciscomm2d > -rw-r----- 1 rancid netadm 20598 Oct 17 17:01 cisfw1 > -rw-r----- 1 rancid netadm 20600 Oct 17 17:02 cisfw2 > -rw-r----- 1 rancid netadm 17962 Oct 17 17:01 cismmsi1a > -rw-r----- 1 rancid netadm 17933 Oct 17 17:01 cismmsi1b > -rw-r----- 1 rancid netadm 18495 Oct 17 17:02 cismmsi2a > -rw-r----- 1 rancid netadm 18369 Oct 17 17:02 cismmsi2b > -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts01 > -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts02 > -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts11 > -rw-r----- 1 rancid netadm 0 Oct 16 12:45 sec-ts12 > drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 .svn > > > > Code: > > [ ~]$ ls -la /usr/bin/rancid* > lrwxrwxrwx 1 root root 26 Sep 30 16:18 /usr/bin/rancid -> > /usr/libexec/rancid/rancid > lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-cvs -> > /usr/libexec/rancid/rancid-cvs > lrwxrwxrwx 1 root root 29 Sep 30 16:18 /usr/bin/rancid-fe -> > /usr/libexec/rancid/rancid-fe > lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-run -> > /usr/libexec/rancid/rancid-run > > [ ~]$ ls -la /usr/libexec/rancid/ > total 1220 > drwxr-xr-x 2 rancid netadm 4096 Oct 1 04:06 . > drwxr-xr-x 15 root root 4096 Sep 30 16:18 .. > -rwxr-xr-x 1 rancid netadm 16213 Sep 30 15:07 agmrancid > -rwxr-xr-x 1 rancid netadm 15581 Sep 30 15:07 alogin > -rwxr-xr-x 1 rancid netadm 10386 Sep 30 15:07 arancid > -rwxr-xr-x 1 rancid netadm 21374 Sep 30 15:07 avologin > -rwxr-xr-x 1 rancid netadm 9703 Sep 30 15:07 avorancid > -rwxr-xr-x 1 rancid netadm 18726 Sep 30 15:07 blogin > -rwxr-xr-x 1 rancid netadm 10010 Sep 30 15:07 brancid > -rwxr-xr-x 1 rancid netadm 37347 Sep 30 15:07 cat5rancid > -rwxr-xr-x 1 rancid netadm 25906 Sep 30 15:07 clogin > -rwxr-xr-x 1 rancid netadm 14132 Sep 30 15:07 control_rancid > -rwxr-xr-x 1 rancid netadm 23123 Sep 30 15:07 cssrancid > -rwxr-xr-x 1 rancid netadm 14539 Sep 30 15:07 elogin > -rwxr-xr-x 1 rancid netadm 10502 Sep 30 15:07 erancid > -rwxr-xr-x 1 rancid netadm 20031 Sep 30 15:07 f10rancid > -rwxr-xr-x 1 rancid netadm 18667 Sep 30 15:07 f5rancid > -rwxr-xr-x 1 rancid netadm 19857 Sep 30 15:07 flogin > -rwxr-xr-x 1 rancid netadm 9546 Sep 30 15:07 fnrancid > -rwxr-xr-x 1 rancid netadm 15103 Sep 30 15:07 francid > -rwxr-xr-x 1 rancid netadm 21788 Sep 30 15:07 hlogin > -rwxr-xr-x 1 rancid netadm 18404 Sep 30 15:07 hpuifilter > -rwxr-xr-x 1 rancid netadm 18067 Sep 30 15:07 hrancid > -rwxr-xr-x 1 rancid netadm 14471 Sep 30 15:07 htlogin > -rwxr-xr-x 1 rancid netadm 9281 Sep 30 15:07 htrancid > -rwxr-xr-x 1 rancid netadm 20998 Sep 30 15:07 jerancid > -rwxr-xr-x 1 rancid netadm 16205 Sep 30 15:07 jlogin > -rwxr-xr-x 1 rancid netadm 22412 Sep 30 15:07 jrancid > -rwxr-xr-x 1 rancid netadm 24477 Sep 30 15:07 lg.cgi > -rwxr-xr-x 1 rancid netadm 7786 Sep 30 15:07 lgform.cgi > -rwxr-xr-x 1 rancid netadm 13695 Sep 30 15:07 mrancid > -rwxr-xr-x 1 rancid netadm 22128 Sep 30 15:07 mrvlogin > -rwxr-xr-x 1 rancid netadm 16005 Sep 30 15:07 mrvrancid > -rwxr-xr-x 1 rancid netadm 16631 Sep 30 15:07 nlogin > -rwxr-xr-x 1 rancid netadm 11502 Sep 30 15:07 nrancid > -rwxr-xr-x 1 rancid netadm 18934 Sep 30 15:07 nslogin > -rwxr-xr-x 1 rancid netadm 9637 Sep 30 15:07 nsrancid > -rwxr-xr-x 1 rancid netadm 58114 Sep 30 15:07 nxrancid > -rwxr-xr-x 1 rancid netadm 6043 Sep 30 15:07 par > -rwxr-xr-x 1 rancid netadm 18781 Sep 30 15:07 prancid > -rwxr-xr-x 1 rancid netadm 65813 Sep 30 15:07 rancid > -rwxr-xr-x 1 rancid netadm 4423 Oct 14 11:48 rancid-cvs > -rwxr-xr-x 1 rancid netadm 3607 Sep 30 15:07 rancid-fe > -rwxr-xr-x 1 rancid netadm 4865 Sep 30 15:07 rancid-run > -rwxr-xr-x 1 rancid netadm 23790 Sep 30 15:07 rivlogin > -rwxr-xr-x 1 rancid netadm 10922 Sep 30 15:07 rivrancid > -rwxr-xr-x 1 rancid netadm 13242 Sep 30 15:07 rrancid > -rwxr-xr-x 1 rancid netadm 12982 Sep 30 15:07 srancid > -rwxr-xr-x 1 rancid netadm 24375 Sep 30 15:07 tlogin > -rwxr-xr-x 1 rancid netadm 15483 Sep 30 15:07 tntlogin > -rwxr-xr-x 1 rancid netadm 9919 Sep 30 15:07 tntrancid > -rwxr-xr-x 1 rancid netadm 9692 Sep 30 15:07 trancid > -rwxr-xr-x 1 rancid netadm 16827 Sep 30 15:07 xrancid > -rwxr-xr-x 1 rancid netadm 13755 Sep 30 15:07 zrancid > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091018/4455144a/attachment.html From NMaio at guesswho.com Mon Oct 19 11:56:27 2009 From: NMaio at guesswho.com (NMaio at guesswho.com) Date: Mon, 19 Oct 2009 07:56:27 -0400 Subject: [rancid] Re: Need help with backup multi context in Cisco ACE In-Reply-To: <5a6225190910180146g79793ccle63b633aa698a3ca@mail.gmail.com> References: <5a6225190910180146g79793ccle63b633aa698a3ca@mail.gmail.com> Message-ID: <2AA600764E54964491083B1E0EC81A302D99BED886@EXCLUS.nationala-1advertising.com> People have had difficulty backing up the FWSM and the ACE from the admin context....including myself. You might be better off backing up from one of the interfaces from each context. From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Snaiper Sent: Sunday, October 18, 2009 4:47 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Need help with backup multi context in Cisco ACE Hi, i can backup only one context with command: invoke context Admin show running-config but if i configure in file rancid 2 commands: 'invoke context Admin show running-config' => "WriteTerm", 'invoke context test show running-config' => "WriteTerm", i backup only one context: admin or test. Please help. Thanks Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091019/64cf5228/attachment.html From remyheiden at gmail.com Tue Oct 20 10:54:16 2009 From: remyheiden at gmail.com (Remy Heiden) Date: Tue, 20 Oct 2009 12:54:16 +0200 Subject: [rancid] Re: Need help with backup multi context in Cisco ACE In-Reply-To: <2AA600764E54964491083B1E0EC81A302D99BED886@EXCLUS.nationala-1advertising.com> References: <5a6225190910180146g79793ccle63b633aa698a3ca@mail.gmail.com> <2AA600764E54964491083B1E0EC81A302D99BED886@EXCLUS.nationala-1advertising.com> Message-ID: That's exactly what we do. Setup a management interface for each context (we cannot access the production interfaces from our NOC) and have rancid backup the config on that interface. This will allow you to back this up to a specific group for each customer. Remy 2009/10/19 : > People have had difficulty backing up the FWSM and the ACE from the admin > context?.including myself.? You might be better off backing up from one of > the interfaces from each context. > > > > From: rancid-discuss-bounces at shrubbery.net > [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Snaiper > Sent: Sunday, October 18, 2009 4:47 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Need help with backup multi context in Cisco ACE > > > > Hi, > i can backup only one context with command: > invoke context Admin show running-config > but if i configure in file rancid 2 commands: > 'invoke context Admin show running-config'?? => "WriteTerm", > 'invoke context test show running-config'?? => "WriteTerm", > > i backup only one context: admin or test. > > Please help. > > Thanks > Roman > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- ==================== DIHYDROGEN MONOXIDE The invisible Killer DHMO.org ==================== -- From Jayant.Jape at tikona.in Fri Oct 23 10:19:03 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Fri, 23 Oct 2009 15:49:03 +0530 Subject: [rancid] rancid error Message-ID: Hi, I have installed rancid on rhel 5,details of which are given below: Version of linux RHEL 5 os: 2.6.18-92.el5 Version of rancid: rancid-2.3.2 Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp I have made entries in .cloginrc file: add password {passwd} {en-passwd} add method telnet Also made entry in router.db :cisco:up I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. On checking I find I get this error below: [rancid at testserver ~]$ bin/rancid -d executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" Could let me know what could be the problem.....? Thanks Jayant ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091023/8d3acd5c/attachment.html From Jayant.Jape at tikona.in Mon Oct 26 07:52:20 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Mon, 26 Oct 2009 13:22:20 +0530 Subject: [rancid] Re: rancid error In-Reply-To: <20091023162718.GB17421@shrubbery.net> References: <20091023162718.GB17421@shrubbery.net> Message-ID: Under /usr/local/rancid/var/logs.... im getting errors. Also Few queries Should rancid belong to root group and second since the user is also a tacacs user, will it suffice to have a monitor access. =============================================================================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*Mum-Mha-CR0([^#>\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 149) 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/clogin" line 723)^M 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: : End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Mon Oct 26 13:01:40 IST 2009 ============================================================================================================================== With regards, Jayant -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, October 23, 2009 9:57 PM To: Jayant Jape Subject: Re: [rancid] rancid error Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > Hi, > > I have installed rancid on rhel 5,details of which are given below: > Version of linux RHEL 5 os: 2.6.18-92.el5 > Version of rancid: rancid-2.3.2 > Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp > > I have made entries in .cloginrc file: > add password {passwd} {en-passwd} > add method telnet > > Also made entry in router.db > :cisco:up > > I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. > > I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. > > > > On checking I find I get this error below: > [rancid at testserver ~]$ bin/rancid -d > executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show module;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" > > Could let me know what could be the problem.....? look in the log file for errors > Thanks > Jayant > > > > > ________________________________ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. From Jayant.Jape at tikona.in Mon Oct 26 08:30:16 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Mon, 26 Oct 2009 14:00:16 +0530 Subject: [rancid] Re: rancid error In-Reply-To: References: <20091023162718.GB17421@shrubbery.net> Message-ID: Under /usr/local/rancid/var/logs.... im getting errors. Also Few queries Should rancid belong to root group and second since the user is also a tacacs user, will it suffice to have a monitor access. =============================================================================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*Mum-Mha-CR0([^#>\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 149) 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/clogin" line 723)^M 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: : End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Mon Oct 26 13:01:40 IST 2009 ============================================================================================================================== With regards, Jayant -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, October 23, 2009 9:57 PM To: Jayant Jape Subject: Re: [rancid] rancid error Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > Hi, > > I have installed rancid on rhel 5,details of which are given below: > Version of linux RHEL 5 os: 2.6.18-92.el5 > Version of rancid: rancid-2.3.2 > Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp > > I have made entries in .cloginrc file: > add password {passwd} {en-passwd} > add method telnet > > Also made entry in router.db > :cisco:up > > I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. > > I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. > > > > On checking I find I get this error below: > [rancid at testserver ~]$ bin/rancid -d > executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show m odule;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" > > Could let me know what could be the problem.....? look in the log file for errors > Thanks > Jayant > > > > > ________________________________ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. From jmadrid2 at gmail.com Mon Oct 26 15:28:07 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Mon, 26 Oct 2009 11:28:07 -0400 Subject: [rancid] Re: rancid error In-Reply-To: References: <20091023162718.GB17421@shrubbery.net> Message-ID: <867d5e9c0910260828w7353d39es9319bc1c2cb39a4f@mail.gmail.com> Jayant, For my purposes, I have made the rancid tacacs user a full-access user and member of the Network Admin group. This means enable upon login and full access. But if you wanted to be really secure, you would simply need to give the rancid user access to the list of commands for your device type. As far as your issue goes, I am not sure. I saw your debug output, but I didnt see any error messages. Can you please post the full output of the bin/rancid -d for us again. On Mon, Oct 26, 2009 at 4:30 AM, Jayant Jape wrote: > Under /usr/local/rancid/var/logs.... im getting errors. > > Also Few queries Should rancid belong to root group and second since the > user is also a tacacs user, will it suffice to have a monitor access. > > > > =============================================================================================== > Getting missed routers: round 4. > write(spawn_id=1): broken pipe > while executing > "send_user -- "$expect_out(buffer)"" > invoked from within > "expect -nobrace -re ^H+ { exp_continue } -re {^[^ > ^M *]*Mum-Mha-CR0([^#>\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 149) > 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/clogin" line 723)^M > 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all > sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir > /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all > disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all > slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all > sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show > module,show controllers,show diagbus,more system:running-config,dir /all > slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all > sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all > slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show > vlan,dir /all slavebootflash:,show controllers cbus,dir /all > slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: > : End of run not found > ! > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > > ending: Mon Oct 26 13:01:40 IST 2009 > > ============================================================================================================================== > > > > > With regards, > Jayant > > > -----Original Message----- > From: john heasley [mailto:heas at shrubbery.net] > Sent: Friday, October 23, 2009 9:57 PM > To: Jayant Jape > Subject: Re: [rancid] rancid error > > Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > > Hi, > > > > I have installed rancid on rhel 5,details of which are given below: > > Version of linux RHEL 5 os: 2.6.18-92.el5 > > Version of rancid: rancid-2.3.2 > > Im trying to backup a 7609 cisco router: Cisco IOS Software, > c7600rsp72043_rp > > > > I have made entries in .cloginrc file: > > add password {passwd} {en-passwd} > > add method telnet > > > > Also made entry in router.db > > :cisco:up > > > > I seem to get empty config file for particular ip.I have checked the same > with other switches it's the same. > > > > I have also checked if it goes into enable mode using bin/clogin > command and doesn't seem to be a problem. > > > > > > > > On checking I find I get this error below: > > [rancid at testserver ~]$ bin/rancid -d > > executing clogin -t 90 -c"admin show version;show version;show redundancy > secondary;show idprom backplane;show install active;admin show env all;show > env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show > boot;show bootvar;admin show variables boot;show variables boot;show > flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all > disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir > /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all > sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all > slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all > slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all > slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all > sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all > sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show > controllers;show controllers cbus;show diagbus;admin show diag;show > diag;show m > odule;show spe version;show c7200;show inventory raw;show vtp status;show > vlan;show vlan-switch;show debug;more system:running-config;show > running-config;write term" > > > > Could let me know what could be the problem.....? > > look in the log file for errors > > > Thanks > > Jayant > > > > > > > > > > ________________________________ > > Please do not print this email unless it is absolutely necessary. > > > > Warning : This message contains business confidential information . This > message does not affect or modify any binding agreement nor state official > policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed > by TDN's authorised signatory. TDN does not accept any liability for any > errors, loss, delayed delivery, tampering, corruption or presence of viruses > in this message or any attachment. > > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This > message does not affect or modify any binding agreement nor state official > policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally > signed by TDN's authorised signatory. TDN does not accept any liability for > any errors, loss, delayed delivery, tampering, corruption or presence of > viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This > message does not affect or modify any binding agreement nor state official > policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally > signed by TDN's authorised signatory. TDN does not accept any liability for > any errors, loss, delayed delivery, tampering, corruption or presence of > viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091026/c378d114/attachment.html From Jayant.Jape at tikona.in Tue Oct 27 10:01:42 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Tue, 27 Oct 2009 15:31:42 +0530 Subject: [rancid] Re: rancid error In-Reply-To: <867d5e9c0910260828w7353d39es9319bc1c2cb39a4f@mail.gmail.com> References: <20091023162718.GB17421@shrubbery.net> <867d5e9c0910260828w7353d39es9319bc1c2cb39a4f@mail.gmail.com> Message-ID: Dear jose, Thanks for suggestion ! I shall do the same. Please find the log for bin/rancid -d command. [rancid at testserver ~]$ bin/rancid -d 192.168.2.2 executing clogin -t 90 -c"admin show version;show version;show redundancy second ary;show idprom backplane;show install active;admin show env all;show env all;sh ow rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootv ar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:; dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:; dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slav eslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slo t0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slo t2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admi n show diag;show diag;show module;show spe version;show c7200;show inventory raw ;show vtp status;show vlan;show vlan-switch;show debug;more system:running-confi g;show running-config;write term" 192.168.2.2 sh: clogin: command not found 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: 192.168.2.2: End of run not found 192.168.2.2: End of run not found ! Regards, Jayant From: Jose Madrid [mailto:jmadrid2 at gmail.com] Sent: Monday, October 26, 2009 8:58 PM To: Jayant Jape Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: rancid error Jayant, For my purposes, I have made the rancid tacacs user a full-access user and member of the Network Admin group. This means enable upon login and full access. But if you wanted to be really secure, you would simply need to give the rancid user access to the list of commands for your device type. As far as your issue goes, I am not sure. I saw your debug output, but I didnt see any error messages. Can you please post the full output of the bin/rancid -d for us again. On Mon, Oct 26, 2009 at 4:30 AM, Jayant Jape > wrote: Under /usr/local/rancid/var/logs.... im getting errors. Also Few queries Should rancid belong to root group and second since the user is also a tacacs user, will it suffice to have a monitor access. =============================================================================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*Mum-Mha-CR0([^#>\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 149) 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/clogin" line 723)^M 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: : End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Mon Oct 26 13:01:40 IST 2009 ============================================================================================================================== With regards, Jayant -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, October 23, 2009 9:57 PM To: Jayant Jape Subject: Re: [rancid] rancid error Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > Hi, > > I have installed rancid on rhel 5,details of which are given below: > Version of linux RHEL 5 os: 2.6.18-92.el5 > Version of rancid: rancid-2.3.2 > Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp > > I have made entries in .cloginrc file: > add password {passwd} {en-passwd} > add method telnet > > Also made entry in router.db > :cisco:up > > I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. > > I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. > > > > On checking I find I get this error below: > [rancid at testserver ~]$ bin/rancid -d > executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show m odule;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" > > Could let me know what could be the problem.....? look in the log file for errors > Thanks > Jayant > > > > > ________________________________ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091027/a1deb7f0/attachment.html From Jayant.Jape at tikona.in Tue Oct 27 10:05:52 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Tue, 27 Oct 2009 15:35:52 +0530 Subject: [rancid] Re: rancid error References: <20091023162718.GB17421@shrubbery.net> <867d5e9c0910260828w7353d39es9319bc1c2cb39a4f@mail.gmail.com> Message-ID: Dear jose, Thanks for suggestion ! I shall do the same. Please find the log for bin/rancid -d command. [rancid at testserver ~]$ bin/rancid -d 192.168.2.2 executing clogin -t 90 -c"admin show version;show version;show redundancy second ary;show idprom backplane;show install active;admin show env all;show env all;sh ow rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootv ar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:; dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:; dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slav eslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slo t0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slo t2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admi n show diag;show diag;show module;show spe version;show c7200;show inventory raw ;show vtp status;show vlan;show vlan-switch;show debug;more system:running-confi g;show running-config;write term" 192.168.2.2 sh: clogin: command not found 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: 192.168.2.2: End of run not found 192.168.2.2: End of run not found ! Regards, Jayant From: Jose Madrid [mailto:jmadrid2 at gmail.com] Sent: Monday, October 26, 2009 8:58 PM To: Jayant Jape Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: rancid error Jayant, For my purposes, I have made the rancid tacacs user a full-access user and member of the Network Admin group. This means enable upon login and full access. But if you wanted to be really secure, you would simply need to give the rancid user access to the list of commands for your device type. As far as your issue goes, I am not sure. I saw your debug output, but I didnt see any error messages. Can you please post the full output of the bin/rancid -d for us again. On Mon, Oct 26, 2009 at 4:30 AM, Jayant Jape > wrote: Under /usr/local/rancid/var/logs.... im getting errors. Also Few queries Should rancid belong to root group and second since the user is also a tacacs user, will it suffice to have a monitor access. =============================================================================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*Mum-Mha-CR0([^#>\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 149) 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/clogin" line 723)^M 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: : End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Mon Oct 26 13:01:40 IST 2009 ============================================================================================================================== With regards, Jayant -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, October 23, 2009 9:57 PM To: Jayant Jape Subject: Re: [rancid] rancid error Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > Hi, > > I have installed rancid on rhel 5,details of which are given below: > Version of linux RHEL 5 os: 2.6.18-92.el5 > Version of rancid: rancid-2.3.2 > Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp > > I have made entries in .cloginrc file: > add password {passwd} {en-passwd} > add method telnet > > Also made entry in router.db > :cisco:up > > I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. > > I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. > > > > On checking I find I get this error below: > [rancid at testserver ~]$ bin/rancid -d > executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show m odule;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" > > Could let me know what could be the problem.....? look in the log file for errors > Thanks > Jayant > > > > > ________________________________ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091027/c1fae953/attachment.html From Jayant.Jape at tikona.in Tue Oct 27 10:13:20 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Tue, 27 Oct 2009 15:43:20 +0530 Subject: [rancid] Re: rancid error References: <20091023162718.GB17421@shrubbery.net> <867d5e9c0910260828w7353d39es9319bc1c2cb39a4f@mail.gmail.com> Message-ID: D I have added the user in tacacas with admin rights.Im getting the logs...!!! [rancid at testserver logs]$ more Core.20091027.153335 starting: Tue Oct 27 15:33:35 IST 2009 Trying to get all of the configs. All routers sucessfully completed. cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs Checking in configs/; /usr/local/rancid/var/CVS/Core/configs/,v <-- new revision: 1.2; previous revision: 1.1 done Checking in configs/; /usr/local/rancid/var/CVS/Core/configs/,v <-- new revision: 1.2; previous revision: 1.1 done ending: Tue Oct 27 15:34:07 IST 2009 From: Jayant Jape Sent: Tuesday, October 27, 2009 3:32 PM To: 'Jose Madrid' Cc: rancid-discuss at shrubbery.net Subject: RE: [rancid] Re: rancid error Dear jose, Thanks for suggestion ! I shall do the same. Please find the log for bin/rancid -d command. [rancid at testserver ~]$ bin/rancid -d executing clogin -t 90 -c"admin show version;show version;show redundancy second ary;show idprom backplane;show install active;admin show env all;show env all;sh ow rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootv ar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:; dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:; dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slav eslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slo t0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slo t2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admi n show diag;show diag;show module;show spe version;show c7200;show inventory raw ;show vtp status;show vlan;show vlan-switch;show debug;more system:running-confi g;show running-config;write term" sh: clogin: command not found 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassi s-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,dir /all s ec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-bootflash:,show sp e version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar, dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram :,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0 :,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin s how version,show diagbus,more system:running-config,dir /all slavedisk0:,show de bug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-d isk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /al l harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slaveboot flash:,show controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,s how vlan-switch,admin show variables boot,show redundancy secondary,show running -config,show c7200,dir /all slot1: : End of run not found : End of run not found ! Regards, Jayant From: Jose Madrid [mailto:jmadrid2 at gmail.com] Sent: Monday, October 26, 2009 8:58 PM To: Jayant Jape Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] Re: rancid error Jayant, For my purposes, I have made the rancid tacacs user a full-access user and member of the Network Admin group. This means enable upon login and full access. But if you wanted to be really secure, you would simply need to give the rancid user access to the list of commands for your device type. As far as your issue goes, I am not sure. I saw your debug output, but I didnt see any error messages. Can you please post the full output of the bin/rancid -d for us again. On Mon, Oct 26, 2009 at 4:30 AM, Jayant Jape > wrote: Under /usr/local/rancid/var/logs.... im getting errors. Also Few queries Should rancid belong to root group and second since the user is also a tacacs user, will it suffice to have a monitor access. =============================================================================================== Getting missed routers: round 4. write(spawn_id=1): broken pipe while executing "send_user -- "$expect_out(buffer)"" invoked from within "expect -nobrace -re ^H+ { exp_continue } -re {^[^ ^M *]*Mum-Mha-CR0([^#>\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 149) 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/clogin" line 723)^M 192.168.2.2: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,more system:running-config,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1: : End of run not found ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs ending: Mon Oct 26 13:01:40 IST 2009 ============================================================================================================================== With regards, Jayant -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Friday, October 23, 2009 9:57 PM To: Jayant Jape Subject: Re: [rancid] rancid error Fri, Oct 23, 2009 at 03:49:03PM +0530, Jayant Jape: > Hi, > > I have installed rancid on rhel 5,details of which are given below: > Version of linux RHEL 5 os: 2.6.18-92.el5 > Version of rancid: rancid-2.3.2 > Im trying to backup a 7609 cisco router: Cisco IOS Software, c7600rsp72043_rp > > I have made entries in .cloginrc file: > add password {passwd} {en-passwd} > add method telnet > > Also made entry in router.db > :cisco:up > > I seem to get empty config file for particular ip.I have checked the same with other switches it's the same. > > I have also checked if it goes into enable mode using bin/clogin command and doesn't seem to be a problem. > > > > On checking I find I get this error below: > [rancid at testserver ~]$ bin/rancid -d > executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;show idprom backplane;show install active;admin show env all;show env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show boot;show bootvar;admin show variables boot;show variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show diag;show m odule;show spe version;show c7200;show inventory raw;show vtp status;show vlan;show vlan-switch;show debug;more system:running-config;show running-config;write term" > > Could let me know what could be the problem.....? look in the log file for errors > Thanks > Jayant > > > > > ________________________________ > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091027/cec8d317/attachment.html From cs_zalman at hotmail.fr Wed Oct 28 14:08:15 2009 From: cs_zalman at hotmail.fr (mathieu Berrjeb) Date: Wed, 28 Oct 2009 14:08:15 +0000 Subject: [rancid] same ip but diferent port Message-ID: Hi, I have a problem, i have diferent switch to save but they all have the same public ip, just the telnet port is diferent. How can i do to make this work in the router.db file because i can't specify which ip is related to which port in the cloginrc file. Thanks in advance. Regards, Mathieu. _________________________________________________________________ Nouveau! D?couvrez le Windows phone Samsung Omnia II disponible chez SFR. http://clk.atdmt.com/FRM/go/175819072/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091028/76d0a831/attachment.html From jmadrid2 at gmail.com Wed Oct 28 14:17:51 2009 From: jmadrid2 at gmail.com (Jose Madrid) Date: Wed, 28 Oct 2009 10:17:51 -0400 Subject: [rancid] Re: same ip but diferent port In-Reply-To: References: Message-ID: <867d5e9c0910280717s43614f5exae1721a36bea428c@mail.gmail.com> The router.db would be normal. Just enter the name you want to display and make sure they point to the correct IP. The magic needs to happen in your .cloginrc file. You would want to do something like this. I am not sure of the exact syntax, but you can try different versions of this: add method router1 telnet:-3001 add method router2 telnet:-3002 add method router3 telnet:-3003 Check out http://www.shrubbery.net/rancid/man/cloginrc.5.html --------------------------------------------------------------------- Example: add method * {ssh} {telnet:-3000} {rsh} Which would cause *clogin* to first attempt an ssh connection to the device and if that were to fail with connection refused, a telnet connection to port 3000 would be tried, and then a rsh connection. --------------------------------------------------------------------- 2009/10/28 mathieu Berrjeb > Hi, > > I have a problem, i have diferent switch to save but they all have the same > public ip, just the telnet port is diferent. > How can i do to make this work in the router.db file because i can't > specify which ip is related to which port in the cloginrc file. > Thanks in advance. > > Regards, > > Mathieu. > > ------------------------------ > Nouveau! D?couvrez le Windows phone Samsung Omnia II disponible chez SFR. Cliquez > ici > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -- It has to start somewhere, it has to start sometime. What better place than here? What better time than now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091028/fa757439/attachment.html From dan.schmidt at uplinkdata.com Wed Oct 28 20:56:51 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Wed, 28 Oct 2009 14:56:51 -0600 Subject: [rancid] After upgrade rancid works, rancid-run does not work Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com> Many apologies if somebody has answered this - Rancid has always worked for me before and I'm new to the list. Any assistance greatly appreciated. clogin and rancid work fine after upgrade, given the correct PATH. clogin logs in correctly, rancid correctly creates a router.new file. rancid-run does not work. The log is empty and tacacs logs show that it didn't even try to login. rancid at che-rancid-001:~/var/logs$ cat group_name.20091028.142620 starting: Wed Oct 28 14:26:20 MDT 2009 ending: Wed Oct 28 14:26:21 MDT 2009 rancid at che-rancid-001:~/var/logs$ Everything seemed to install to the correct location with the following configure. ./configure --localstatedir=/home/rancid --prefix=/home/rancid I tried a new rancid.conf including the new CVSROOT commands, but have not have any luck. Suggestions greatly appreciated! -Dan From heas at shrubbery.net Wed Oct 28 21:45:14 2009 From: heas at shrubbery.net (john heasley) Date: Wed, 28 Oct 2009 21:45:14 +0000 Subject: [rancid] Re: After upgrade rancid works, rancid-run does not work In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com> Message-ID: <20091028214514.GF27655@shrubbery.net> Wed, Oct 28, 2009 at 02:56:51PM -0600, Schmidt, Daniel: > Many apologies if somebody has answered this - Rancid has always worked > for me before and I'm new to the list. Any assistance greatly > appreciated. > > clogin and rancid work fine after upgrade, given the correct PATH. > clogin logs in correctly, rancid correctly creates a router.new file. > rancid-run does not work. The log is empty and tacacs logs show that it > didn't even try to login. > > rancid at che-rancid-001:~/var/logs$ cat group_name.20091028.142620 > starting: Wed Oct 28 14:26:20 MDT 2009 > > > > ending: Wed Oct 28 14:26:21 MDT 2009 > rancid at che-rancid-001:~/var/logs$ > > Everything seemed to install to the correct location with the following > configure. > ./configure --localstatedir=/home/rancid --prefix=/home/rancid > > I tried a new rancid.conf including the new CVSROOT commands, but have > not have any luck. Suggestions greatly appreciated! did routers.up get populated properly? if not, i'm guess is youre on linux and configure screwed-up figuring out the options to diff. From abirgisson at fattoc.com Thu Oct 29 11:12:44 2009 From: abirgisson at fattoc.com (=?iso-8859-1?Q?=C1rni_Birgisson?=) Date: Thu, 29 Oct 2009 11:12:44 +0000 Subject: [rancid] JRancid show config | display set Message-ID: Hey guys, I'm interested in adding a command to jrancid - rancid for juniper - to be able to get the "display set" version of the config. The command for that is "show configuration | display set". Has anybody done this? Digging through the code it seems like adding this command to the commandtable is failing because of the | (pipe) character. For example, this line of code: $cmds_regexp=join("|", at commands); is joining all the different commands into a string, seperated by the pipe character. This variable is then used later is this regexp check while (/>\s*($cmds_regexp)\s*$/) { and my command which includes the pipe characters is probably not behaving correctly in there. I've tried making some changes to the code to make it work, but i'm wondering if anybody has found a better solution to this? -Arni Arni Birgisson Network Engineer FATTOC Iceland Adalstraeti 6 101 Reykjavik Iceland From dan.schmidt at uplinkdata.com Thu Oct 29 15:10:11 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Thu, 29 Oct 2009 09:10:11 -0600 Subject: [rancid] Re: After upgrade rancid works, rancid-run does not work In-Reply-To: <20091028214514.GF27655@shrubbery.net> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com> <20091028214514.GF27655@shrubbery.net> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC748F8@che-exch-003.uplinkdata.com> Thanks for your suggestion! I am on Linux, however, the contents of routers.up seem correct. Is there other troubleshooting I can do? -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Wednesday, October 28, 2009 3:45 PM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] After upgrade rancid works, rancid-run does not work Wed, Oct 28, 2009 at 02:56:51PM -0600, Schmidt, Daniel: > Many apologies if somebody has answered this - Rancid has always worked > for me before and I'm new to the list. Any assistance greatly > appreciated. > > clogin and rancid work fine after upgrade, given the correct PATH. > clogin logs in correctly, rancid correctly creates a router.new file. > rancid-run does not work. The log is empty and tacacs logs show that it > didn't even try to login. > > rancid at che-rancid-001:~/var/logs$ cat group_name.20091028.142620 > starting: Wed Oct 28 14:26:20 MDT 2009 > > > > ending: Wed Oct 28 14:26:21 MDT 2009 > rancid at che-rancid-001:~/var/logs$ > > Everything seemed to install to the correct location with the following > configure. > ./configure --localstatedir=/home/rancid --prefix=/home/rancid > > I tried a new rancid.conf including the new CVSROOT commands, but have > not have any luck. Suggestions greatly appreciated! did routers.up get populated properly? if not, i'm guess is youre on linux and configure screwed-up figuring out the options to diff. From peder at networkoblivion.com Thu Oct 29 16:48:11 2009 From: peder at networkoblivion.com (Peder) Date: Thu, 29 Oct 2009 11:48:11 -0500 Subject: [rancid] Extreme Issue Message-ID: <013c01ca58b7$99d8eb70$cd8ac250$@com> I am having an issue getting RANCID to pull down my Extreme configs from Summit 200's. I've seen several posts where others have had the same issue, but I haven't really seen a solution. I am using local accounts on the Extreme (I tried my username and admin and they both have the same issue). I can ping and telnet to the extreme from the RANCID box, but it will just not grab the configs. The logs just show "missed commands" and the devices show in the "up" file. I am trying to pull configs from two switches and they both have the same issue. I've tried this: ./clogin -c "show configuration detail" 192.168.1.2 It logs in, grabs the config and then just sits there. It never closes the connection. If I do the same thing from a Cisco switch that I have, it goes all the way thru and closes the connection just fine. If I do ./clogin -d 192.168.1.2, I get this (I cut off some of the beginning debugs as I don't think it is relevant because you can see that it actually does get logged in and then just sits there): expect: set expect_out(0,string) "#" expect: set expect_out(1,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\n\r\n\r\nExtremeware\r\nCopyright (C) 1996-2004 Extreme Networks. All rights reserved.\r\n=============================================================== \r\n\r\nPress the key at any time for completions.\r\nRemember to save your configuration changes.\r\nS200-B:1 #" send: sending "\r" to { exp4 } expect: does " " (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+[:.])1 ((#| \(enable\)))"? no "^.+(#| \(enable\))"? no S200-B:1 # expect: does " \r\nS200-B:1 # " (spawn_id exp4) match regular expression "[\r\n]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\n" expect: continuing expect expect: does "S200-B:1 # " (spawn_id exp4) match regular expression "[\r\n]+"? no "^(.+[:.])1 ((#| \(enable\)))"? yes expect: set expect_out(0,string) "S200-B:1 #" expect: set expect_out(1,string) "S200-B:" expect: set expect_out(2,string) "#" expect: set expect_out(3,string) "#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "S200-B:1 #" tty_raw_noecho: was raw = 0 echo = 1 Any ideas? Peder From jeremys at rickyninja.net Fri Oct 30 02:13:15 2009 From: jeremys at rickyninja.net (Jeremy Singletary) Date: Thu, 29 Oct 2009 19:13:15 -0700 Subject: [rancid] Re: JRancid show config | display set In-Reply-To: References: Message-ID: <20091030021315.GD30083@pegasus.billn.net> Change $cmds_regexp=join("|", at commands); to $cmds_regexp = join("|", map quotemeta($_), @commands); -jeremy From abirgisson at fattoc.com Fri Oct 30 09:35:47 2009 From: abirgisson at fattoc.com (=?iso-8859-1?Q?=C1rni_Birgisson?=) Date: Fri, 30 Oct 2009 09:35:47 +0000 Subject: [rancid] Re: JRancid show config | display set In-Reply-To: <20091030021315.GD30083@pegasus.billn.net> References: <20091030021315.GD30083@pegasus.billn.net> Message-ID: <987BEC3B-15CC-445B-A8B9-AF2F370F7DB4@fattoc.com> You sir, are awesome :-) This works like a charm. For anyone else thinking about doing the same my changes include: * The changes from jeremy * adding a new parser called ShowConfigurationDisplaySet (copied from some other simple parser) * adding a command to the commandtable "show configuration | display set | no-more" => 'ShowConfigurationDisplaySet'. Thank you for your help! -Arni On Oct 30, 2009, at 2:13 AM, Jeremy Singletary wrote: > Change > $cmds_regexp=join("|", at commands); > > to > $cmds_regexp = join("|", map quotemeta($_), @commands); > > -jeremy > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss Arni Birgisson Network Engineer FATTOC Iceland Adalstraeti 6 101 Reykjavik Iceland From networking at hostalia.com Fri Oct 30 10:14:13 2009 From: networking at hostalia.com (=?ISO-8859-1?Q?I=F1aki_Martinez_Diez?=) Date: Fri, 30 Oct 2009 11:14:13 +0100 Subject: [rancid] Re: JRancid show config | display set In-Reply-To: <987BEC3B-15CC-445B-A8B9-AF2F370F7DB4@fattoc.com> References: <20091030021315.GD30083@pegasus.billn.net> <987BEC3B-15CC-445B-A8B9-AF2F370F7DB4@fattoc.com> Message-ID: <4AEABC75.1060808@hostalia.com> ?rni Birgisson escribi?: > You sir, are awesome :-) > > This works like a charm. > > For anyone else thinking about doing the same my changes include: > * The changes from jeremy > * adding a new parser called ShowConfigurationDisplaySet (copied from > some other simple parser) > * adding a command to the commandtable "show configuration | display > set | no-more" => 'ShowConfigurationDisplaySet'. > Can you attach the complete file i am interested, thank you. From abirgisson at fattoc.com Fri Oct 30 10:30:20 2009 From: abirgisson at fattoc.com (=?iso-8859-1?Q?=C1rni_Birgisson?=) Date: Fri, 30 Oct 2009 10:30:20 +0000 Subject: [rancid] Re: JRancid show config | display set In-Reply-To: <4AEABC75.1060808@hostalia.com> References: <20091030021315.GD30083@pegasus.billn.net> <987BEC3B-15CC-445B-A8B9-AF2F370F7DB4@fattoc.com> <4AEABC75.1060808@hostalia.com> Message-ID: Here you go. This is a replacement for /usr/libexec/rancid/jrancid -------------- next part -------------- A non-text attachment was scrubbed... Name: jrancid.gz Type: application/x-gzip Size: 5521 bytes Desc: not available Url : http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091030/51a41eb5/attachment.bin -------------- next part -------------- Diff: 416a417,439 > # This routine parses "show configuration | display set | no-more" > sub ShowConfigurationDisplaySet { > print STDERR " In ShowConfigurationDisplaySet: $_" if ($debug); > > s/^[a-z]+@//; > ProcessHistory("","","","# $_"); > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^system (shutdown message from|going down )/i); > next if (/^\{(master|backup)}/); > > /Unrecognized command/ && return; > /command is not valid/ && return; > /^\s+\^/ && return; > /syntax error/ && return; > > ProcessHistory("","","","$_"); > } > return(0); > } > > 638a662 > {'show configuration | display set | no-more' => 'ShowConfigurationDisplaySet'}, 666c690,691 < $cmds_regexp=join("|", at commands); --- > $cmds_regexp = join("|", map quotemeta($_), @commands); > #$cmds_regexp=join("|", at commands); - Arni On Oct 30, 2009, at 10:14 AM, I?aki Martinez Diez wrote: > ?rni Birgisson escribi?: >> You sir, are awesome :-) >> >> This works like a charm. >> >> For anyone else thinking about doing the same my changes include: >> * The changes from jeremy >> * adding a new parser called ShowConfigurationDisplaySet (copied >> from some other simple parser) >> * adding a command to the commandtable "show configuration | >> display set | no-more" => 'ShowConfigurationDisplaySet'. >> > > Can you attach the complete file i am interested, thank you. > Arni Birgisson Network Engineer FATTOC Iceland Adalstraeti 6 101 Reykjavik Iceland From dan.schmidt at uplinkdata.com Fri Oct 30 19:29:43 2009 From: dan.schmidt at uplinkdata.com (Schmidt, Daniel) Date: Fri, 30 Oct 2009 13:29:43 -0600 Subject: [rancid] Re: After upgrade rancid works, rancid-run does not work In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC748F8@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com><20091028214514.GF27655@shrubbery.net> <05CC562AFB5A9446A1BC3F66AD04A3BCC748F8@che-exch-003.uplinkdata.com> Message-ID: <05CC562AFB5A9446A1BC3F66AD04A3BCC74918@che-exch-003.uplinkdata.com> I believe this appears to be a control_rancid bug with inconsistent capitalization. Possible regression as it seemed to work before. You've got perl that lowercases everything here: 205 perl -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") 206 if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new 207 if [ ! -f routers.up ] ; then touch routers.up; fi 208 diff -U 4 routers.up routers.up.new > /dev/null 2>&1; RUP=$? So, if somebody uses an uppercase character, it will never match here: 356 # if a device (-r) was specified, see if that device is in this group 357 if [ "X$device" != "X" ] ; then 358 trap 'rm -fr $TMP $DIR/routers.single;' 1 2 15 359 devlistfile="$DIR/routers.single" 360 grep "^$device:" routers.up > $devlistfile 361 if [ $? -eq 1 ] ; then 362 exit; 363 fi 364 else 365 devlistfile="$DIR/routers.up" 366 fi It exits, conveniently without any error, at 362. I implemented a primitive fix to solve my problem. 51 tolower() 52 { 53 local char="$*" 54 55 out=$(echo $char | tr [:upper:] [:lower:]) 56 local retval=$? 57 echo "$out" 58 unset out 59 unset char 60 return $retval 61 } 90 device=$(tolower "$1") -----Original Message----- From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt, Daniel Sent: Thursday, October 29, 2009 9:10 AM To: john heasley Cc: rancid-discuss at shrubbery.net Subject: [rancid] Re: After upgrade rancid works, rancid-run does not work Thanks for your suggestion! I am on Linux, however, the contents of routers.up seem correct. Is there other troubleshooting I can do? -----Original Message----- From: john heasley [mailto:heas at shrubbery.net] Sent: Wednesday, October 28, 2009 3:45 PM To: Schmidt, Daniel Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] After upgrade rancid works, rancid-run does not work Wed, Oct 28, 2009 at 02:56:51PM -0600, Schmidt, Daniel: > Many apologies if somebody has answered this - Rancid has always worked > for me before and I'm new to the list. Any assistance greatly > appreciated. > > clogin and rancid work fine after upgrade, given the correct PATH. > clogin logs in correctly, rancid correctly creates a router.new file. > rancid-run does not work. The log is empty and tacacs logs show that it > didn't even try to login. > > rancid at che-rancid-001:~/var/logs$ cat group_name.20091028.142620 > starting: Wed Oct 28 14:26:20 MDT 2009 > > > > ending: Wed Oct 28 14:26:21 MDT 2009 > rancid at che-rancid-001:~/var/logs$ > > Everything seemed to install to the correct location with the following > configure. > ./configure --localstatedir=/home/rancid --prefix=/home/rancid > > I tried a new rancid.conf including the new CVSROOT commands, but have > not have any luck. Suggestions greatly appreciated! did routers.up get populated properly? if not, i'm guess is youre on linux and configure screwed-up figuring out the options to diff. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss From timw at pnl.gov Fri Oct 30 23:07:53 2009 From: timw at pnl.gov (Witteveen, Tim) Date: Fri, 30 Oct 2009 16:07:53 -0700 Subject: [rancid] Blade Network Technologies In-Reply-To: <05CC562AFB5A9446A1BC3F66AD04A3BCC74918@che-exch-003.uplinkdata.com> References: <05CC562AFB5A9446A1BC3F66AD04A3BCC748EB@che-exch-003.uplinkdata.com><20091028214514.GF27655@shrubbery.net><05CC562AFB5A9446A1BC3F66AD04A3BCC748F8@che-exch-003.uplinkdata.com> <05CC562AFB5A9446A1BC3F66AD04A3BCC74918@che-exch-003.uplinkdata.com> Message-ID: <12A8FC4D0563D1468AD23AAAED861A3E01C161F1@EMAIL02.pnl.gov> I just found out a new project ordered some BNT switches. I don't' have them yet, but would like to integrate them into rancid. Anyone have rancid working on these already? What did you set the device type to? I'd like to get a jump on this before it gets here, so I can get things going as quick as possible. They will be running bladeos v1.1.1 Cheers, Tim Witteveen From Jayant.Jape at tikona.in Sat Oct 31 05:06:22 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Sat, 31 Oct 2009 10:36:22 +0530 Subject: [rancid] Re: RANCID admin web front-end Message-ID: Hi ! Id like to have steps for front end of rancid. Any one can share me the steps.Higly appreciate it Thanks, Jayant ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091031/9ca18bdf/attachment.html From Jayant.Jape at tikona.in Sat Oct 31 08:23:04 2009 From: Jayant.Jape at tikona.in (Jayant Jape) Date: Sat, 31 Oct 2009 13:53:04 +0530 Subject: [rancid] Re: RANCID admin web front-end In-Reply-To: <45D96316-C0A3-49D1-88A6-D342065A904D@yahoo.it> References: <45D96316-C0A3-49D1-88A6-D342065A904D@yahoo.it> Message-ID: Hi Antonio, Thanks for information.I have a small query will this work with opennms I currently have installed opennms using rpms. Version: 1.6.5-1 Java Version: 1.6.0_13 Sun Microsystems Inc. Java Virtual Machine: 11.3-b02 Sun Microsystems Inc. Operating System: Linux 2.6.18-92.el5 (i386) Servlet Container: jetty-6.1.9 (Servlet Spec 2.5) It seems its asking for opennms1.7.1 ,does my current application support rancid....? Regards, Jayant ________________________________ Please do not print this email unless it is absolutely necessary. Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors, loss, delayed delivery, tampering, corruption or presence of viruses in this message or any attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091031/1e019c5e/attachment.html From rssntn67 at yahoo.it Sat Oct 31 08:26:13 2009 From: rssntn67 at yahoo.it (Antonio Russo) Date: Sat, 31 Oct 2009 09:26:13 +0100 Subject: [rancid] Fwd: Re: RANCID admin web front-end References: <45D96316-C0A3-49D1-88A6-D342065A904D@yahoo.it> Message-ID: <1DA4B783-F2D4-47F8-96B0-5FEAEAD9841C@yahoo.it> Inizio messaggio inoltrato: > Da: Antonio Russo > Data: 31 ottobre 2009 8:26:10 GMT+01:00 > A: Jayant Jape > Oggetto: Re: [rancid] Re: RANCID admin web front-end > > Rocco Rionero wrote a REST service on Rancid. > > It is called Rancid Web Service and can be downloaded here: > > rancid-api-0.98-bin.tar.gz > > > Once you have the Rest you can easly construct the service. > > More I've written a GUI integrated in opennms for the Rancid, > > you can read details here: > > http://www.opennms.org/index.php/RANCID_RWS > > > It is also possible to automatically provides nodes from opennms to > rancid using the rancid provisioning adapter. > > Antonio > > > > Il giorno 31/ott/09, alle ore 06:06, Jayant Jape ha scritto: > >> Hi ! >> Id like to have steps for front end of rancid. Any one can share me >> the steps.Higly appreciate it >> >> Thanks, >> Jayant >> >> >> Please do not print this email unless it is absolutely necessary. >> >> Warning : This message contains business confidential information . >> This message does not affect or modify any binding agreement nor >> state official policy of Tikona Digital Networks Pvt. Ltd. (?TDN? ) >> unless digitally signed by TDN?s authorised signatory. TDN does not >> accept any liability for any errors, loss, delayed delivery, >> tampering, corruption or presence of viruses in this message or any >> attachment. >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091031/e2480345/attachment.html From rssntn67 at yahoo.it Sat Oct 31 08:32:47 2009 From: rssntn67 at yahoo.it (Antonio Russo) Date: Sat, 31 Oct 2009 09:32:47 +0100 Subject: [rancid] Re: RANCID admin web front-end In-Reply-To: References: <45D96316-C0A3-49D1-88A6-D342065A904D@yahoo.it> Message-ID: <73B181CE-CDF9-4174-B31F-2F8FDE82C328@yahoo.it> 1.6.5-1 does not support rancid integration. You have to install the last unstable.... but it is almost stable....there will be released 1.8.0 soon. Antonio Il giorno 31/ott/09, alle ore 09:23, Jayant Jape ha scritto: > Hi Antonio, > > Thanks for information.I have a small query will this work with > opennms I currently have installed opennms using rpms. > > Version: > 1.6.5-1 > Java Version: > 1.6.0_13 Sun Microsystems Inc. > Java Virtual Machine: > 11.3-b02 Sun Microsystems Inc. > Operating System: > Linux 2.6.18-92.el5 (i386) > Servlet Container: > jetty-6.1.9 (Servlet Spec 2.5) > > It seems its asking for opennms1.7.1 ,does my current application > support rancid?.? > > > > Regards, > Jayant > > > > Please do not print this email unless it is absolutely necessary. > > Warning : This message contains business confidential information . > This message does not affect or modify any binding agreement nor > state official policy of Tikona Digital Networks Pvt. Ltd. (?TDN? ) > unless digitally signed by TDN?s authorised signatory. TDN does not > accept any liability for any errors, loss, delayed delivery, > tampering, corruption or presence of viruses in this message or any > attachment. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091031/b344050a/attachment.html From antonio at opennms.it Sat Oct 31 08:16:10 2009 From: antonio at opennms.it (Antonio Russo) Date: Sat, 31 Oct 2009 09:16:10 +0100 Subject: [rancid] Fwd: Re: RANCID admin web front-end References: <45D96316-C0A3-49D1-88A6-D342065A904D@yahoo.it> Message-ID: <6DF8C2D2-5933-48C0-8357-27ACF146F471@opennms.it> Inizio messaggio inoltrato: > Da: Antonio Russo > Data: 31 ottobre 2009 8:26:10 GMT+01:00 > A: Jayant Jape > Oggetto: Re: [rancid] Re: RANCID admin web front-end > > Rocco Rionero wrote a REST service on Rancid. > > It is called Rancid Web Service and can be downloaded here: > > rancid-api-0.98-bin.tar.gz > > > Once you have the Rest you can easly construct the service. > > More I've written a GUI integrated in opennms for the Rancid, > > you can read details here: > > http://www.opennms.org/index.php/RANCID_RWS > > > It is also possible to automatically provides nodes from opennms to > rancid using the rancid provisioning adapter. > > Antonio > > > > Il giorno 31/ott/09, alle ore 06:06, Jayant Jape ha scritto: > >> Hi ! >> Id like to have steps for front end of rancid. Any one can share me >> the steps.Higly appreciate it >> >> Thanks, >> Jayant >> >> >> Please do not print this email unless it is absolutely necessary. >> >> Warning : This message contains business confidential information . >> This message does not affect or modify any binding agreement nor >> state official policy of Tikona Digital Networks Pvt. Ltd. (?TDN? ) >> unless digitally signed by TDN?s authorised signatory. TDN does not >> accept any liability for any errors, loss, delayed delivery, >> tampering, corruption or presence of viruses in this message or any >> attachment. >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091031/ec5c417a/attachment.html