From elliot.wilen at aechelon.com Mon Oct 16 17:31:40 2023 From: elliot.wilen at aechelon.com (Elliot Wilen) Date: Mon, 16 Oct 2023 17:31:40 +0000 Subject: [rancid] Aruba instant OS -- dealing with lack of "end" in show configuration Message-ID: HI, all, I've been working on a .pm file for our Aruba Instant AP setup (which I'm defining as arubaos in the types file), using foundry.pm as a starting point, but whenever I run rancid -d -t arubaos , I get "End of run not found", "clean_run is false", and "found_end is false. Eventually after messing with the .raw file I realized the problem was that "show configuration" doesn't put "end" at the end. I realize I could hack this by changing the .pm to always set $found_end to 1, but I wonder if there's a better way. I'll note that for whatever reason, show configuration does end with 6 blank lines, so I might be able to use that. Or, a bit more kludgy, I could look for the last line that actually does print-only problem is, it is something that could theoretically change, although we would never change it in practice. -- Elliot Wilen Enterprise IT Architect Aechelon Technology, Inc. E-Mail: elliot.wilen at aechelon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Oct 16 18:17:54 2023 From: heas at shrubbery.net (heasley) Date: Mon, 16 Oct 2023 18:17:54 +0000 Subject: [rancid] Aruba instant OS -- dealing with lack of "end" in show configuration In-Reply-To: References: Message-ID: Mon, Oct 16, 2023 at 05:31:40PM +0000, Elliot Wilen: > HI, all, > > I've been working on a .pm file for our Aruba Instant AP setup (which I'm defining as arubaos in the types file), using foundry.pm as a starting point, but whenever I run rancid -d -t arubaos , I get "End of run not found", "clean_run is false", and "found_end is false. Eventually after messing with the .raw file I realized the problem was that "show configuration" doesn't put "end" at the end. I realize I could hack this by changing the .pm to always set $found_end to 1, but I wonder if there's a better way. > > I'll note that for whatever reason, show configuration does end with 6 blank lines, so I might be able to use that. Or, a bit more kludgy, I could look for the last line that actually does print-only problem is, it is something that could theoretically change, although we would never change it in practice. Those options seem like things that could easily break w/ new kernels. The reason for this check is to ensure that device actually produces a config. Some devices produce their human-readable config from non-homan readable sources. when they have issues such as memory starvation that prevent that from being produced, they will sometimes silently. So, find a method to determine that it has produced the full config, then set found_end if that check passes. Some just check that no errors were returned and greater than 5 lines of config were received. From jethro.binks at strath.ac.uk Mon Oct 23 10:08:26 2023 From: jethro.binks at strath.ac.uk (Jethro Binks) Date: Mon, 23 Oct 2023 10:08:26 +0000 Subject: [rancid] Aruba instant OS -- dealing with lack of "end" in show configuration In-Reply-To: References: Message-ID: Try: https://github.com/jrbinks/rancid-arubaos (forked from https://github.com/miken32/rancid-aruba). I've never used it on Instant, but I think the OS when running in Instant mode is much the same? Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . 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: Rancid-discuss on behalf of heasley Sent: 16 October 2023 19:17 To: Elliot Wilen Cc: rancid-discuss at www.shrubbery.net Subject: Re: [rancid] Aruba instant OS -- dealing with lack of "end" in show configuration Mon, Oct 16, 2023 at 05:31:40PM +0000, Elliot Wilen: > HI, all, > > I've been working on a .pm file for our Aruba Instant AP setup (which I'm defining as arubaos in the types file), using foundry.pm as a starting point, but whenever I run rancid -d -t arubaos , I get "End of run not found", "clean_run is false", and "found_end is false. Eventually after messing with the .raw file I realized the problem was that "show configuration" doesn't put "end" at the end. I realize I could hack this by changing the .pm to always set $found_end to 1, but I wonder if there's a better way. > > I'll note that for whatever reason, show configuration does end with 6 blank lines, so I might be able to use that. Or, a bit more kludgy, I could look for the last line that actually does print-only problem is, it is something that could theoretically change, although we would never change it in practice. Those options seem like things that could easily break w/ new kernels. The reason for this check is to ensure that device actually produces a config. Some devices produce their human-readable config from non-homan readable sources. when they have issues such as memory starvation that prevent that from being produced, they will sometimes silently. So, find a method to determine that it has produced the full config, then set found_end if that check passes. Some just check that no errors were returned and greater than 5 lines of config were received. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at www.shrubbery.net https://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.oconnor at atos.net Sat Oct 28 15:56:11 2023 From: michael.oconnor at atos.net (Michael O'Connor) Date: Sat, 28 Oct 2023 15:56:11 +0000 Subject: [rancid] Email Body Modifications- restriction avoid sending config data Message-ID: Hello, Is there a way to avoid sending actual configuration data in the email body message, and only send when and what device changed, but not what changed on the device. So for instance below showing the device changed, and shows the revision#, but then strips off the configuration data from the email. So, then once an email is received this would prompt us to goto the viewvc site and choose the specific device, and view the specific configuration that changed. Just trying to avoid send any configuration data via email. [cid:image001.png at 01DA0995.BDC8EE10] ---------------- Then strip the rest of the email message that contains the configuration data. I have attempted this via Postfix with no luck. Postfix I can modify the header information (recipients, senders, subject field etc...), but postfix doesn't allow manipulation of the email body that I know of, at least not very easily. Michael O'Connor Technical Network Architect Atos ITO Network Services, USA Mobile (734) 320-9701 Michael.OConnor at atos.net atos.net [cid:image002.gif at 01DA0995.BDC8EE10] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 12121 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 4923 bytes Desc: image002.gif URL: From guy20034u at yahoo.com Sun Oct 29 05:48:11 2023 From: guy20034u at yahoo.com (simon ben) Date: Sun, 29 Oct 2023 05:48:11 +0000 (UTC) Subject: [rancid] Upgrading Rancid References: <1485292324.194384.1698558491673.ref@mail.yahoo.com> Message-ID: <1485292324.194384.1698558491673@mail.yahoo.com> Dear All,I have been running rancid for quite sometime an excellent toll and I need to upgrade current version is rancid 3.9need to upgrade to 3.13 Appreciate your kind help and advice If any one can share a link explaining? upgrade procedure i really apprecite Upgrade read-me file not very clear Appreciate and Thanks regards simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Mon Oct 30 17:01:02 2023 From: heas at shrubbery.net (heasley) Date: Mon, 30 Oct 2023 17:01:02 +0000 Subject: [rancid] Upgrading Rancid In-Reply-To: <1485292324.194384.1698558491673@mail.yahoo.com> References: <1485292324.194384.1698558491673.ref@mail.yahoo.com> <1485292324.194384.1698558491673@mail.yahoo.com> Message-ID: Sun, Oct 29, 2023 at 05:48:11AM +0000, simon ben: > Dear All,I have been running rancid for quite sometime an excellent toll and I need to upgrade > current version is rancid 3.9need to upgrade to 3.13 > Appreciate your kind help and advice > If any one can share a link explaining? upgrade procedure i really apprecite > > Upgrade read-me file not very clear > Appreciate and Thanks If you use the same arguments to configure as used for 3.9 (or your package system has), then the new can just be installed over the old. Review the CHANGES file for changes to rancid.conf (and are labeled as rancid.conf changes), which will not be overwritten or merged by the install process. LMK if you identify specfic confusion about the upgrading document. At a glance, I do see that it needs some improvement and expunging of really old version information. Prost From guy20034u at yahoo.com Tue Oct 31 05:36:11 2023 From: guy20034u at yahoo.com (simon ben) Date: Tue, 31 Oct 2023 05:36:11 +0000 (UTC) Subject: [rancid] Upgrading Rancid In-Reply-To: References: <1485292324.194384.1698558491673.ref@mail.yahoo.com> <1485292324.194384.1698558491673@mail.yahoo.com> Message-ID: <811357673.617471.1698730571450@mail.yahoo.com> Dear Heasly,Thank you and really appreciate your quick reply. Thanks and regards Simon On Monday, October 30, 2023 at 08:02:05 PM GMT+3, heasley wrote: Sun, Oct 29, 2023 at 05:48:11AM +0000, simon ben: > Dear All,I have been running rancid for quite sometime an excellent toll and I need to upgrade > current version is rancid 3.9need to upgrade to 3.13 > Appreciate your kind help and advice > If any one can share a link explaining? upgrade procedure i really apprecite > > Upgrade read-me file not very clear > Appreciate and Thanks If you use the same arguments to configure as used for 3.9 (or your package system has), then the new can just be installed over the old. Review the CHANGES file for changes to rancid.conf (and are labeled as rancid.conf changes), which will not be overwritten or merged by the install process. LMK if you identify specfic confusion about the upgrading document.? At a glance, I do see that it needs some improvement and expunging of really old version information. Prost -------------- next part -------------- An HTML attachment was scrubbed... URL: From guy20034u at yahoo.com Tue Oct 31 08:41:39 2023 From: guy20034u at yahoo.com (simon ben) Date: Tue, 31 Oct 2023 08:41:39 +0000 (UTC) Subject: [rancid] Upgrading Rancid In-Reply-To: References: <1485292324.194384.1698558491673.ref@mail.yahoo.com> <1485292324.194384.1698558491673@mail.yahoo.com> Message-ID: <468563500.633835.1698741699157@mail.yahoo.com> Dear All, I did the following to upgrade rancid from rancid 3.9 to 3.13 downloaded the new tar file and unzip in /home/rancid/tar/rancid-3.13 and i try to run configure it gives me the below error ./configure --prefix=/usr/local/rancid ./configure: line 1912: config.log: Permission denied ./configure: line 1922: config.log: Permission denied the permissions for the directory is as belowdrwxr-xr-x 8?? 7053 wheel??? 4096 Aug 23? 2021 rancid-3.13 Appreciate? any advice and help wondering where is the permission issue Thanks and Regards Simon ? On Monday, October 30, 2023 at 08:02:05 PM GMT+3, heasley wrote: Sun, Oct 29, 2023 at 05:48:11AM +0000, simon ben: > Dear All,I have been running rancid for quite sometime an excellent toll and I need to upgrade > current version is rancid 3.9need to upgrade to 3.13 > Appreciate your kind help and advice > If any one can share a link explaining? upgrade procedure i really apprecite > > Upgrade read-me file not very clear > Appreciate and Thanks If you use the same arguments to configure as used for 3.9 (or your package system has), then the new can just be installed over the old. Review the CHANGES file for changes to rancid.conf (and are labeled as rancid.conf changes), which will not be overwritten or merged by the install process. LMK if you identify specfic confusion about the upgrading document.? At a glance, I do see that it needs some improvement and expunging of really old version information. Prost -------------- next part -------------- An HTML attachment was scrubbed... URL: From cra at fea.st Tue Oct 31 10:45:23 2023 From: cra at fea.st (Chuck Anderson) Date: Tue, 31 Oct 2023 06:45:23 -0400 Subject: [rancid] Upgrading Rancid In-Reply-To: <468563500.633835.1698741699157@mail.yahoo.com> References: <1485292324.194384.1698558491673.ref@mail.yahoo.com> <1485292324.194384.1698558491673@mail.yahoo.com> <468563500.633835.1698741699157@mail.yahoo.com> Message-ID: What operating system are you running? Some of them come with rancid pre-packaged and you can just install it. If your existing install is located in /usr/local, the package will generally not overwrite it. If you have existing /etc/rancid* files, you should save them first before installing the package, just in case. Debian/Ubuntu: apt install rancid Fedora/EPEL (RHEL, CentOS, Rocky, etc.): dnf install rancid Others: https://repology.org/project/rancid/versions On Tue, Oct 31, 2023 at 08:41:39AM +0000, simon ben wrote: > Dear All, > I did the following to upgrade rancid from rancid 3.9 to 3.13 > downloaded the new tar file and unzip in /home/rancid/tar/rancid-3.13 and i try to run configure it gives me the below error > ./configure --prefix=/usr/local/rancid > ./configure: line 1912: config.log: Permission denied > ./configure: line 1922: config.log: Permission denied > the permissions for the directory is as belowdrwxr-xr-x 8?? 7053 wheel??? 4096 Aug 23? 2021 rancid-3.13 > Appreciate? any advice and help > wondering where is the permission issue > > Thanks and Regards > Simon > > ? > > > On Monday, October 30, 2023 at 08:02:05 PM GMT+3, heasley wrote: > > Sun, Oct 29, 2023 at 05:48:11AM +0000, simon ben: > > Dear All,I have been running rancid for quite sometime an excellent toll and I need to upgrade > > current version is rancid 3.9need to upgrade to 3.13 > > Appreciate your kind help and advice > > If any one can share a link explaining? upgrade procedure i really apprecite > > > > Upgrade read-me file not very clear > > Appreciate and Thanks