From stefane.dupuits at alturing.eu Wed Apr 19 15:46:26 2017 From: stefane.dupuits at alturing.eu (Stefane Dupuits) Date: Wed, 19 Apr 2017 17:46:26 +0200 Subject: [rancid] Rancid backup Message-ID: Hello I installed rancid version 3.6 .... The tests of connections to the equipment are ok, on the other hand no backups are made at the launch of rancid-run, and I have no logs create Cordialement, -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Sat Apr 22 22:32:23 2017 From: heas at shrubbery.net (Heasley) Date: Sat, 22 Apr 2017 18:32:23 -0400 Subject: [rancid] Rancid Message-ID: > Am 22.04.2017 um 16:57 schrieb Graham Mitchell : > > I?ve just been having an issue with 3.4.1 for a couple of weeks which was driving me mad. I didn?t have much chance to look at it till today - and I did an upgrade to 3.6.2, and the issue was still there. > > I had been having an issue with one of our Cisco 3945E routers. All the others were fine, and 4 new ones I set up a couple of weeks ago were working well too. In the interim, we?ve also updated the IOS code on the router from c3900e-universalk9-mz.SPA.155-3.M1.bin to c3900e-universalk9-mz.SPA.155-3.M5.bin with no resolution of the problem. > > After poking around for a couple of hours (I?m not at all familiar with the RANCID internals), I tracked the issue down to the > > more system:running-config;write term > > command that was being run. I did a clogin test > > ./clogin -t 90 -c "more system:running-config;write term" c1-r00-3945e-a > > Which eventually timed out. Manually running the command on the router seemed to work as expected, and running on the new ones worked as expected too. However, after paying closer attention, the router giving me the issue was prompting me with the file name before doing the more, whereas the others were not. > > Checking through the configuration, the router giving me the issue had > > file prompt noisy > > set. The others did not. Could you show us what that looked like, prompt to prompt? > I?m not 100% sure why this was set on the one router (I need to check something on Monday), but setting it either ?alert? or ?quiet? fixes the issue for the moment. > > I?m certainly in no position to offer a patch to the RANCID code to make it work when it?s set to noisy, but just want to bring it to the maintainers attention. > > Graham Mitchell|None > Senior Systems Engineer > Community Mental Health Authority of Clinton, Eaton, Ingham Counties > > telephone: 517 346 9523 > fax: > email: mitchell at ceicmh.org > website: www.ceicmh.org > > > > > > > > This email might contain confidential patient or other information that is protected by federal and state law. If you believe that this email reached you accidentally please reply back to notify me about the error, and please do not share this email with anybody else. If you are not the intended recipient do not review, distribute or duplicate any portion of this email. > From mitchell at ceicmh.org Sat Apr 22 20:57:46 2017 From: mitchell at ceicmh.org (Graham Mitchell) Date: Sat, 22 Apr 2017 20:57:46 +0000 Subject: [rancid] Rancid Message-ID: <2364AA7280B24E4AB43B6D7BFA4F9F9FCAA40A0A@EXMBX01V.cei-dom.ceicmhb> I?ve just been having an issue with 3.4.1 for a couple of weeks which was driving me mad. I didn?t have much chance to look at it till today - and I did an upgrade to 3.6.2, and the issue was still there. I had been having an issue with one of our Cisco 3945E routers. All the others were fine, and 4 new ones I set up a couple of weeks ago were working well too. In the interim, we?ve also updated the IOS code on the router from c3900e-universalk9-mz.SPA.155-3.M1.bin to c3900e-universalk9-mz.SPA.155-3.M5.bin with no resolution of the problem. After poking around for a couple of hours (I?m not at all familiar with the RANCID internals), I tracked the issue down to the more system:running-config;write term command that was being run. I did a clogin test ./clogin -t 90 -c "more system:running-config;write term" c1-r00-3945e-a Which eventually timed out. Manually running the command on the router seemed to work as expected, and running on the new ones worked as expected too. However, after paying closer attention, the router giving me the issue was prompting me with the file name before doing the more, whereas the others were not. Checking through the configuration, the router giving me the issue had file prompt noisy set. The others did not. I?m not 100% sure why this was set on the one router (I need to check something on Monday), but setting it either ?alert? or ?quiet? fixes the issue for the moment. I?m certainly in no position to offer a patch to the RANCID code to make it work when it?s set to noisy, but just want to bring it to the maintainers attention. Graham Mitchell|None Senior Systems Engineer Community Mental Health Authority of Clinton, Eaton, Ingham Counties telephone: 517 346 9523 fax: email: mitchell at ceicmh.org website: www.ceicmh.org This email might contain confidential patient or other information that is protected by federal and state law. If you believe that this email reached you accidentally please reply back to notify me about the error, and please do not share this email with anybody else. If you are not the intended recipient do not review, distribute or duplicate any portion of this email. From mitchell at ceicmh.org Sun Apr 23 01:24:23 2017 From: mitchell at ceicmh.org (Graham Mitchell) Date: Sun, 23 Apr 2017 01:24:23 +0000 Subject: [rancid] Rancid In-Reply-To: References: Message-ID: <2364AA7280B24E4AB43B6D7BFA4F9F9FCAA40CA9@EXMBX01V.cei-dom.ceicmhb> > Could you show us what that looked like, prompt to prompt? Right-3945E-U25to27#config t Enter configuration commands, one per line. End with CNTL/Z. Right-3945E-U25to27(config)#file prompt noisy Right-3945E-U25to27(config)#end Right-3945E-U25to27#more system:running-config Display filename [running-config]? Graham Mitchell|None Senior Systems Engineer Community Mental Health Authority of Clinton, Eaton, Ingham Counties telephone: 517 346 9523 fax: email: mitchell at ceicmh.org website: www.ceicmh.org -----Original Message----- From: Heasley [mailto:heas at shrubbery.net] Sent: Saturday, April 22, 2017 6:32 PM To: Graham Mitchell Cc: rancid-discuss at shrubbery.net Subject: Re: Rancid > Am 22.04.2017 um 16:57 schrieb Graham Mitchell : > > I?ve just been having an issue with 3.4.1 for a couple of weeks which was driving me mad. I didn?t have much chance to look at it till today - and I did an upgrade to 3.6.2, and the issue was still there. > > I had been having an issue with one of our Cisco 3945E routers. All the others were fine, and 4 new ones I set up a couple of weeks ago were working well too. In the interim, we?ve also updated the IOS code on the router from c3900e-universalk9-mz.SPA.155-3.M1.bin to c3900e-universalk9-mz.SPA.155-3.M5.bin with no resolution of the problem. > > After poking around for a couple of hours (I?m not at all familiar with the RANCID internals), I tracked the issue down to the > > more system:running-config;write term > > command that was being run. I did a clogin test > > ./clogin -t 90 -c "more system:running-config;write term" c1-r00-3945e-a > > Which eventually timed out. Manually running the command on the router seemed to work as expected, and running on the new ones worked as expected too. However, after paying closer attention, the router giving me the issue was prompting me with the file name before doing the more, whereas the others were not. > > Checking through the configuration, the router giving me the issue had > > file prompt noisy > > set. The others did not. Could you show us what that looked like, prompt to prompt? > I?m not 100% sure why this was set on the one router (I need to check something on Monday), but setting it either ?alert? or ?quiet? fixes the issue for the moment. > > I?m certainly in no position to offer a patch to the RANCID code to make it work when it?s set to noisy, but just want to bring it to the maintainers attention. > > Graham Mitchell|None > Senior Systems Engineer > Community Mental Health Authority of Clinton, Eaton, Ingham Counties > > telephone: 517 346 9523 > fax: > email: mitchell at ceicmh.org > website: www.ceicmh.org > > > > > > > > This email might contain confidential patient or other information that is protected by federal and state law. If you believe that this email reached you accidentally please reply back to notify me about the error, and please do not share this email with anybody else. If you are not the intended recipient do not review, distribute or duplicate any portion of this email. > From mgoeres at gmail.com Tue Apr 25 03:57:04 2017 From: mgoeres at gmail.com (Matthew Goeres) Date: Mon, 24 Apr 2017 22:57:04 -0500 Subject: [rancid] cvsignore not working and diffing runcount Message-ID: I am trying to figure out why cvs keeps diffing the runcount file. It is in the .cvsignore. Any pointers on how to get that file to work again? The routers.all, up, down all show up to but those don't change. Index: runcount =================================================================== retrieving revision 1.9 diff -u -4 -r1.9 runcount @@ -1 +1 @@ - 50 + 51 rancid at rancid:~/var/rancid/config$ cvs status runcount =================================================================== File: runcount Status: Locally Modified Working revision: 1.9 2017-04-24 20:00:15 -0500 Repository revision: 1.9 /home/rancid/var/rancid/CVS/config/runcount,v Commit Identifier: 10058FEADAE10ACEC85 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) rancid at rancid:~/var/rancid/config$ cat .cvsignore .cvsignore routers.all routers.down routers.single routers.up runcount -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Tue Apr 25 12:33:28 2017 From: heas at shrubbery.net (heasley) Date: Tue, 25 Apr 2017 12:33:28 +0000 Subject: [rancid] cvsignore not working and diffing runcount In-Reply-To: References: Message-ID: <20170425123328.GA38823@shrubbery.net> Mon, Apr 24, 2017 at 10:57:04PM -0500, Matthew Goeres: > I am trying to figure out why cvs keeps diffing the runcount file. It is in > the .cvsignore. Any pointers on how to get that file to work again? The > routers.all, up, down all show up to but those don't change. > > > Index: runcount > =================================================================== > retrieving revision 1.9 > diff -u -4 -r1.9 runcount > @@ -1 +1 @@ > - 50 > + 51 this file should not have been added to the repo. I presume someone did that manually? remove it and this should cease. rm runcount;cvs delete runcount; cvs commit -m 'rm runcount' > rancid at rancid:~/var/rancid/config$ cvs status runcount > =================================================================== > File: runcount Status: Locally Modified > > Working revision: 1.9 2017-04-24 20:00:15 -0500 > Repository revision: 1.9 /home/rancid/var/rancid/CVS/config/runcount,v > Commit Identifier: 10058FEADAE10ACEC85 > Sticky Tag: (none) > Sticky Date: (none) > Sticky Options: (none) > > rancid at rancid:~/var/rancid/config$ cat .cvsignore > .cvsignore > routers.all > routers.down > routers.single > routers.up > runcount > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From mgoeres at gmail.com Tue Apr 25 14:16:27 2017 From: mgoeres at gmail.com (Matthew Goeres) Date: Tue, 25 Apr 2017 09:16:27 -0500 Subject: [rancid] cvsignore not working and diffing runcount In-Reply-To: <20170425123328.GA38823@shrubbery.net> References: <20170425123328.GA38823@shrubbery.net> Message-ID: I believe it may have been manually committed when I was testing another script. That resolved the issue. On Tue, Apr 25, 2017 at 7:33 AM, heasley wrote: > Mon, Apr 24, 2017 at 10:57:04PM -0500, Matthew Goeres: > > I am trying to figure out why cvs keeps diffing the runcount file. It is > in > > the .cvsignore. Any pointers on how to get that file to work again? The > > routers.all, up, down all show up to but those don't change. > > > > > > Index: runcount > > =================================================================== > > retrieving revision 1.9 > > diff -u -4 -r1.9 runcount > > @@ -1 +1 @@ > > - 50 > > + 51 > > this file should not have been added to the repo. I presume someone > did that manually? > > remove it and this should cease. rm runcount;cvs delete runcount; cvs > commit -m 'rm runcount' > > > rancid at rancid:~/var/rancid/config$ cvs status runcount > > =================================================================== > > File: runcount Status: Locally Modified > > > > Working revision: 1.9 2017-04-24 20:00:15 -0500 > > Repository revision: 1.9 /home/rancid/var/rancid/CVS/ > config/runcount,v > > Commit Identifier: 10058FEADAE10ACEC85 > > Sticky Tag: (none) > > Sticky Date: (none) > > Sticky Options: (none) > > > > rancid at rancid:~/var/rancid/config$ cat .cvsignore > > .cvsignore > > routers.all > > routers.down > > routers.single > > routers.up > > runcount > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at shrubbery.net > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ross at eve-it.net Wed Apr 26 03:57:19 2017 From: ross at eve-it.net (Ross [Eve IT]) Date: Wed, 26 Apr 2017 13:57:19 +1000 Subject: [rancid] brocade vdx backups Message-ID: Hello, I've been scratching my head for the last few days trying to figure out how to get these backups working. We have a working installation of rancid on debian jessie with no issues. jessie backports. 3.6.2-2 A combination of cisco and brocade kit, brocade (ICX series) uses the foundry module just fine. However the VDX switches are just not backing up. I've tried both foundry and cisco. However I can login, issue commands, etc.. :~$ bin/clogin 10.65.65.13 10.65.65.13 spawn ssh -x -l admin 10.65.65.13 admin at 10.65.65.13's password: Welcome to the Brocade Network Operating System Software admin connected from 10.0.250.18 using ssh on vdx11-1 vdx11-1# :~$bin/clogin -c "show vcs" 10.65.65.13 10.65.65.13 spawn ssh -x -l admin 10.65.65.13 admin at 10.65.65.13's password: Welcome to the Brocade Network Operating System Software admin connected from 10.0.250.18 using ssh on vdx11-1 vdx11-1# vdx11-1# terminal length 0 Successfully set This Session Terminal Length to 0. vdx11-1# terminal width 132 -----------------------^ syntax error: unknown argument. vdx11-1# show vcs Config Mode : Distributed VCS Mode : Logical Chassis VCS ID : 1 VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393 Total Number of Nodes : 4 Rbridge-Id WWN Management IP VCS Status Fabric Status HostName -------------------------------------------------------------------------------------------------------------- 1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online Online vdx11-1 2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online Online vdx11-2 3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online Online vdx12-1 4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online Online vdx12-2 vdx11-1#exit Connection to 10.65.65.13 closed. Logs; starting: Wednesday 26 April 13:45:12 AEST 2017 cvs add: `10.65.65.13' already exists, with version number 1.1 Added 10.65.65.13 Trying to get all of the configs. 10.65.65.13: missed cmd(s): all commands 10.65.65.13: End of run not found 10.65.65.13 flogin error: Error: TIMEOUT reached ! ===================================== Getting missed routers: round 1. 10.65.65.13: missed cmd(s): all commands 10.65.65.13: End of run not found 10.65.65.13 flogin error: Error: TIMEOUT reached ! ===================================== Getting missed routers: round 2. 10.65.65.13: missed cmd(s): all commands 10.65.65.13: End of run not found 10.65.65.13 flogin error: Error: TIMEOUT reached ! ===================================== Getting missed routers: round 3. 10.65.65.13: missed cmd(s): all commands 10.65.65.13: End of run not found 10.65.65.13 flogin error: Error: TIMEOUT reached ! ===================================== Getting missed routers: round 4. 10.65.65.13: missed cmd(s): all commands 10.65.65.13: End of run not found 10.65.65.13 flogin error: Error: TIMEOUT reached ! cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs /var/lib/rancid/CVS/mel/router.db,v <-- router.db new revision: 1.4; previous revision: 1.3 ending: Wednesday 26 April 13:53:02 AEST 2017 Any help greatly appreciated. Thanks in advance ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From erikm at buh.org Wed Apr 26 13:23:59 2017 From: erikm at buh.org (Erik Muller) Date: Wed, 26 Apr 2017 09:23:59 -0400 Subject: [rancid] brocade vdx backups In-Reply-To: References: Message-ID: VDXes are a very different codebase than a lot of the other foundry/brocade gear, and they have a whole new set of quirks as a result. IIRC the biggest annoyance for rancid is that they don't have an end-of-config marker. I've gotten it working for VDXes before, my version is here: https://github.com/ermuller/rancid-stuff I haven't tested it widely enough to try to integrate it properly upstream, but if you wanted to give that a try, I'd appreciate any feedback. -e On 4/25/17 23:57 , Ross [Eve IT] wrote: > Hello, > > I've been scratching my head for the last few days trying to figure out how > to get these backups working. > We have a working installation of rancid on debian jessie with no issues. > jessie backports. 3.6.2-2 > > A combination of cisco and brocade kit, brocade (ICX series) uses the > foundry module just fine. > > However the VDX switches are just not backing up. > I've tried both foundry and cisco. > > > However I can login, issue commands, etc.. > > > :~$ bin/clogin 10.65.65.13 > 10.65.65.13 > spawn ssh -x -l admin 10.65.65.13 > admin at 10.65.65.13 's password: > > Welcome to the Brocade Network Operating System Software > admin connected from 10.0.250.18 using ssh on vdx11-1 > vdx11-1# > > > > > :~$bin/clogin -c "show vcs" 10.65.65.13 > 10.65.65.13 > spawn ssh -x -l admin 10.65.65.13 > admin at 10.65.65.13 's password: > > Welcome to the Brocade Network Operating System Software > admin connected from 10.0.250.18 using ssh on vdx11-1 > vdx11-1# > vdx11-1# terminal length 0 > Successfully set This Session Terminal Length to 0. > vdx11-1# terminal width 132 > -----------------------^ > syntax error: unknown argument. > vdx11-1# show vcs > Config Mode : Distributed > VCS Mode : Logical Chassis > VCS ID : 1 > VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393 > Total Number of Nodes : 4 > Rbridge-Id WWN Management IP VCS Status > Fabric Status HostName > -------------------------------------------------------------------------------------------------------------- > 1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online > Online vdx11-1 > 2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online > Online vdx11-2 > 3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online > Online vdx12-1 > 4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online > Online vdx12-2 > vdx11-1#exit > Connection to 10.65.65.13 closed. > > > > Logs; > > > starting: Wednesday 26 April 13:45:12 AEST 2017 > > cvs add: `10.65.65.13' already exists, with version number 1.1 > Added 10.65.65.13 > > > > Trying to get all of the configs. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 1. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 2. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 3. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 4. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > /var/lib/rancid/CVS/mel/router.db,v <-- router.db > new revision: 1.4; previous revision: 1.3 > > ending: Wednesday 26 April 13:53:02 AEST 2017 > > > Any help greatly appreciated. > Thanks in advance ! > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From doug.hughes at keystonenap.com Wed Apr 26 13:44:54 2017 From: doug.hughes at keystonenap.com (Doug Hughes) Date: Wed, 26 Apr 2017 09:44:54 -0400 Subject: [rancid] brocade vdx backups In-Reply-To: References: Message-ID: I wrote a vdx-working module that I contributed back in Oct 2016, but not sure what the current state of it is. It works with rancid 3.4.1 Below is my etc/rancid.types.conf excerpt as you can see, brcdvcs uses the a10login module which works fine (I didn't feel like reinventing the wheel here, and that worked) and I created a new bcrdvcs and bcrdicx type. You'll want to change the rbridge-id's to match your stack members. I stopped short of trying to invent something generic to solve this particular puzzle. attached is the modified brocade.pm which gets called for vcs. icx uses the ios module. brcdicx;script;rancid -t brcdicx brcdicx;login;clogin brcdicx;module;ios brcdicx;inloop;ios::inloop brcdicx:command;rancid::RunCommmand;skip-page-display brcdicx;command;ios::ShowVersion;show version brcdicx;command;ios::WriteTerm;show chassis brcdicx;command;ios::WriteTerm;show running-config # Brocade VCS 10g/40g brcdvcs;script;rancid -t brcdvcs brcdvcs;login;a10login brcdvcs;module;brocade brcdvcs;inloop;brocade::inloop brcdvcs;command;brocade::ShowVersion;show version all-partitions brcdvcs;command;brocade::ShowLicense;show license brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 11 brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 12 brcdvcs;command;brocade::ShowVcs;show vcs detail brcdvcs;command;brocade::ShowVlan;show vlan brief brcdvcs;command;brocade::ShowSnapshots;show config snapshot rbridge-id 1 brcdvcs;command;brocade::ShowFabric;show virtual-fabric status brcdvcs;command;brocade::ShowFabric;show fabric all brcdvcs;command;brocade::ShowSupport;show support brcdvcs;command;brocade::ShowMonitor;show system monitor brcdvcs;command;brocade::ShowConfig;show running-config On 4/26/2017 9:23 AM, Erik Muller wrote: > VDXes are a very different codebase than a lot of the other foundry/brocade > gear, and they have a whole new set of quirks as a result. IIRC the > biggest annoyance for rancid is that they don't have an end-of-config marker. > > I've gotten it working for VDXes before, my version is here: > https://github.com/ermuller/rancid-stuff > I haven't tested it widely enough to try to integrate it properly upstream, > but if you wanted to give that a try, I'd appreciate any feedback. > -e > > On 4/25/17 23:57 , Ross [Eve IT] wrote: >> Hello, >> >> I've been scratching my head for the last few days trying to figure out how >> to get these backups working. >> We have a working installation of rancid on debian jessie with no issues. >> jessie backports. 3.6.2-2 >> >> A combination of cisco and brocade kit, brocade (ICX series) uses the >> foundry module just fine. >> >> However the VDX switches are just not backing up. >> I've tried both foundry and cisco. >> >> >> However I can login, issue commands, etc.. >> >> >> :~$ bin/clogin 10.65.65.13 >> 10.65.65.13 >> spawn ssh -x -l admin 10.65.65.13 >> admin at 10.65.65.13 's password: >> >> Welcome to the Brocade Network Operating System Software >> admin connected from 10.0.250.18 using ssh on vdx11-1 >> vdx11-1# >> >> >> >> >> :~$bin/clogin -c "show vcs" 10.65.65.13 >> 10.65.65.13 >> spawn ssh -x -l admin 10.65.65.13 >> admin at 10.65.65.13 's password: >> >> Welcome to the Brocade Network Operating System Software >> admin connected from 10.0.250.18 using ssh on vdx11-1 >> vdx11-1# >> vdx11-1# terminal length 0 >> Successfully set This Session Terminal Length to 0. >> vdx11-1# terminal width 132 >> -----------------------^ >> syntax error: unknown argument. >> vdx11-1# show vcs >> Config Mode : Distributed >> VCS Mode : Logical Chassis >> VCS ID : 1 >> VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393 >> Total Number of Nodes : 4 >> Rbridge-Id WWN Management IP VCS Status >> Fabric Status HostName >> -------------------------------------------------------------------------------------------------------------- >> 1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online >> Online vdx11-1 >> 2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online >> Online vdx11-2 >> 3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online >> Online vdx12-1 >> 4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online >> Online vdx12-2 >> vdx11-1#exit >> Connection to 10.65.65.13 closed. >> >> >> >> Logs; >> >> >> starting: Wednesday 26 April 13:45:12 AEST 2017 >> >> cvs add: `10.65.65.13' already exists, with version number 1.1 >> Added 10.65.65.13 >> >> >> >> Trying to get all of the configs. >> 10.65.65.13 : missed cmd(s): all commands >> 10.65.65.13 : End of run not found >> 10.65.65.13 flogin error: Error: TIMEOUT reached >> ! >> ===================================== >> Getting missed routers: round 1. >> 10.65.65.13 : missed cmd(s): all commands >> 10.65.65.13 : End of run not found >> 10.65.65.13 flogin error: Error: TIMEOUT reached >> ! >> ===================================== >> Getting missed routers: round 2. >> 10.65.65.13 : missed cmd(s): all commands >> 10.65.65.13 : End of run not found >> 10.65.65.13 flogin error: Error: TIMEOUT reached >> ! >> ===================================== >> Getting missed routers: round 3. >> 10.65.65.13 : missed cmd(s): all commands >> 10.65.65.13 : End of run not found >> 10.65.65.13 flogin error: Error: TIMEOUT reached >> ! >> ===================================== >> Getting missed routers: round 4. >> 10.65.65.13 : missed cmd(s): all commands >> 10.65.65.13 : End of run not found >> 10.65.65.13 flogin error: Error: TIMEOUT reached >> ! >> >> cvs diff: Diffing . >> cvs diff: Diffing configs >> cvs commit: Examining . >> cvs commit: Examining configs >> /var/lib/rancid/CVS/mel/router.db,v <-- router.db >> new revision: 1.4; previous revision: 1.3 >> >> ending: Wednesday 26 April 13:53:02 AEST 2017 >> >> >> Any help greatly appreciated. >> Thanks in advance ! >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss >> > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -- Doug Hughes Keystone NAP Fairless Hills, PA 1.844.KEYBLOCK (539.2562) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: -------------- next part -------------- package brocade; ## ## $Id$ ## ## rancid 3.4.1 ## Copyright (c) 1997-2016 by Terrapin Communications, Inc. ## All rights reserved. ## ## This code is derived from software contributed to and maintained by ## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan, ## Pete Whiting, Austin Schutz, and Andrew Fort. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions ## are met: ## 1. Redistributions of source code must retain the above copyright ## notice, this list of conditions and the following disclaimer. ## 2. Redistributions in binary form must reproduce the above copyright ## notice, this list of conditions and the following disclaimer in the ## documentation and/or other materials provided with the distribution. ## 3. All advertising materials mentioning features or use of this software ## must display the following acknowledgement: ## This product includes software developed by Terrapin Communications, ## Inc. and its contributors for RANCID. ## 4. Neither the name of Terrapin Communications, Inc. nor the names of its ## contributors may be used to endorse or promote products derived from ## this software without specific prior written permission. ## 5. It is requested that non-binding fixes and modifications be contributed ## back to Terrapin Communications, Inc. ## ## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS ## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ## POSSIBILITY OF SUCH DAMAGE. ## ## It is the request of the authors, but not a condition of license, that ## parties packaging or redistributing RANCID NOT distribute altered versions ## of the etc/rancid.types.base file nor alter how this file is processed nor ## when in relation to etc/rancid.types.conf. The goal of this is to help ## suppress our support costs. If it becomes a problem, this could become a ## condition of license. # # The expect login scripts were based on Erik Sherk's gwtn, by permission. # # The original looking glass software was written by Ed Kern, provided by # permission and modified beyond recognition. # # RANCID - Really Awesome New Cisco confIg Differ # # brocade.pm - for Brocade ECS switches - doug.hughes at keystonenap.com use 5.010; use strict 'vars'; use warnings; no warnings 'uninitialized'; require(Exporter); our @ISA = qw(Exporter); use rancid 3.4.1; our $proc; our $ios; our $found_version; our $found_env; our $found_diag; our $config_register; # configuration register value @ISA = qw(Exporter rancid main); #XXX @Exporter::EXPORT = qw($VERSION @commandtable %commands @commands); # load-time initialization sub import { 0; } # post-open(collection file) initialization sub init { # XXX is this the right place for this? # XXX can the content line move to the lib? ProcessHistory("","","","!RANCID-CONTENT-TYPE: brocade\n!\n"); 0; } # main loop of input of device output sub inloop { my($INPUT, $OUTPUT) = @_; my($cmd, $rval); TOP: while(<$INPUT>) { tr/\015//d; if ((/\>\s?logout$/) || $found_end) { $clean_run=1; last; } if (/^Error:/) { print STDOUT ("$host complogin error: $_"); print STDERR ("$host complogin error: $_") if ($debug); $clean_run=0; last; } while (/[#>]\s*($cmds_regexp)\s*$/) { $cmd = $1; if (!defined($prompt)) { $prompt = ($_ =~ /^([^#>]+[#>])/)[0]; $prompt =~ s/([][}{)(\\])/\\$1/g; print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); } print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; $clean_run = 0; last TOP; } if (! defined(&{$commands{$cmd}})) { printf(STDERR "$host: undefined function - \"%s\"\n", $commands{$cmd}); $clean_run = 0; last TOP; } $rval = &{$commands{$cmd}}($INPUT, $OUTPUT, $cmd); delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; last TOP; } } } } # This is for 10g switches with 40g license activations, for example # parses output of show logging raslog rbridge-id # discard everything but the license info sub ShowRasLicense { my($INPUT, $OUTPUT, $cmd) = @_; my(%licstr); my($linecnt) = 0; print STDERR " In ShowRasLicense: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (!m/is Added\./); if (m/\s+(\S+\s+\S+ is Added)/) { $licstr{$1}++; $linecnt++; next; } } if ($linecnt > 0) { ProcessHistory("License","","","!RASLICENSE: $cmd\n"); foreach my $k (keys(%licstr)) { ProcessHistory("License","","","!RASLICENSE: $k\n"); } } ProcessHistory("License","","","!\n"); return(0); } # This routine parses "show configuration" sub ShowConfig { my($INPUT, $OUTPUT, $cmd) = @_; my($linecnt) = 0; print STDERR " In ShowConfig: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Reading configuration information/); next if (/^Can\'t find object or class named \"\-all\"\s*$/); next if (/lock-address .*$/); next if (/^\# *uptime +\d+\s*$/); return(1) if (/invalid command name/); return(-1) if (/error: application error/i); if (/community label /) { if ($filter_commstr) { $_ =~ s/community label .*$/community label /; } } if (/^\s+(password) (\$1\$.*)?/ && $filter_pwds == 2) { ProcessHistory("","","","!$1 $3\n"); next; } ProcessHistory("","","","$_"); $linecnt++; if (/^!\s*end-of-config/) { $found_end = 1; return(0); } } # Prior to EOS 1.1, the Compass lacked a definitive "end of config" marker. if ($linecnt > 5) { $found_end = 1; return(1); } return(0); } # This routine parses "show fabric" commands sub ShowFabric { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowFabric: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); return(1) if (/^-+\^/); # missing command XXX next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Can\'t find object or class named \"\-all\"\s*$/); next if (/lock-address .*$/); next if (/^\# *uptime +\d+\s*$/); return(1) if (/invalid command name/); return(-1) if /(error: |reading .* failed!)/i; # remove trailing whitespace s/\s+$/\n/; ProcessHistory("Fabric","","","! $_"); } ProcessHistory("Fabric","","","!\n"); return(0); } # This routine parses "show system monitor" sub ShowMonitor { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowMonitor: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); return(1) if (/^-+\^/); # missing command XXX next if (/Time of Report/); next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Can\'t find object or class named \"\-all\"\s*$/); next if (/lock-address .*$/); next if (/^\# *uptime +\d+\s*$/); return(1) if (/invalid command name/); return(-1) if /(error: |reading .* failed!)/i; # remove trailing whitespace s/\s+$/\n/; ProcessHistory("Monitor","","","! $_"); } ProcessHistory("Monitor","","","!\n"); return(0); } # This routine parses "show support" sub ShowSupport { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowSupport: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); return(1) if (/^-+\^/); # missing command XXX return(1) if (/^syntax error: /); # missing command XXX next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/invalid command name/); ProcessHistory("Support","","","!Support $_"); } ProcessHistory("Support","","","!\n"); return(0); } # This routine parses "show snapshots" sub ShowSnapshots { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowSnapshots: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); # XXX why is show version missing? return(1) if (/invalid command name/); ProcessHistory("Snapshots","","","!Snapshots $_"); } ProcessHistory("Snapshots","","","!\n"); return(0); } # This routine parses "show vlan" sub ShowVlan { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowVlan: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); # XXX why is show version missing? return(1) if (/invalid command name/); ProcessHistory("VLAN","","","!VLAN $_"); } ProcessHistory("VLAN","","","!\n"); return(0); } # This routine parses "show vcs" sub ShowVcs { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowVcs: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); return(1) if (/^syntax error: /); # missing command XXX next if (/^(\s*|\s*$cmd\s*)$/); # XXX why is show version missing? return(1) if (/invalid command name/); ProcessHistory("VCS","","","!VCS $_"); } ProcessHistory("VCS","","","!\n"); return(0); } # This routine parses "show licenses" sub ShowLicense { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowLicense: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/invalid command name/); ProcessHistory("License","","","!LICENSE $_"); } ProcessHistory("License","","","!\n"); return(0); } # This routine parses "show version" sub ShowVersion { my($INPUT, $OUTPUT, $cmd) = @_; print STDERR " In ShowVersion: $_" if ($debug); while (<$INPUT>) { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); ProcessHistory("Version","","","! $_"); } ProcessHistory("Version","","","!\n"); return(0); } 1; -------------- next part -------------- A non-text attachment was scrubbed... Name: 0xA273BC92.asc Type: application/pgp-keys Size: 3116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From ross at eve-it.net Fri Apr 28 01:53:39 2017 From: ross at eve-it.net (Ross [Eve IT]) Date: Fri, 28 Apr 2017 11:53:39 +1000 Subject: [rancid] brocade vdx backups In-Reply-To: References: Message-ID: Thanks Doug, works perfect! On Wed, Apr 26, 2017 at 11:44 PM, Doug Hughes wrote: > I wrote a vdx-working module that I contributed back in Oct 2016, but not > sure what the current state of it is. > > It works with rancid 3.4.1 > > Below is my etc/rancid.types.conf excerpt > > as you can see, brcdvcs uses the a10login module which works fine (I > didn't feel like reinventing the wheel here, and that worked) > > and I created a new bcrdvcs and bcrdicx type. You'll want to change the > rbridge-id's to match your stack members. I stopped short of trying to > invent something generic to solve this particular puzzle. > > > attached is the modified brocade.pm which gets called for vcs. > > icx uses the ios module. > > > brcdicx;script;rancid -t brcdicx > brcdicx;login;clogin > brcdicx;module;ios > brcdicx;inloop;ios::inloop > brcdicx:command;rancid::RunCommmand;skip-page-display > brcdicx;command;ios::ShowVersion;show version > brcdicx;command;ios::WriteTerm;show chassis > brcdicx;command;ios::WriteTerm;show running-config > > # Brocade VCS 10g/40g > brcdvcs;script;rancid -t brcdvcs > brcdvcs;login;a10login > brcdvcs;module;brocade > brcdvcs;inloop;brocade::inloop > brcdvcs;command;brocade::ShowVersion;show version all-partitions > brcdvcs;command;brocade::ShowLicense;show license > brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 11 > brcdvcs;command;brocade::ShowRasLicense;show logging raslog rbridge-id 12 > brcdvcs;command;brocade::ShowVcs;show vcs detail > brcdvcs;command;brocade::ShowVlan;show vlan brief > brcdvcs;command;brocade::ShowSnapshots;show config snapshot rbridge-id 1 > brcdvcs;command;brocade::ShowFabric;show virtual-fabric status > brcdvcs;command;brocade::ShowFabric;show fabric all > brcdvcs;command;brocade::ShowSupport;show support > brcdvcs;command;brocade::ShowMonitor;show system monitor > brcdvcs;command;brocade::ShowConfig;show running-config > > > > On 4/26/2017 9:23 AM, Erik Muller wrote: > > VDXes are a very different codebase than a lot of the other foundry/brocade > gear, and they have a whole new set of quirks as a result. IIRC the > biggest annoyance for rancid is that they don't have an end-of-config marker. > > I've gotten it working for VDXes before, my version is here:https://github.com/ermuller/rancid-stuff > I haven't tested it widely enough to try to integrate it properly upstream, > but if you wanted to give that a try, I'd appreciate any feedback. > -e > > On 4/25/17 23:57 , Ross [Eve IT] wrote: > > Hello, > > I've been scratching my head for the last few days trying to figure out how > to get these backups working. > We have a working installation of rancid on debian jessie with no issues. > jessie backports. 3.6.2-2 > > A combination of cisco and brocade kit, brocade (ICX series) uses the > foundry module just fine. > > However the VDX switches are just not backing up. > I've tried both foundry and cisco. > > > However I can login, issue commands, etc.. > > > :~$ bin/clogin 10.65.65.13 > 10.65.65.13 > spawn ssh -x -l admin 10.65.65.13admin at 10.65.65.13 's password: > > Welcome to the Brocade Network Operating System Software > admin connected from 10.0.250.18 using ssh on vdx11-1 > vdx11-1# > > > > > :~$bin/clogin -c "show vcs" 10.65.65.13 > 10.65.65.13 > spawn ssh -x -l admin 10.65.65.13admin at 10.65.65.13 's password: > > Welcome to the Brocade Network Operating System Software > admin connected from 10.0.250.18 using ssh on vdx11-1 > vdx11-1# > vdx11-1# terminal length 0 > Successfully set This Session Terminal Length to 0. > vdx11-1# terminal width 132 > -----------------------^ > syntax error: unknown argument. > vdx11-1# show vcs > Config Mode : Distributed > VCS Mode : Logical Chassis > VCS ID : 1 > VCS GUID : 54f28a13-7c4b-4516-8198-cafaf637b393 > Total Number of Nodes : 4 > Rbridge-Id WWN Management IP VCS Status > Fabric Status HostName > -------------------------------------------------------------------------------------------------------------- > 1 >12:02:52:EC:1A:38:22:4C* 10.65.65.10 Online > Online vdx11-1 > 2 12:01:5C:EC:1V:3C:F2:AS 10.65.65.11 Online > Online vdx11-2 > 3 12:04:50:EB:1A:34:E4:90 10.65.65.12 Online > Online vdx12-1 > 4 12:03:C4:F5:7C:3S:BA:54 10.65.65.14 Online > Online vdx12-2 > vdx11-1#exit > Connection to 10.65.65.13 closed. > > > > Logs; > > > starting: Wednesday 26 April 13:45:12 AEST 2017 > > cvs add: `10.65.65.13' already exists, with version number 1.1 > Added 10.65.65.13 > > > > Trying to get all of the configs. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 1. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 2. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 3. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > ===================================== > Getting missed routers: round 4. > 10.65.65.13 : missed cmd(s): all commands > 10.65.65.13 : End of run not found > 10.65.65.13 flogin error: Error: TIMEOUT reached > ! > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > /var/lib/rancid/CVS/mel/router.db,v <-- router.db > new revision: 1.4; previous revision: 1.3 > > ending: Wednesday 26 April 13:53:02 AEST 2017 > > > Any help greatly appreciated. > Thanks in advance ! > > > > _______________________________________________ > Rancid-discuss mailing listRancid-discuss at shrubbery.nethttp://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ > Rancid-discuss mailing listRancid-discuss at shrubbery.nethttp://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > -- > Doug Hughes > Keystone NAP > Fairless Hills, PA > 1.844.KEYBLOCK (539.2562) > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: keystone-nap.png Type: image/png Size: 3476 bytes Desc: not available URL: