From v.frenot at pixid.fr Wed Sep 5 13:37:23 2018 From: v.frenot at pixid.fr (Vivien FRENOT) Date: Wed, 5 Sep 2018 13:37:23 +0000 Subject: [rancid] Rancid and Brocade 6510 Message-ID: Hello, We are deploying Rancid to backup the configuration of our switches, but I'm having issues with Brocade 6510. I've seen in 'rancid.types.base' a Brocad entry that may do the job, but, there's no module for it. # Brocade #XXX brocade;script;rancid -t brocade brocade;login;brlogin #XXX brocade;module; XXX #XXX brocade;inloop; XXX #XXX brocade;command;XXX::ChassisShow;chassisShow #XXX brocade;command;XXX::FirmwareShow;firmwareShow #XXX brocade;command;XXX::FirmwareShow;version #XXX brocade;command;XXX::FirmwareShow;zoneshow #XXX brocade;command;XXX::FirmwareShow;portcfgshow #XXX brocade;command;XXX::Fosconfig;fosConfig --show #XXX brocade;command;XXX::IpAddrShow;ipAddrShow #XXX brocade;command;XXX::LicenseShow;licenseShow #XXX brocade;command;XXX::DomainsShow;domainsShow #XXX brocade;command;XXX::ConfigShow;configShow # There was a discussion started in 2015 about it (http://www.shrubbery.net/pipermail/rancid-discuss/2015-May/008408.html) but no one seems to actually answerd this. Any Ideas ? Regards, Vivien Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely, secure, error or virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.schmidt at wyo.gov Thu Sep 6 16:26:10 2018 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Thu, 6 Sep 2018 10:26:10 -0600 Subject: [rancid] Rancid and Brocade 6510 In-Reply-To: References: Message-ID: Have you tried foundry? On Wed, Sep 5, 2018 at 7:37 AM, Vivien FRENOT wrote: > Hello, > > > > We are deploying Rancid to backup the configuration of our switches, but > I?m having issues with Brocade 6510. I?ve seen in ?rancid.types.base? a > Brocad entry that may do the job, but, there?s no module for it. > > > > # Brocade > > #XXX brocade;script;rancid -t brocade > > brocade;login;brlogin > > #XXX brocade;module; XXX > > #XXX brocade;inloop; XXX > > #XXX brocade;command;XXX::ChassisShow;chassisShow > > #XXX brocade;command;XXX::FirmwareShow;firmwareShow > > #XXX brocade;command;XXX::FirmwareShow;version > > #XXX brocade;command;XXX::FirmwareShow;zoneshow > > #XXX brocade;command;XXX::FirmwareShow;portcfgshow > > #XXX brocade;command;XXX::Fosconfig;fosConfig --show > > #XXX brocade;command;XXX::IpAddrShow;ipAddrShow > > #XXX brocade;command;XXX::LicenseShow;licenseShow > > #XXX brocade;command;XXX::DomainsShow;domainsShow > > #XXX brocade;command;XXX::ConfigShow;configShow > > # > > > > There was a discussion started in 2015 about it (http://www.shrubbery.net/ > pipermail/rancid-discuss/2015-May/008408.html) but no one seems to > actually answerd this. > > > > Any Ideas ? > > > > > > Regards, Vivien > > > > * Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont > ?tablis ? l'intention exclusive des destinataires et les informations qui y > figurent sont strictement confidentielles. Toute utilisation de ce Message > non conforme ? sa destination, toute diffusion ou toute publication totale > ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas > le destinataire de ce Message, il vous est interdit de le copier, de le > faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez > re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi > que toutes ses copies, et de n'en garder aucune trace sur quelque support > que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement > l'exp?diteur par retour du message. Il est impossible de garantir que les > communications par messagerie ?lectronique arrivent en temps utile, sont > s?curis?es ou d?nu?es de toute erreur ou virus. This message and any > attachments (the 'Message') are intended solely for the addressees. The > information contained in this Message is confidential. Any use of > information contained in this Message not in accord with its purpose, any > dissemination or disclosure, either whole or partial, is prohibited except > formal approval. If you are not the addressee, you may not copy, forward, > disclose or use any part of it. If you have received this message in error, > please delete it and all copies from your system and notify the sender > immediately by return message. E-mail communication cannot be guaranteed to > be timely, secure, error or virus-free. * > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Sep 7 17:18:35 2018 From: heas at shrubbery.net (heasley) Date: Fri, 7 Sep 2018 17:18:35 +0000 Subject: [rancid] Rancid and Brocade 6510 In-Reply-To: References: Message-ID: <20180907171835.GA25519@shrubbery.net> Wed, Sep 05, 2018 at 01:37:23PM +0000, Vivien FRENOT: > Hello, > > We are deploying Rancid to backup the configuration of our switches, but I'm having issues with Brocade 6510. I've seen in 'rancid.types.base' a Brocad entry that may do the job, but, there's no module for it. > > # Brocade > #XXX brocade;script;rancid -t brocade > brocade;login;brlogin > #XXX brocade;module; XXX > #XXX brocade;inloop; XXX > #XXX brocade;command;XXX::ChassisShow;chassisShow > #XXX brocade;command;XXX::FirmwareShow;firmwareShow > #XXX brocade;command;XXX::FirmwareShow;version > #XXX brocade;command;XXX::FirmwareShow;zoneshow > #XXX brocade;command;XXX::FirmwareShow;portcfgshow > #XXX brocade;command;XXX::Fosconfig;fosConfig --show > #XXX brocade;command;XXX::IpAddrShow;ipAddrShow > #XXX brocade;command;XXX::LicenseShow;licenseShow > #XXX brocade;command;XXX::DomainsShow;domainsShow > #XXX brocade;command;XXX::ConfigShow;configShow > # > > There was a discussion started in 2015 about it (http://www.shrubbery.net/pipermail/rancid-discuss/2015-May/008408.html) but no one seems to actually answerd this. > > Any Ideas ? does brlogin work, according to the tests in the FAQ S3 Q2? From danm at prime.gushi.org Mon Sep 10 08:45:42 2018 From: danm at prime.gushi.org (Dan Mahoney (Gushi)) Date: Mon, 10 Sep 2018 01:45:42 -0700 (PDT) Subject: [rancid] Getting a lot of noise related to ce_switch.log and ce_switch.log.bak Message-ID: Hey all, I'm running Rancid built from freebsd packages, rancid3-3.7 Periodically, my ASR9K's log something like this: !Flash: harddisk: 24753 -rwx 800470016 Wed Sep 10 20:00:00 2014 VM-ASR9K-px-4.3.4.tar - !Flash: harddisk: 24623 -rw- ce_switch.log + !Flash: harddisk: 24781 -rw- 8192017 Mon Sep 10 05:10:03 2018 ce_switch.log.bak !Flash: harddisk: 24688 -rw- 1048576 Thu Sep 11 02:08:46 2014 kd.bin_0_RSP0_CPU0 !Flash: harddisk: 24625 drwx 4096 Thu Sep 11 01:38:55 2014 idiags !Flash: harddisk: 24626 -rw- 0 Thu Sep 11 01:40:24 2014 ahci.log !Flash: harddisk: 24627 drwx 4096 Thu Sep 11 02:20:32 2014 np - !Flash: harddisk: 24783 -rw- 8192017 Fri Sep 7 08:18:57 2018 ce_switch.log.bak + !Flash: harddisk: 24628 -rw- ce_switch.log !Flash: harddisk: 6442434560 bytes total (4 GB free) I thought I saw something on the mailing lists that this was fixed in a prior version, but I guess not. How would I go about tweaking rancid so these bits are ignored? Thanks, -Dan -- --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC FB: fb.com/DanielMahoneyIV LI: linkedin.com/in/gushi Site: http://www.gushi.org --------------------------- From heas at shrubbery.net Tue Sep 11 16:36:31 2018 From: heas at shrubbery.net (heasley) Date: Tue, 11 Sep 2018 16:36:31 +0000 Subject: [rancid] Getting a lot of noise related to ce_switch.log and ce_switch.log.bak In-Reply-To: References: Message-ID: <20180911163631.GB2325@shrubbery.net> Mon, Sep 10, 2018 at 01:45:42AM -0700, Dan Mahoney (Gushi): > Hey all, > > I'm running Rancid built from freebsd packages, rancid3-3.7 > > Periodically, my ASR9K's log something like this: > > !Flash: harddisk: 24753 -rwx 800470016 Wed Sep 10 20:00:00 2014 > VM-ASR9K-px-4.3.4.tar > - !Flash: harddisk: 24623 -rw- > ce_switch.log > + !Flash: harddisk: 24781 -rw- 8192017 Mon Sep 10 05:10:03 2018 > ce_switch.log.bak > !Flash: harddisk: 24688 -rw- 1048576 Thu Sep 11 02:08:46 2014 > kd.bin_0_RSP0_CPU0 > !Flash: harddisk: 24625 drwx 4096 Thu Sep 11 01:38:55 2014 > idiags > !Flash: harddisk: 24626 -rw- 0 Thu Sep 11 01:40:24 2014 > ahci.log > !Flash: harddisk: 24627 drwx 4096 Thu Sep 11 02:20:32 2014 > np > - !Flash: harddisk: 24783 -rw- 8192017 Fri Sep 7 08:18:57 2018 > ce_switch.log.bak > + !Flash: harddisk: 24628 -rw- > ce_switch.log > !Flash: harddisk: 6442434560 bytes total (4 GB free) > > I thought I saw something on the mailing lists that this was fixed in a > prior version, but I guess not. How would I go about tweaking rancid so > these bits are ignored? add a filter to DirSlotN(). i see that your device is renaming files, causing the fileno to change. I'll add that filter for 3.9. From mikhail.elchin1984 at gmail.com Fri Sep 14 11:23:16 2018 From: mikhail.elchin1984 at gmail.com (Mikhail) Date: Fri, 14 Sep 2018 13:23:16 +0200 Subject: [rancid] asr 920 noisy dir bootflash: Message-ID: Hello. I have a lot of such configuration changes. tracelogs size changes are skipped but it is not, how can i get rid of it? Thank you :) - !Flash: bootflash: 1339412480 bytes total (869 MB free) + !Flash: bootflash: 1339412480 bytes total (868 MB free) - !Flash: bootflash: 1339412480 bytes total (868 MB free) + !Flash: bootflash: 1339412480 bytes total (869 MB free) - !Flash: bootflash: 1339412480 bytes total (869 MB free) + !Flash: bootflash: 1339412480 bytes total (868 MB free) - !Flash: bootflash: 1339412480 bytes total (868 MB free) + !Flash: bootflash: 1339412480 bytes total (869 MB free) Mit freundlichen Gr??en, Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.Ede at birchenallhowden.co.uk Fri Sep 14 12:38:20 2018 From: J.Ede at birchenallhowden.co.uk (Jason Ede) Date: Fri, 14 Sep 2018 12:38:20 +0000 Subject: [rancid] Mikrotik config fetches when run on schedule on when run manually. Message-ID: For one of my mikrotiks I'm seeing this in every fetch when rancid-run is scheduled. missed cmd(s): system package print detail without-paging If I manually run the fetch with rancid-run -r it completes without any errors. I've checked on the mikrotik and nothing looks wrong there at all and indeed it's fine on all other units that have been set up in the same way. If I connect with mtlogin and run the command then the system package info pops up as expected. Any ideas? Cheers, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Sep 14 17:22:20 2018 From: heas at shrubbery.net (heasley) Date: Fri, 14 Sep 2018 17:22:20 +0000 Subject: [rancid] asr 920 noisy dir bootflash: In-Reply-To: References: Message-ID: <20180914172219.GB83061@shrubbery.net> Fri, Sep 14, 2018 at 01:23:16PM +0200, Mikhail: > Hello. I have a lot of such configuration changes. > > tracelogs size changes are skipped but it is not, how can i get rid of it? > > Thank you :) > > > - !Flash: bootflash: 1339412480 bytes total (869 MB free) > + !Flash: bootflash: 1339412480 bytes total (868 MB free) > > - !Flash: bootflash: 1339412480 bytes total (868 MB free) > + !Flash: bootflash: 1339412480 bytes total (869 MB free) > > - !Flash: bootflash: 1339412480 bytes total (869 MB free) > + !Flash: bootflash: 1339412480 bytes total (868 MB free) > > - !Flash: bootflash: 1339412480 bytes total (868 MB free) > + !Flash: bootflash: 1339412480 bytes total (869 MB free) > > > > Mit freundlichen Gr??en, Mikhail. Gr??e, You can can define a new device type that omits collection of flash information (see rancid.types.conf(5)), or try rancid 3.8 or the current alpha which both have been altered to further reduce fluctuation in flash info, or create a new module with a version of DirSlotN() that filters this altogether, or complain to Cisco about leaving debug code in production images. :) I do not recall if the 900 runs XE or XR, but an example from XE: !Flash: bootflash: 7 GB total (83% free) From heas at shrubbery.net Fri Sep 14 17:25:39 2018 From: heas at shrubbery.net (heasley) Date: Fri, 14 Sep 2018 17:25:39 +0000 Subject: [rancid] Mikrotik config fetches when run on schedule on when run manually. In-Reply-To: References: Message-ID: <20180914172539.GC83061@shrubbery.net> Fri, Sep 14, 2018 at 12:38:20PM +0000, Jason Ede: > For one of my mikrotiks I'm seeing this in every fetch when rancid-run is scheduled. > > missed cmd(s): system package print detail without-paging > > If I manually run the fetch with rancid-run -r it completes without any errors. I've checked on the mikrotik and nothing looks wrong there at all and indeed it's fine on all other units that have been set up in the same way. > > If I connect with mtlogin and run the command then the system package info pops up as expected. > > Any ideas? Are you testing as the same user that runs rancid? ie: is it a permissions problem? or, do you have a long prompt on this device that is triggering some silly fancy line handling, like shifting the line instead of wrapping? From J.Ede at birchenallhowden.co.uk Sat Sep 15 19:50:02 2018 From: J.Ede at birchenallhowden.co.uk (Jason Ede) Date: Sat, 15 Sep 2018 19:50:02 +0000 Subject: [rancid] Mikrotik config fetches when run on schedule on when run manually. In-Reply-To: References: Message-ID: <98C70556-EF22-4EE6-9120-9C41598C5991@birchenallhowden.co.uk> Tracked this down. It was an & in the system identity. Removed this and all started working fine. On 14 Sep 2018, at 18:09, Jason Ede > wrote: For one of my mikrotiks I?m seeing this in every fetch when rancid-run is scheduled. missed cmd(s): system package print detail without-paging If I manually run the fetch with rancid-run -r it completes without any errors. I?ve checked on the mikrotik and nothing looks wrong there at all and indeed it?s fine on all other units that have been set up in the same way. If I connect with mtlogin and run the command then the system package info pops up as expected. Any ideas? Cheers, Jason _______________________________________________ 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 emille at abccommunications.com Mon Sep 17 16:46:37 2018 From: emille at abccommunications.com (Emille Blanc) Date: Mon, 17 Sep 2018 09:46:37 -0700 Subject: [rancid] asr 920 noisy dir bootflash: In-Reply-To: <20180914172219.GB83061@shrubbery.net> References: <20180914172219.GB83061@shrubbery.net> Message-ID: <4FBAFC2ECF5D6244BA4A26C1C94A1E270D7739205F@exchange> We encountered this, and in some cases they would tick over the multi-megabyte mark, so the built-in function heasly mentions here didn't eliminate the noise adequately. Our solution was to hack in a function that when an ASR920 is encountered, display the free space in ">500MB free". This still generated a diff if space dropped below 500, which happens occasionally when one of the ASR's maintenance tasks goes haywire. -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley Sent: Friday, September 14, 2018 10:22 AM To: Mikhail Cc: Rancid-discuss at shrubbery.net Subject: Re: [rancid] asr 920 noisy dir bootflash: Fri, Sep 14, 2018 at 01:23:16PM +0200, Mikhail: > Hello. I have a lot of such configuration changes. > > tracelogs size changes are skipped but it is not, how can i get rid of it? > > Thank you :) > > > - !Flash: bootflash: 1339412480 bytes total (869 MB free) > + !Flash: bootflash: 1339412480 bytes total (868 MB free) > > - !Flash: bootflash: 1339412480 bytes total (868 MB free) > + !Flash: bootflash: 1339412480 bytes total (869 MB free) > > - !Flash: bootflash: 1339412480 bytes total (869 MB free) > + !Flash: bootflash: 1339412480 bytes total (868 MB free) > > - !Flash: bootflash: 1339412480 bytes total (868 MB free) > + !Flash: bootflash: 1339412480 bytes total (869 MB free) > > > > Mit freundlichen Gr??en, Mikhail. Gr??e, You can can define a new device type that omits collection of flash information (see rancid.types.conf(5)), or try rancid 3.8 or the current alpha which both have been altered to further reduce fluctuation in flash info, or create a new module with a version of DirSlotN() that filters this altogether, or complain to Cisco about leaving debug code in production images. :) I do not recall if the 900 runs XE or XR, but an example from XE: !Flash: bootflash: 7 GB total (83% free) _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From azheramin at gmail.com Mon Sep 17 18:30:35 2018 From: azheramin at gmail.com (Azher) Date: Mon, 17 Sep 2018 11:30:35 -0700 Subject: [rancid] Arista Power supply timestamps Message-ID: Hello, I am backing up Arista devices using RANCID and works great, version 3.7. Is there a way to ignore the following timestamped lines for power supplies ? Thanks -Azher - !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:54 - !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:49 - !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:50 - !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:53 + !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:51 + !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:46 + !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:48 + !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:50 - !Power Supply 1: PWR-500AC-F 500W Ok 56 days, 14:55:49 - !Power Supply 2: PWR-500AC-F 500W Ok 58 days, 8:59:50 + !Power Supply 1: PWR-500AC-F 500W Ok 57 days, 14:55:47 + !Power Supply 2: PWR-500AC-F 500W Ok 59 days, 8:59:48 From heas at shrubbery.net Mon Sep 17 21:46:40 2018 From: heas at shrubbery.net (heasley) Date: Mon, 17 Sep 2018 21:46:40 +0000 Subject: [rancid] Arista Power supply timestamps In-Reply-To: References: Message-ID: <20180917214640.GM70664@shrubbery.net> Mon, Sep 17, 2018 at 11:30:35AM -0700, Azher: > Hello, > > I am backing up Arista devices using RANCID and works great, version > 3.7. Is there a way to ignore the following timestamped lines for > power supplies ? you'll have to show me the full output of the cli command that produces the input. i suspect that is show env all > Thanks > -Azher > > - !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:54 > > - !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:49 > > - !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:50 > > - !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:53 > > + !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:51 > > + !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:46 > > + !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:48 > > + !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:50 > > > - !Power Supply 1: PWR-500AC-F 500W Ok 56 days, 14:55:49 > > - !Power Supply 2: PWR-500AC-F 500W Ok 58 days, 8:59:50 > > + !Power Supply 1: PWR-500AC-F 500W Ok 57 days, 14:55:47 > > + !Power Supply 2: PWR-500AC-F 500W Ok 59 days, 8:59:48 > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From moogprodigy at gmail.com Sat Sep 22 17:36:56 2018 From: moogprodigy at gmail.com (moog) Date: Sat, 22 Sep 2018 20:36:56 +0300 Subject: [rancid] Quidway S2326 Message-ID: hello, Please help me get the config , Quidway S2326TP-EI , comes to privileged mode -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From asosa at redventures.com Tue Sep 25 19:06:05 2018 From: asosa at redventures.com (Alex Sosa) Date: Tue, 25 Sep 2018 19:06:05 +0000 Subject: [rancid] FW: RANCID stopped backing up some Cisco devices In-Reply-To: <20180925165138.GC70598@shrubbery.net> References: <20180925165138.GC70598@shrubbery.net> Message-ID: rancid 3.1 ! There are currently 5 devices that aren't backed up: Mnfctr model vers Cisco WS-C3650-48PD 03.06.06E Cisco AIR-CT3504-K9 8.5.120.0 Cisco AIR-CT5520-K9 8.5.120.0 Unsure what was changed. RANCID is able to login to these devices. -----Original Message----- From: heasley Sent: Tuesday, September 25, 2018 12:52 PM To: Alex Sosa Cc: rancid at shrubbery.net Subject: Re: RANCID stopped backing up some Cisco devices Tue, Sep 25, 2018 at 11:53:58AM +0000, Alex Sosa: > Hello RANCID folks, > > About 2 months ago our RANCID box stopped backing up one of our switches. After some time we started getting alerts that RANCID had old files for some other Cisco devices. We have logged into the devices successfully using the RANCID account. We're no Linux experts so have not made any config changes to anything of the files. please email the list; rancid-discuss at shrubbery.net when you do, include more information. the version of rancid, the device type of the switches and model, and what you changed before the collection started failing. > Below are some of the alerts we receive: > > > The following routers have not been successfully contacted for more than 24 hours. > -rw-r-----. 1 rancid netadm 47003 Sep 18 08:03 CISCO_DEVICE-xyz > > > > Host > > crpc3-pl-rncd01 > > Service > > RANCID Backup Configs > > Address > > crpc3-pl-rncd01 > > State > > WARNING > > Check Output > > WARNING - Files older than 3 days were found. > /usr/local/rancid/var/CLT-BLD6/configs/xxx > /usr/local/rancid/var/NCLT/configs/xxx > /usr/local/rancid/var/WLC/configs/xxx > /usr/local/rancid/var/WLC/configs/xxx > /usr/local/rancid/var/WLC/configs/xxx > /usr/local/rancid/var/WLC/configs/xxx > > Duration > > 56d 0h 0m 0s > > > > Any idea why this could change from one day to another? > > Thanks for your help! > > > [id:image001.png at 01D21005.3C99D0C0] > Alex Sosa > Associate Network Engineer > 1101 Red Ventures Dr > Fort Mill, SC 29707 > 704-837-7822 > asosa at redventures.com > From sneak147 at gmail.com Wed Sep 26 13:36:26 2018 From: sneak147 at gmail.com (Ilo Lorusso) Date: Wed, 26 Sep 2018 15:36:26 +0200 Subject: [rancid] (no subject) Message-ID: Hi i'm in the process of adding a collection of new routers to the list of devices to be backup up by rancid I have it working perfectly with devices like standard cisco switches routers and some cisco nexus switches.. these routers a running cisco IOS-XE and when I test if clogin works it gets stuck at the password prompt below is the debug output from clogin for one of the devices which is not working and from one that is.. i'm running rancid version 3.7and have configured this new device as follows in the database file. router1-mns-za-jhb-prod-cpe1;cisco;up any idea why its timing out ? IOS-XE clogin debug output ====================== expect: does "the device may only be used for the purposes contemplated in the Service Agreement.\r\r\n***************************************************************************************\r\r\n \r\r\n" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "the device may only be used for the purposes contemplated in the Service Agreement.\r\r\n" expect: continuing expect expect: does "***************************************************************************************\r\r\n \r\r\n" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "***************************************************************************************\r\r\n" expect: continuing expect expect: does " \r\r\n" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=yes expect: set expect_out(0,string) "\r\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) " \r\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no expect: does "\r\n" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=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 "" (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no password: expect: does "password: " (spawn_id exp4) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no "^(.+[:.])1 ((>|#| \(enable\)))"? (No Gate, RE only) gate=yes re=no "^.+(>|#| \(enable\))"? (No Gate, RE only) gate=yes re=no expect: timed out Error: TIMEOUT reached From heas at shrubbery.net Wed Sep 26 16:45:07 2018 From: heas at shrubbery.net (heasley) Date: Wed, 26 Sep 2018 16:45:07 +0000 Subject: [rancid] (no subject) In-Reply-To: References: Message-ID: <20180926164507.GH23110@shrubbery.net> Wed, Sep 26, 2018 at 03:36:26PM +0200, Ilo Lorusso: > Hi > > i'm in the process of adding a collection of new routers to the list > of devices to be backup up by rancid > > I have it working perfectly with devices like standard cisco switches > routers and some cisco nexus switches.. > > these routers a running cisco IOS-XE and when I test if clogin works > it gets stuck at the password prompt > > below is the debug output from clogin for one of the devices which is > not working and from one that is.. > > i'm running rancid version 3.7and have configured this new device as > follows in the database file. > > router1-mns-za-jhb-prod-cpe1;cisco;up > > any idea why its timing out ? > > IOS-XE clogin debug output > ====================== you trimmed too much. but, i suspect you need to read the caveats and following sections of clogin(1). From erikm at buh.org Sat Sep 29 22:19:00 2018 From: erikm at buh.org (Erik Muller) Date: Sat, 29 Sep 2018 15:19:00 -0700 Subject: [rancid] clogin commenting script commands following multiple blanks lines Message-ID: <61b82bfa-07ef-485b-35dc-0b81755c933a@buh.org> So here's an odd thing I just ran across. Running clogin with a script with multiple blank lines has some very unexpected behaviour. It looks like it's turning \n\n into \n;, with the net effect of commenting out any command that follows two blank lines. Reproducible on ubuntu 12.04 and OSX 10.13 with stock 3.8 source. Works as expected in 2.3.8 ubuntu packages. The culprit is definitely in the "# handle escaped ;s in commands, and ;; and ^;" section of clogin (rolling that block back to what was in 2.3.8 fixes it), but trying to grok that in expect language to provide a real fix makes my head hurt, so I'll leave this as a bug report. Examples below. thanks, -e 3.8 output: erikm at status:~/src/rancid-3.8$ cat ~/test1 show ip int br | inc 701 show ip int br | inc 701 erikm at status:~/src/rancid-3.8$ ~/rancidtest/bin/clogin -x ~/test1 csw1.xxx spawn ssh -c aes192-ctr -x -l erikm csw1.xxx ... csw1.xxx#terminal width 132 csw1.xxx#show ip int br | inc 701 Vlan701 10.254.248.1 YES manual up up csw1.xxx# csw1.xxx#;show ip int br | inc 701 csw1.xxx# csw1.xxx#exit Connection to csw1.xxx closed. erikm at status:~/src/rancid-3.8$ cat ~/test2 show ip int br | inc 701 show ip int br | inc 1blanks show ip int br | inc 2blanks show ip int br | inc 3blanks show ip int br | inc 4blanks show ip int br | inc 5blanks erikm at status:~/src/rancid-3.8$ ~/rancidtest/bin/clogin -x ~/test2 csw1.xxx ... csw1.xxx#show ip int br | inc 701 Vlan701 10.254.248.1 YES manual up up csw1.xxx# csw1.xxx#show ip int br | inc 1blanks csw1.xxx# csw1.xxx#;show ip int br | inc 2blanks csw1.xxx# csw1.xxx#; csw1.xxx#show ip int br | inc 3blanks csw1.xxx# csw1.xxx#; csw1.xxx# csw1.xxx#show ip int br | inc 4blanks csw1.xxx# csw1.xxx#; csw1.xxx# csw1.xxx#;show ip int br | inc 5blanks csw1.xxx# csw1.xxx#exit Connection to csw1.xxx closed by remote host. 2.3.8 output: erikm at status:~/src/rancid-3.8$ clogin -x ~/test2 csw1.xxx ... csw1.xxx#show ip int br | inc 701 Vlan701 10.254.248.1 YES manual up up csw1.xxx# csw1.xxx#show ip int br | inc 1blanks csw1.xxx# csw1.xxx# csw1.xxx#show ip int br | inc 2blanks csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx#show ip int br | inc 3blanks csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx#show ip int br | inc 4blanks csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx# csw1.xxx#show ip int br | inc 5blanks csw1.xxx# csw1.xxx#exit Connection to csw1.xxx closed.