From Remi.FESSARD at knorr-bremse.com Thu Aug 1 14:50:57 2019 From: Remi.FESSARD at knorr-bremse.com (FESSARD, Remi) Date: Thu, 1 Aug 2019 14:50:57 +0000 Subject: [rancid] Switch HPE 5700 Message-ID: <4e0a487754d14f45ab2cb4c7a570fbc6@knorr-bremse.com> Hello, We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on it are: * display version * display startup * display device * display device manuinfo * display transceiver manuinfo interface * display debugging * display current-configuration Do you, please, give the device type that I have to define in Rancid to save it ? Many thanks in advance, R?mi This transmission is intended solely for the addressee and contains confidential information. If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system. Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Thu Aug 1 15:19:33 2019 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 1 Aug 2019 11:19:33 -0400 Subject: [rancid] Switch HPE 5700 In-Reply-To: <4e0a487754d14f45ab2cb4c7a570fbc6@knorr-bremse.com> References: <4e0a487754d14f45ab2cb4c7a570fbc6@knorr-bremse.com> Message-ID: On Thu, Aug 1, 2019 at 10:51 AM FESSARD, Remi wrote: > Hello, > > > > We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on it > are: > > > > - display version > - display startup > - display device > - display device manuinfo > - display transceiver manuinfo interface > - display debugging > - display current-configuration > > > > Do you, please, give the device type that I have to define in Rancid to > save it ? > > > > Bonjour R?mi, We're using HPE A5800 switches and they use similar syntax (Comware). I don't know exactly what to use in your case but back in the time where we configured them with rancid, there was a device type called "h3c". You may have a look here: https://sites.google.com/site/jrbinks/code/rancid/h3c When I received the switches, the author of this page (Jethro Binks) kindly worked (a lot) to adapt his scripts so that it works with the HP A5800 (although he didn't have one to test). It's still working as of now. Ours is Comware 5-based, but the A5900 is in the list of tested models and is apparently Comware 7 based. I don't know why it hasn't been merged into rancid. I think, though, that these switches have a compatibility mode that would let you use the hp device type (procurve syntax). Regards, -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ugob at lubik.ca Thu Aug 1 15:21:57 2019 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 1 Aug 2019 11:21:57 -0400 Subject: [rancid] Switch HPE 5700 In-Reply-To: References: <4e0a487754d14f45ab2cb4c7a570fbc6@knorr-bremse.com> Message-ID: Sorry, I just realized that there is a page for Rancid 3.x. https://sites.google.com/site/jrbinks/code/rancid/cmwrancid On Thu, Aug 1, 2019 at 11:19 AM Ugo Bellavance wrote: > > > On Thu, Aug 1, 2019 at 10:51 AM FESSARD, Remi < > Remi.FESSARD at knorr-bremse.com> wrote: > >> Hello, >> >> >> >> We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on it >> are: >> >> >> >> - display version >> - display startup >> - display device >> - display device manuinfo >> - display transceiver manuinfo interface >> - display debugging >> - display current-configuration >> >> >> >> Do you, please, give the device type that I have to define in Rancid to >> save it ? >> >> >> >> Bonjour R?mi, > > We're using HPE A5800 switches and they use similar syntax (Comware). I > don't know exactly what to use in your case but back in the time where we > configured them with rancid, there was a device type called "h3c". > > You may have a look here: > > https://sites.google.com/site/jrbinks/code/rancid/h3c > > When I received the switches, the author of this page (Jethro Binks) > kindly worked (a lot) to adapt his scripts so that it works with the HP > A5800 (although he didn't have one to test). It's still working as of now. > Ours is Comware 5-based, but the A5900 is in the list of tested models and > is apparently Comware 7 based. I don't know why it hasn't been merged into > rancid. > > I think, though, that these switches have a compatibility mode that would > let you use the hp device type (procurve syntax). > > Regards, > -- > Ugo Bellavance (ugob at lubik.ca) > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Remi.FESSARD at knorr-bremse.com Fri Aug 2 07:49:30 2019 From: Remi.FESSARD at knorr-bremse.com (FESSARD, Remi) Date: Fri, 2 Aug 2019 07:49:30 +0000 Subject: [rancid] Rancid-discuss Digest, Vol 106, Issue 1 Message-ID: <9b0dc4d5b4cf466985360c522dcdb1bf@knorr-bremse.com> Dear Ugo, Many thanks, it works fine after 2 small modifications: h3clogin: #! /usr/bin/expect -- instead of #! /usr/local/bin/expect -- h3crancid: #! /usr/bin/perl instead of #! /usr/bin/perl5 Best regards Remi -----Original Message----- From: Rancid-discuss On Behalf Of rancid-discuss-request at shrubbery.net Sent: Thursday, August 1, 2019 10:00 PM To: rancid-discuss at shrubbery.net Subject: [Marketing Mail] Rancid-discuss Digest, Vol 106, Issue 1 Send Rancid-discuss mailing list submissions to rancid-discuss at shrubbery.net To subscribe or unsubscribe via the World Wide Web, visit http://www.shrubbery.net/mailman/listinfo/rancid-discuss or, via email, send a message with subject or body 'help' to rancid-discuss-request at shrubbery.net You can reach the person managing the list at rancid-discuss-owner at shrubbery.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Rancid-discuss digest..." Today's Topics: 1. Switch HPE 5700 (FESSARD, Remi) 2. Re: Switch HPE 5700 (Ugo Bellavance) 3. Re: Switch HPE 5700 (Ugo Bellavance) ---------------------------------------------------------------------- Message: 1 Date: Thu, 1 Aug 2019 14:50:57 +0000 From: "FESSARD, Remi" To: "'rancid-discuss at shrubbery.net'" Subject: [rancid] Switch HPE 5700 Message-ID: <4e0a487754d14f45ab2cb4c7a570fbc6 at knorr-bremse.com> Content-Type: text/plain; charset="iso-8859-1" Hello, We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on it are: * display version * display startup * display device * display device manuinfo * display transceiver manuinfo interface * display debugging * display current-configuration Do you, please, give the device type that I have to define in Rancid to save it ? Many thanks in advance, R?mi This transmission is intended solely for the addressee and contains confidential information. If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system. Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like. -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Thu, 1 Aug 2019 11:19:33 -0400 From: Ugo Bellavance Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Switch HPE 5700 Message-ID: Content-Type: text/plain; charset="utf-8" On Thu, Aug 1, 2019 at 10:51 AM FESSARD, Remi wrote: > Hello, > > > > We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on > it > are: > > > > - display version > - display startup > - display device > - display device manuinfo > - display transceiver manuinfo interface > - display debugging > - display current-configuration > > > > Do you, please, give the device type that I have to define in Rancid > to save it ? > > > > Bonjour R?mi, We're using HPE A5800 switches and they use similar syntax (Comware). I don't know exactly what to use in your case but back in the time where we configured them with rancid, there was a device type called "h3c". You may have a look here: https://sites.google.com/site/jrbinks/code/rancid/h3c When I received the switches, the author of this page (Jethro Binks) kindly worked (a lot) to adapt his scripts so that it works with the HP A5800 (although he didn't have one to test). It's still working as of now. Ours is Comware 5-based, but the A5900 is in the list of tested models and is apparently Comware 7 based. I don't know why it hasn't been merged into rancid. I think, though, that these switches have a compatibility mode that would let you use the hp device type (procurve syntax). Regards, -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 3 Date: Thu, 1 Aug 2019 11:21:57 -0400 From: Ugo Bellavance Cc: "rancid-discuss at shrubbery.net" Subject: Re: [rancid] Switch HPE 5700 Message-ID: Content-Type: text/plain; charset="utf-8" Sorry, I just realized that there is a page for Rancid 3.x. https://sites.google.com/site/jrbinks/code/rancid/cmwrancid On Thu, Aug 1, 2019 at 11:19 AM Ugo Bellavance wrote: > > > On Thu, Aug 1, 2019 at 10:51 AM FESSARD, Remi < > Remi.FESSARD at knorr-bremse.com> wrote: > >> Hello, >> >> >> >> We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on >> it >> are: >> >> >> >> - display version >> - display startup >> - display device >> - display device manuinfo >> - display transceiver manuinfo interface >> - display debugging >> - display current-configuration >> >> >> >> Do you, please, give the device type that I have to define in Rancid >> to save it ? >> >> >> >> Bonjour R?mi, > > We're using HPE A5800 switches and they use similar syntax (Comware). > I don't know exactly what to use in your case but back in the time > where we configured them with rancid, there was a device type called "h3c". > > You may have a look here: > > https://sites.google.com/site/jrbinks/code/rancid/h3c > > When I received the switches, the author of this page (Jethro Binks) > kindly worked (a lot) to adapt his scripts so that it works with the > HP > A5800 (although he didn't have one to test). It's still working as of now. > Ours is Comware 5-based, but the A5900 is in the list of tested models > and is apparently Comware 7 based. I don't know why it hasn't been > merged into rancid. > > I think, though, that these switches have a compatibility mode that > would let you use the hp device type (procurve syntax). > > Regards, > -- > Ugo Bellavance (ugob at lubik.ca) > -- Ugo Bellavance (ugob at lubik.ca) -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Subject: Digest Footer _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss ------------------------------ End of Rancid-discuss Digest, Vol 106, Issue 1 ********************************************** This transmission is intended solely for the addressee and contains confidential information. If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system. Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like. From jethro.binks at strath.ac.uk Wed Aug 7 07:48:58 2019 From: jethro.binks at strath.ac.uk (Jethro R Binks) Date: Wed, 7 Aug 2019 08:48:58 +0100 (BST) Subject: [rancid] Switch HPE 5700 In-Reply-To: References: <4e0a487754d14f45ab2cb4c7a570fbc6@knorr-bremse.com> Message-ID: Some brief comments: 1. cmwrancid for rancid3 will work with Comware 7 (and 5 and 3). h3c one was for rancid2, supporting Comware 5 and 3; 2. The version on that site is old, I run a newer one locally, but I think it required some other tweaks to rancid that were a bit of a fudge and I never got around to discussing with John or doing it better (whatever it was). Or something. It's all a bit hazy. But my local one does work for me; 3. Subsequently I think John created his own basic module for the comware platform, I didn't have opportunity look at it; 4. Probably anything I learned should feed into John's official module (I can't remember what it was called), but there was quite a lot of hacking to workaround issues with the older platforms so it may have to be only stated as useable for more recent comware 5 and 7; 5. I get very little development time these days so my attention is a long away from rancid ... sorry. Jethro. On Thu, 1 Aug 2019, Ugo Bellavance wrote: > Sorry, I just realized that there is a page for Rancid 3.x. > > https://sites.google.com/site/jrbinks/code/rancid/cmwrancid > > On Thu, Aug 1, 2019 at 11:19 AM Ugo Bellavance wrote: > > > > > > > On Thu, Aug 1, 2019 at 10:51 AM FESSARD, Remi < > > Remi.FESSARD at knorr-bremse.com> wrote: > > > >> Hello, > >> > >> > >> > >> We bought a switch HPE 5700-32XGT-8XG-2QSFP2 and display commands on it > >> are: > >> > >> > >> > >> - display version > >> - display startup > >> - display device > >> - display device manuinfo > >> - display transceiver manuinfo interface > >> - display debugging > >> - display current-configuration > >> > >> > >> > >> Do you, please, give the device type that I have to define in Rancid to > >> save it ? > >> > >> > >> > >> Bonjour R?mi, > > > > We're using HPE A5800 switches and they use similar syntax (Comware). I > > don't know exactly what to use in your case but back in the time where we > > configured them with rancid, there was a device type called "h3c". > > > > You may have a look here: > > > > https://sites.google.com/site/jrbinks/code/rancid/h3c > > > > When I received the switches, the author of this page (Jethro Binks) > > kindly worked (a lot) to adapt his scripts so that it works with the HP > > A5800 (although he didn't have one to test). It's still working as of now. > > Ours is Comware 5-based, but the A5900 is in the list of tested models and > > is apparently Comware 7 based. I don't know why it hasn't been merged into > > rancid. > > > > I think, though, that these switches have a compatibility mode that would > > let you use the hp device type (procurve syntax). > > > > Regards, > > -- > > Ugo Bellavance (ugob at lubik.ca) > > > > > -- > Ugo Bellavance (ugob at lubik.ca) > . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks, Network Manager, Information Services Directorate, University Of Strathclyde, Glasgow, UK The University of Strathclyde is a charitable body, registered in Scotland, number SC015263. From ak.sn.201712 at gmail.com Wed Aug 14 07:42:28 2019 From: ak.sn.201712 at gmail.com (Ak Sn) Date: Wed, 14 Aug 2019 09:42:28 +0200 Subject: [rancid] Using rancid with jump server In-Reply-To: References: Message-ID: Hi, This should be configurable in the ssh options of rancid, as this imho has nothing to do with rancid itself but the underlying ssh configuration. Check out the -J option: https://wiki.gentoo.org/wiki/SSH_jump_host Hth Yosua tito schrieb am Do., 7. Feb. 2019, 04:55: > I'm already install rancid and used it with cisco router and switch. in > the next case i should use jump server who have access to network device > inside a lan. so the topology is rancid server access > jump server > (router) access > network device (router & switch) is it possible? if yes > what should i do modify .clogin file or?? for your information yes the jump > server is a cisco router. > _______________________________________________ > 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 shailjasingh2709 at gmail.com Tue Aug 20 08:09:49 2019 From: shailjasingh2709 at gmail.com (Shailja Singh) Date: Tue, 20 Aug 2019 13:39:49 +0530 Subject: [rancid] Need Help#Automatic Backup In-Reply-To: <20190814141145.GD2794@shrubbery.net> References: <20190814141145.GD2794@shrubbery.net> Message-ID: Hi As per trail mail please support for automatic backup of network devices in windows. Regards Sandip Singh On Wed, Aug 14, 2019 at 7:41 PM john heasley wrote: > Wed, Aug 14, 2019 at 12:58:47PM +0530, Shailja Singh: > > Hi Team > > Please help me to take automatic backup of network devices, I am not much > > familiar in Linux , I need to install rancid in windows machine for > backup. > > please help on this . > > > > > > Regards > > Sandip Singh > > Sorry, Windows is not supported. someone on the mail-list > rancid-discuss at shrubbery.net might be able to help you. maybe that new > linux mode on windows, whatever it is called. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ler762 at gmail.com Tue Aug 20 22:02:53 2019 From: ler762 at gmail.com (Lee) Date: Tue, 20 Aug 2019 18:02:53 -0400 Subject: [rancid] Need Help#Automatic Backup In-Reply-To: References: <20190814141145.GD2794@shrubbery.net> Message-ID: On 8/20/19, Shailja Singh wrote: > Hi > As per trail mail please support for automatic backup of network devices in > windows. Install cygwin see: https://cygwin.com/install.html then follow the instructions for installing rancid. Regards, Lee > Regards > Sandip Singh > > > On Wed, Aug 14, 2019 at 7:41 PM john heasley wrote: > >> Wed, Aug 14, 2019 at 12:58:47PM +0530, Shailja Singh: >> > Hi Team >> > Please help me to take automatic backup of network devices, I am not >> > much >> > familiar in Linux , I need to install rancid in windows machine for >> backup. >> > please help on this . >> > >> > >> > Regards >> > Sandip Singh >> >> Sorry, Windows is not supported. someone on the mail-list >> rancid-discuss at shrubbery.net might be able to help you. maybe that new >> linux mode on windows, whatever it is called. >> > From savage at savage.za.org Wed Aug 21 10:10:35 2019 From: savage at savage.za.org (Chris Knipe) Date: Wed, 21 Aug 2019 12:10:35 +0200 Subject: [rancid] Rancid issues Message-ID: Hi All, Rancid setup and everything's fine form what I can tell. I'm getting a strange error I haven't seen before: router.db: za-ctn-pe01;mikrotik;up bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 loadtype: device type mikrotik loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base executing mtlogin -t 90 -c"" za-ctn-pe01 inloop is not configured for device type mikrotik at ./bin/rancid line 130. Not quite sure what is happening at this stage... -- Regards, Chris Knipe -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Wed Aug 21 10:13:21 2019 From: m_zouhairy at skno.by (Vacheslav) Date: Wed, 21 Aug 2019 13:13:21 +0300 Subject: [rancid] Rancid issues In-Reply-To: References: Message-ID: <51a97c0d2c3611c2d626b509efa79f681fe63e05.camel@skno.by> rancid version would help in troubleshooting... On Wed, 2019-08-21 at 12:10 +0200, Chris Knipe wrote: > Hi All, > Rancid setup and everything's fine form what I can tell. I'm getting > a strange error I haven't seen before: > > router.db: > za-ctn-pe01;mikrotik;up > > bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 > loadtype: device type mikrotik > loadtype: found device type mikrotik in > /srv/rancid/etc/rancid.types.base > executing mtlogin -t 90 -c"" za-ctn-pe01 > inloop is not configured for device type mikrotik at ./bin/rancid > line 130. > > Not quite sure what is happening at this stage... > > -- > > Regards, > Chris Knipe > > > _______________________________________________Rancid-discuss mailing > listRancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at savage.za.org Wed Aug 21 10:16:19 2019 From: savage at savage.za.org (Chris Knipe) Date: Wed, 21 Aug 2019 12:16:19 +0200 Subject: [rancid] Rancid issues In-Reply-To: <51a97c0d2c3611c2d626b509efa79f681fe63e05.camel@skno.by> References: <51a97c0d2c3611c2d626b509efa79f681fe63e05.camel@skno.by> Message-ID: My apologies :) bash-4.2$ ./bin/rancid -V rancid 3.9 On Wed, Aug 21, 2019 at 12:13 PM Vacheslav wrote: > rancid version would help in troubleshooting... > > On Wed, 2019-08-21 at 12:10 +0200, Chris Knipe wrote: > > Hi All, > > Rancid setup and everything's fine form what I can tell. I'm getting a > strange error I haven't seen before: > > router.db: > za-ctn-pe01;mikrotik;up > > bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 > loadtype: device type mikrotik > loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base > executing mtlogin -t 90 -c"" za-ctn-pe01 > inloop is not configured for device type mikrotik at ./bin/rancid line 130. > > Not quite sure what is happening at this stage... > > -- > > Regards, > Chris Knipe > > _______________________________________________ > > 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 > -- Regards, Chris Knipe -------------- next part -------------- An HTML attachment was scrubbed... URL: From savage at savage.za.org Wed Aug 21 11:16:07 2019 From: savage at savage.za.org (Chris Knipe) Date: Wed, 21 Aug 2019 13:16:07 +0200 Subject: [rancid] Rancid issues In-Reply-To: References: <51a97c0d2c3611c2d626b509efa79f681fe63e05.camel@skno.by> Message-ID: Hi, The issue seems to be the -c"" (no /export command) Not sure why rancid isn't passing the command to mtlogin On Wed, Aug 21, 2019 at 12:16 PM Chris Knipe wrote: > My apologies :) > > bash-4.2$ ./bin/rancid -V > rancid 3.9 > > > > On Wed, Aug 21, 2019 at 12:13 PM Vacheslav wrote: > >> rancid version would help in troubleshooting... >> >> On Wed, 2019-08-21 at 12:10 +0200, Chris Knipe wrote: >> >> Hi All, >> >> Rancid setup and everything's fine form what I can tell. I'm getting a >> strange error I haven't seen before: >> >> router.db: >> za-ctn-pe01;mikrotik;up >> >> bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 >> loadtype: device type mikrotik >> loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base >> executing mtlogin -t 90 -c"" za-ctn-pe01 >> inloop is not configured for device type mikrotik at ./bin/rancid line >> 130. >> >> Not quite sure what is happening at this stage... >> >> -- >> >> Regards, >> Chris Knipe >> >> _______________________________________________ >> >> 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 >> > > > -- > > Regards, > Chris Knipe > -- Regards, Chris Knipe -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Aug 21 14:44:01 2019 From: heas at shrubbery.net (john heasley) Date: Wed, 21 Aug 2019 14:44:01 +0000 Subject: [rancid] Rancid issues In-Reply-To: References: Message-ID: <20190821144401.GF5188@shrubbery.net> Wed, Aug 21, 2019 at 12:10:35PM +0200, Chris Knipe: > Hi All, > > Rancid setup and everything's fine form what I can tell. I'm getting a > strange error I haven't seen before: > > router.db: > za-ctn-pe01;mikrotik;up > > bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 > loadtype: device type mikrotik > loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base > executing mtlogin -t 90 -c"" za-ctn-pe01 > inloop is not configured for device type mikrotik at ./bin/rancid line 130. > > Not quite sure what is happening at this stage... bin/rancid does not work this way with scripts that have not been converted to modules. It could be made to work, I just had not anticipated it. you must run the script itself. mtrancid [opts] hostname From savage at savage.za.org Wed Aug 21 14:52:07 2019 From: savage at savage.za.org (Chris Knipe) Date: Wed, 21 Aug 2019 16:52:07 +0200 Subject: [rancid] Rancid issues In-Reply-To: <20190821144401.GF5188@shrubbery.net> References: <20190821144401.GF5188@shrubbery.net> Message-ID: Hi all, We used an AWS Linux image to run rancid on - expect there is an issue with either TCL and/or expect. Trashed the box and went to an ubuntu image instead, and everything is working fine. Thanks. On Wed, Aug 21, 2019 at 4:44 PM john heasley wrote: > Wed, Aug 21, 2019 at 12:10:35PM +0200, Chris Knipe: > > Hi All, > > > > Rancid setup and everything's fine form what I can tell. I'm getting a > > strange error I haven't seen before: > > > > router.db: > > za-ctn-pe01;mikrotik;up > > > > bash-4.2$ ./bin/rancid -d -t mikrotik za-ctn-pe01 > > loadtype: device type mikrotik > > loadtype: found device type mikrotik in /srv/rancid/etc/rancid.types.base > > executing mtlogin -t 90 -c"" za-ctn-pe01 > > inloop is not configured for device type mikrotik at ./bin/rancid line > 130. > > > > Not quite sure what is happening at this stage... > > bin/rancid does not work this way with scripts that have not been converted > to modules. It could be made to work, I just had not anticipated it. you > must run the script itself. > > mtrancid [opts] hostname > -- Regards, Chris Knipe -------------- next part -------------- An HTML attachment was scrubbed... URL: From nineoften at hotmail.com Wed Aug 21 21:10:04 2019 From: nineoften at hotmail.com (Ni Ne) Date: Wed, 21 Aug 2019 21:10:04 +0000 Subject: [rancid] RANCID 3.8 and Git - sync to remote repo instead of or in addition to local repo? Message-ID: Running rancid 3.8 and I would like to (re-)publish the rancid config files (for devices themselves) to a gitlab server we have internally. I am still learning about Git and not very familiar with rancid's interaction with it. Is it feasible to have rancid update both repo's simultaneously? The local one on the server, and a remote repo? It appears Git itself supports such a thing: https://stackoverflow.com/questions/849308/pull-push-from-multiple-remote-locations I imagine I would need to update all rancid groups .git files accordingly, at a minimum. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Aug 21 21:12:05 2019 From: heas at shrubbery.net (john heasley) Date: Wed, 21 Aug 2019 21:12:05 +0000 Subject: [rancid] RANCID 3.8 and Git - sync to remote repo instead of or in addition to local repo? In-Reply-To: References: Message-ID: <20190821211205.GB46355@shrubbery.net> Wed, Aug 21, 2019 at 09:10:04PM +0000, Ni Ne: > Running rancid 3.8 and I would like to (re-)publish the rancid config files (for devices themselves) to a gitlab server we have internally. > > I am still learning about Git and not very familiar with rancid's interaction with it. > > Is it feasible to have rancid update both repo's simultaneously? The local one on the server, and a remote repo? this is covered in the rancid FAQ. From LukeS at coloradovalley.com Mon Aug 26 18:57:27 2019 From: LukeS at coloradovalley.com (Luke Smith) Date: Mon, 26 Aug 2019 18:57:27 +0000 Subject: [rancid] Tellabs equipment Message-ID: I'm new to configuring Rancid, so forgive me if I'm not asking the right questions. I've turned up a rancid server, I can get Cisco, Adtran, and Foundry no issues. I'm moving over to my Tellabs now and I've found a rancid-ssi github that I was able to find a tlrancid.in file on the commands needed and clogin works fine to get me into the device, but when I actually start a run, it doesn't get into the device, what happens in the logs I get the following error: Trying to get all of the configs. exec(tlrancid) failed router manufacturer tellabs: No such file or directory I went ahead and in the rancid.types.base I added the following: # Tellabs tellabs;script;tlrancid tellabs;login;clogin If I manually run the tlrancid or clogin command, it gets in just fine. However, I don't actually get the scripts to run ... so I'm assuming I'm missing a correlation between files. Any help would be appreciated. Confidentiality Notice: The information herein transmitted or attached is intended only for the person or entity to which this e-mail is addressed and may contain confidential and/or legally privileged material. Any review, retransmission, dissemination, other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender immediately and delete the material from any and all computers, servers, and e-mail programs. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Aug 26 23:02:21 2019 From: heas at shrubbery.net (john heasley) Date: Mon, 26 Aug 2019 23:02:21 +0000 Subject: [rancid] Tellabs equipment In-Reply-To: References: Message-ID: <20190826230221.GB67324@shrubbery.net> Mon, Aug 26, 2019 at 06:57:27PM +0000, Luke Smith: > I'm new to configuring Rancid, so forgive me if I'm not asking the right questions. I've turned up a rancid server, I can get Cisco, Adtran, and Foundry no issues. I'm moving over to my Tellabs now and I've found a rancid-ssi github that I was able to find a tlrancid.in file on the commands needed and clogin works fine to get me into the device, but when I actually start a run, it doesn't get into the device, what happens in the logs I get the following error: > > Trying to get all of the configs. > exec(tlrancid) failed router manufacturer tellabs: No such file or directory > > I went ahead and in the rancid.types.base I added the following: I recommend using rancid.types.conf instead; see the comment at the top of .base. > # Tellabs > tellabs;script;tlrancid > tellabs;login;clogin > > If I manually run the tlrancid or clogin command, it gets in just fine. However, I don't actually get the scripts to run ... so I'm assuming I'm missing a correlation between files. Any help would be appreciated. > make sure that tlrancid is executable, has the correct interpretter as its first line and it in rancid's path according to rancid.conf:PATH or make it a FQPN in the rancid.types.conf entry. From heas at shrubbery.net Tue Aug 27 19:17:01 2019 From: heas at shrubbery.net (john heasley) Date: Tue, 27 Aug 2019 19:17:01 +0000 Subject: [rancid] Extreme switch policy backup. In-Reply-To: <20190712200530.GH16982@shrubbery.net> References: <20190712200409.B946A17541@sea.shrubbery.net> <94eafe33-dde6-6c05-4727-59892963124b@prt.org> <20190712200530.GH16982@shrubbery.net> Message-ID: <20190827191701.GI55725@shrubbery.net> Fri, Jul 12, 2019 at 08:05:30PM +0000, john heasley: > Fri, Jul 12, 2019 at 08:30:28PM +0100, Paul Thornton: > > Hi > > > > We had a patch to 2.3's xrancid which we were running at some stage in > > the past N years that did this already - but can't I find it, and we > > aren't running it on our current rancid system either. Thanks to Chris' > > E-mail at least I've been reminded of that. > > > > It wasn't a hard thing to add. > > > > On 12/07/2019 20:15, john heasley wrote: > > > Tue, Jul 09, 2019 at 09:55:56PM +0000, Chris Davis: > > >> We've just gotten a few Extreme switches (model X440-G2) and I've gotten them set up in Rancid. But while I get the configs, I have a few policies as well. They're kept as .pol files on the switch. Is there a way to include the policy files in the backup that Rancid takes? It would be particularly helpful. I've done some searching, and seen folks ask about it. But no real answers. Lots of modifications to commands from 4 years ago but nothing current. There's a command that will print it all out, just not sure how to add it into the mix. Don't like to modify something like Rancid if there's already a way within the system to make it happen. > > > > > > what is the command to display the policy? can you provide an example of > > > the command and output, from prompt to the next prompt? is the output > > > format and order stable? > > > > > > i see an incomplete example here; > > > http://www.shrubbery.net/pipermail/rancid-discuss/2014-May/007659.html > > > > The format isn't great. The switch basically outputs > > Policies at Policy Server: > > Policy: > > > > Number of clients bound to policy: > > Client: > > > > My hunch would be not to try and parse this lot at all, but just execute > > the 'show policy detail' and wait for the prompt to come back. I'm > > pretty sure that's all we did; I remember it just diffed everything and > > you saw quickly if a policy was added/removed just as easily. > > It is theoretically possible for someone to have a prompt matching > > string in the policy file as a comment, but lets ignore that madness for > > now. > > > > This example shows three policies as an example: > > > > * ag1.hbr.2 # dis clip > > * ag1.hbr.3 # show policy detail > > Policies at Policy Server: > > Policy: as65001-in-v4 > > entry term10 { > > Cool. Could you test this? ping. I'd be grateful if someone would test this change for policy backup on extreme. > diff --git a/etc/rancid.types.base b/etc/rancid.types.base > index 18139479..6c3a80aa 100644 > --- a/etc/rancid.types.base > +++ b/etc/rancid.types.base > @@ -381,6 +381,7 @@ extreme;command;exos::ShowMemory;show memory > extreme;command;exos::ShowDiag;show diag > extreme;command;exos::ShowSwitch;show switch > extreme;command;exos::ShowSlot;show slot > +extreme;command;exos::ShowPolicy;show policy detail > extreme;command;exos::WriteTerm;show configuration detail > extreme;command;exos::WriteTerm;show configuration > # > diff --git a/lib/exos.pm.in b/lib/exos.pm.in > index fd7d1482..710a5c0f 100644 > --- a/lib/exos.pm.in > +++ b/lib/exos.pm.in > @@ -1,7 +1,5 @@ > package exos; > ## > -## $Id$ > -## > ## @PACKAGE@ @VERSION@ > @copyright@ > # > @@ -161,6 +159,21 @@ sub ShowDiag { > return(0); > } > > +# This routine parses "show policy detail" > +sub ShowPolicy { > + my($INPUT, $OUTPUT, $cmd) = @_; > + print STDERR " In ShowPolicy: $_" if ($debug); > + > + while (<$INPUT>) { > + tr/\015//d; > + last if (/^$prompt/); > + next if (/^(\s*|\s*$cmd\s*)$/); > + > + ProcessHistory("POLICY","","","# $_"); > + } > + return(0); > +} > + > # This routine parses "show slot" > sub ShowSlot { > my($INPUT, $OUTPUT, $cmd) = @_; > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From paul at prt.org Wed Aug 28 07:47:56 2019 From: paul at prt.org (Paul Thornton) Date: Wed, 28 Aug 2019 08:47:56 +0100 Subject: [rancid] Extreme switch policy backup. In-Reply-To: <20190827191701.GI55725@shrubbery.net> References: <20190712200409.B946A17541@sea.shrubbery.net> <94eafe33-dde6-6c05-4727-59892963124b@prt.org> <20190712200530.GH16982@shrubbery.net> <20190827191701.GI55725@shrubbery.net> Message-ID: <5D6631AC.5090207@prt.org> On 27/08/2019 20:17, john heasley wrote: > ping. I'd be grateful if someone would test this change for policy > backup on extreme. Oops, sorry. That fell off the list. I'll take a look in the next couple of days. Paul.