From heas at shrubbery.net Thu Feb 1 00:33:29 2024 From: heas at shrubbery.net (heasley) Date: Thu, 1 Feb 2024 00:33:29 +0000 Subject: [rancid] Harddisk on IOX-XR In-Reply-To: References: Message-ID: Tue, Jan 30, 2024 at 06:45:34AM +0000, Pan Affa: > I have modified diskszsummary function in the rancid.pm as the following: > > sub diskszsummary { > ? > if ($pcnt > 10) { > $pcnt = int($pcnt / 5) * 5; > } > ? > > from Affa Pan > > Pan Affa ? 2024?1?30? ??8:03 ??? > > ?Hi Hensley, > > I have some suggestions about disk summary. > > 1. Is it possible to disable or enable in rancid.conf? > 2. Oscillation can use the base 5% > For example, 95~99% shows 95%, 90~94% shows 90% Pan/Daniel, I'd thought of a couple of options to reduce the noise from this status line: 1) add a knob to omit the usage; just report the capacity 2) a knob to set a % threshold remaining, then only report usage when it falls below that threshold. 3) only report usage in on a margin (eg: 5%), like Pan has suggested. 4) Option 1 + one of options 2 or 3. Opinions? > from Affa Pan > > heasley ? 2024?1?30? ??7:18 ??? > > ?Wed, Jan 17, 2024 at 01:46:44PM -0600, Daniel Schmidt: > This one's driving me nuts. > > -!Flash: harddisk: 22 GB total (93% free) > +!Flash: harddisk: 22 GB total (94% free) > ! > !0/RP0-IDPROM - ASR 9900 Fixed Chassis Route Processor > > Slight modification somewhere in here? > > you mean that it is oscillating between 93/94%? > > # XR: 822083584 bytes total (821081600 bytes free) > # eXR: 990484 kbytes total (813208 kbytes free) > if (/^\s*(\d+ k?bytes) total\s+\((\d+ k?bytes) free\)/i) { > ProcessHistory("FLASH","","","!Flash: $dev: " . > diskszsummary($1, $2) . "\n"); > next; > } > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss From daniel.schmidt at wyo.gov Thu Feb 1 02:14:37 2024 From: daniel.schmidt at wyo.gov (Daniel Schmidt) Date: Wed, 31 Jan 2024 20:14:37 -0600 Subject: [rancid] Harddisk on IOX-XR In-Reply-To: References: Message-ID: I am not picky, I will take any solution offered On Wed, Jan 31, 2024 at 6:33?PM heasley wrote: > Tue, Jan 30, 2024 at 06:45:34AM +0000, Pan Affa: > > I have modified diskszsummary function in the rancid.pm as the > following: > > > > sub diskszsummary { > > ? > > if ($pcnt > 10) { > > $pcnt = int($pcnt / 5) * 5; > > } > > ? > > > > from Affa Pan > > > > Pan Affa ? 2024?1?30? ??8:03 ??? > > > > ?Hi Hensley, > > > > I have some suggestions about disk summary. > > > > 1. Is it possible to disable or enable in rancid.conf? > > 2. Oscillation can use the base 5% > > For example, 95~99% shows 95%, 90~94% shows 90% > > Pan/Daniel, > > I'd thought of a couple of options to reduce the noise from this status > line: > 1) add a knob to omit the usage; just report the capacity > 2) a knob to set a % threshold remaining, then only report usage when it > falls below that threshold. > 3) only report usage in on a margin (eg: 5%), like Pan has suggested. > 4) Option 1 + one of options 2 or 3. > > Opinions? > > > from Affa Pan > > > > heasley ? 2024?1?30? ??7:18 ??? > > > > ?Wed, Jan 17, 2024 at 01:46:44PM -0600, Daniel Schmidt: > > This one's driving me nuts. > > > > -!Flash: harddisk: 22 GB total (93% free) > > +!Flash: harddisk: 22 GB total (94% free) > > ! > > !0/RP0-IDPROM - ASR 9900 Fixed Chassis Route Processor > > > > Slight modification somewhere in here? > > > > you mean that it is oscillating between 93/94%? > > > > # XR: 822083584 bytes total (821081600 bytes free) > > # eXR: 990484 kbytes total (813208 kbytes free) > > if (/^\s*(\d+ k?bytes) total\s+\((\d+ k?bytes) free\)/i) { > > ProcessHistory("FLASH","","","!Flash: $dev: " . > > diskszsummary($1, $2) . "\n"); > > next; > > } > > > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss at www.shrubbery.net > > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Wyoming Department of Enterprise Technology Services Emerson Building, 2001 Capitol Avenue, Cheyenne, WY 82001 Daniel Schmidt Network Engineer 307-509-0286 daniel.schmidt at wyo.gov ets.wyo.gov I?m in Cheyenne -- 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 affa_pan at hotmail.com Thu Feb 1 02:18:46 2024 From: affa_pan at hotmail.com (Pan Affa) Date: Thu, 1 Feb 2024 02:18:46 +0000 Subject: [rancid] Harddisk on IOX-XR In-Reply-To: References: Message-ID: How about option 1 and the following: >> sub diskszsummary { >> ? >> if ($pcnt > threshold) { >> $pcnt = int($pcnt / margin) * margin; >> } >> ? > heasley ? 2024?2?1? ??8:33 ??? > >> sub diskszsummary { >> ? >> if ($pcnt > 10) { >> $pcnt = int($pcnt / 5) * 5; >> } >> ? From affa_pan at hotmail.com Thu Feb 1 02:28:11 2024 From: affa_pan at hotmail.com (Pan Affa) Date: Thu, 1 Feb 2024 02:28:11 +0000 Subject: [rancid] Jon Lewis / FILTER_PWDS formatting issue Message-ID: I have same problem. You can modified lib/rancid/junos.pm as like the following: AT LINE 676: #if (/^(\s+(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;]+/ && $filter_pwds >= 1) { if (/^(.*(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;]+/ && $filter_pwds >= 1) { #modify by affa at 20201119 ProcessHistory("","","","#$1$'\n"); #modify by affa at 20201119 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlewis at lewis.org Thu Feb 1 15:55:49 2024 From: jlewis at lewis.org (Jon Lewis) Date: Thu, 1 Feb 2024 10:55:49 -0500 (EST) Subject: [rancid] Jon Lewis / FILTER_PWDS formatting issue In-Reply-To: References: Message-ID: On Thu, 1 Feb 2024, Pan Affa wrote: > I have same problem. ?You can modified lib/rancid/junos.pm as like the following: > > AT LINE 676: > > ??????? #if (/^(\s+(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;]+/ && $filter_pwds >= 1) { > > ??????? if (/^(.*(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;]+/ && $filter_pwds >= 1) { #modify by affa at 20201119 > > ??????????? ProcessHistory("","","","#$1$'\n"); #modify by affa at 20201119 Thanks for the response. I tried what you suggested, and found it solves the problem for "junos set" format configs, but it introduces an extra newline after each in junos formatted configs. What I ended up doing, that appears to work for me for either junos formatted or "junos set" format is: --- junos.pm.orig 2020-10-15 11:26:17.000000000 -0400 +++ junos.pm 2024-02-01 10:47:44.020716410 -0500 @@ -644,7 +644,7 @@ $_ = "$1$2 \"\"$3\n"; } } - if (/(\s*authentication-key )[^ ;]+/ && $filter_pwds >= 1) { + if (/(.*authentication-key )[^ ;\n]+/ && $filter_pwds >= 1) { ProcessHistory("","","","#$1$'"); next; } @@ -661,7 +661,7 @@ ProcessHistory("","","","$_"); next; } - if (/^(.*\s(secret|simple-password) )[^ ;]+/ && $filter_pwds >= 1) { + if (/^(.*\s(secret|simple-password|privacy-key) )[^ ;\n]+/ && $filter_pwds >= 1) { ProcessHistory("","","","#$1$'"); next; } @@ -673,7 +673,7 @@ ProcessHistory("","","","#$1;\n"); next; } - if (/^(\s+(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;]+/ && $filter_pwds >= 1) { + if (/^(.*(pre-shared-|)key (ascii-text|hexadecimal) )[^ ;\n]+/ && $filter_pwds >= 1) { ProcessHistory("","","","#$1$'"); next; } In the middle one, I added "|privacy-key" to the regex to also handle snmpv3 privacy-keys. ---------------------------------------------------------------------- Jon Lewis, MCP :) | I route Blue Stream Fiber, Sr. Neteng | therefore you are _________ http://www.lewis.org/~jlewis/pgp for PGP public key_________ From cboyd at gizmopartners.com Tue Feb 20 16:44:09 2024 From: cboyd at gizmopartners.com (Chris Boyd) Date: Tue, 20 Feb 2024 10:44:09 -0600 Subject: [rancid] CVS web viewer? Message-ID: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using ViewVC to look at config versions and diffs, but that?s no longer an option on RHEL 9 due to lack of python 2 support. What do y?all on the list like for viewing the CVS data in a web browser? From ye.xiong at concordia.ca Tue Feb 20 17:08:21 2024 From: ye.xiong at concordia.ca (Ye Xiong) Date: Tue, 20 Feb 2024 17:08:21 +0000 Subject: [rancid] CVS web viewer? In-Reply-To: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: Hi Chris, I use cvsweb and it works fine. Thanks, Ye -----Original Message----- From: Rancid-discuss On Behalf Of Chris Boyd Sent: Tuesday, February 20, 2024 11:44 AM To: rancid-discuss at shrubbery.net Subject: [rancid] CVS web viewer? Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'ext?rieur du domaine de concordia.ca I'm working on moving my rancid from Centos 7 to RHEL 9. I've been using ViewVC to look at config versions and diffs, but that's no longer an option on RHEL 9 due to lack of python 2 support. What do y'all on the list like for viewing the CVS data in a web browser? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at http://www.shrubbery.net/ https://www.shrubbery.net/mailman/listinfo/rancid-discuss From cra at fea.st Tue Feb 20 23:09:35 2024 From: cra at fea.st (Chuck Anderson) Date: Tue, 20 Feb 2024 18:09:35 -0500 Subject: [rancid] CVS web viewer? In-Reply-To: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: I recommend switching from CVS to GIT. You'll likely have more options for a web viewer with GIT rather than CVS. I sync the GIT repo with GitLab. On Tue, Feb 20, 2024 at 10:44:09AM -0600, Chris Boyd wrote: > I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using ViewVC to look at config versions and diffs, but that?s no longer an option on RHEL 9 due to lack of python 2 support. What do y?all on the list like for viewing the CVS data in a web browser? From arla at rn.dk Wed Feb 21 05:54:54 2024 From: arla at rn.dk (Arne Larsen) Date: Wed, 21 Feb 2024 05:54:54 +0000 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: I'm looking into the same problem as Chris. Do you have a howto that you would share. Regards /Arne -----Original Message----- From: Rancid-discuss On Behalf Of Chuck Anderson Sent: Wednesday, 21 February 2024 00.10 To: Chris Boyd Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] CVS web viewer? I recommend switching from CVS to GIT. You'll likely have more options for a web viewer with GIT rather than CVS. I sync the GIT repo with GitLab. On Tue, Feb 20, 2024 at 10:44:09AM -0600, Chris Boyd wrote: > I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using ViewVC to look at config versions and diffs, but that?s no longer an option on RHEL 9 due to lack of python 2 support. What do y?all on the list like for viewing the CVS data in a web browser? _______________________________________________ Rancid-discuss mailing list Rancid-discuss at http://www.shrubbery.net/ https://www.shrubbery.net/mailman/listinfo/rancid-discuss Her kan du l?se om dine rettigheder, n?r regionen behandler oplysninger om dig From cboyd at gizmopartners.com Wed Feb 21 15:28:08 2024 From: cboyd at gizmopartners.com (Chris Boyd) Date: Wed, 21 Feb 2024 09:28:08 -0600 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: <1E7DCCB3-50B2-4FE2-9E69-F2CB05A65F17@gizmopartners.com> I need to check the release notes more carefully. Looks like git is reasonably easy to set up according to https://cryptomonkeys.com/2016/11/rancid-git/ cvsweb works, but does not look as good as viewVC was. Thanks for the pointer about git, Chuck. > On Feb 20, 2024, at 11:54 PM, Arne Larsen wrote: > > I'm looking into the same problem as Chris. > Do you have a howto that you would share. > > Regards /Arne > > -----Original Message----- > From: Rancid-discuss On Behalf Of Chuck Anderson > Sent: Wednesday, 21 February 2024 00.10 > To: Chris Boyd > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] CVS web viewer? > > I recommend switching from CVS to GIT. You'll likely have more options for a web viewer with GIT rather than CVS. I sync the GIT repo with GitLab. > > On Tue, Feb 20, 2024 at 10:44:09AM -0600, Chris Boyd wrote: >> I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using ViewVC to look at config versions and diffs, but that?s no longer an option on RHEL 9 due to lack of python 2 support. What do y?all on the list like for viewing the CVS data in a web browser? > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at http://www.shrubbery.net/ > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > > Her kan du l?se om dine rettigheder, n?r regionen behandler oplysninger om dig > From durrani.anwar at gmail.com Wed Feb 21 16:26:31 2024 From: durrani.anwar at gmail.com (Anwar Durrani) Date: Wed, 21 Feb 2024 21:56:31 +0530 Subject: [rancid] CVS web viewer? In-Reply-To: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: I use websvn, it works nicely. On Tue, 20 Feb 2024 at 22:14, Chris Boyd wrote: > I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using > ViewVC to look at config versions and diffs, but that?s no longer an option > on RHEL 9 due to lack of python 2 support. What do y?all on the list like > for viewing the CVS data in a web browser? > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Thanks & regards, Anwar M. Durrani +91-9923205011 -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_zouhairy at skno.by Wed Feb 21 16:47:22 2024 From: m_zouhairy at skno.by (vacheslav) Date: Wed, 21 Feb 2024 19:47:22 +0300 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: <996d67f4-5791-4aaf-8d79-bd8f47497b1b@skno.by> svn was nice but got removed from gentoo 21.02.24 19:26, Anwar Durrani ?????: > I use websvn, it works nicely. > > On Tue, 20 Feb 2024 at 22:14, Chris Boyd wrote: > > I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been > using ViewVC to look at config versions and diffs, but that?s no > longer an option on RHEL 9 due to lack of python 2 support. What > do y?all on the list like for viewing the CVS data in a web browser? > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > -- > Thanks & regards, > Anwar M. Durrani > +91-9923205011 > > > > > > _______________________________________________ > 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 Anson.Maddock at gmx.com Wed Feb 21 23:48:40 2024 From: Anson.Maddock at gmx.com (Anson Maddock) Date: Wed, 21 Feb 2024 18:48:40 -0500 Subject: [rancid] CVS web viewer? In-Reply-To: <996d67f4-5791-4aaf-8d79-bd8f47497b1b@skno.by> References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> <996d67f4-5791-4aaf-8d79-bd8f47497b1b@skno.by> Message-ID: ViewVC 1.3 (bleeding-edge) has support for python 3 if you would like to continue using it. In the 10+ years I've been using Rancid I've used CVS, SVN, and GIT. If you have the time, I would migrate to using GIT. We've used GITLIST and GITLAB for displaying changes. This also allows you to have a local set of the backups on a laptop with little to no effort and they are updated automatically. You can also commit updates to the router.db this way as well. On 2024-02-21 11:47, vacheslav wrote: > > svn was nice but got removed from gentoo > > 21.02.24 19:26, Anwar Durrani ?????: >> I use websvn, it works nicely. >> >> On Tue, 20 Feb 2024 at 22:14, Chris Boyd wrote: >> >> I?m working on moving my rancid from Centos 7 to RHEL 9. I?ve been using ViewVC to look at config versions and diffs, but that?s no longer an option on RHEL 9 due to lack of python 2 support. What do y?all on the list like for viewing the CVS data in a web browser? >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at www.shrubbery.net >> https://www.shrubbery.net/mailman/listinfo/rancid-discuss >> >> >> >> -- >> Thanks & regards, >> Anwar M. Durrani >> +91-9923205011 >> >> >> >> >> >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at www.shrubbery.net >> https://www.shrubbery.net/mailman/listinfo/rancid-discuss > > _______________________________________________ > 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 mesrik+rancid at jyu.fi Thu Feb 22 09:21:14 2024 From: mesrik+rancid at jyu.fi (Riku Meskanen) Date: Thu, 22 Feb 2024 11:21:14 +0200 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> <996d67f4-5791-4aaf-8d79-bd8f47497b1b@skno.by> Message-ID: <644BE24D-ABB8-4A72-A42E-753DAB5B206A@jyu.fi> Hello, > On 22 Feb 2024, at 01:48, Anson Maddock wrote: > > ViewVC 1.3 (bleeding-edge) has support for python 3 if you would like to continue using it. > In the 10+ years I've been using Rancid I've used CVS, SVN, and GIT. If you have the time, I would migrate to using GIT. We've used GITLIST and GITLAB for displaying changes. This also allows you to have a local set of the backups on a laptop with little to no effort and they are updated automatically. You can also commit updates to the router.db this way as well. Those are really good points for GIT & gitlab, but I've got one gripe with GIT web-frontends. That is with comparing any two random commits tend to be quite hard with them or with some appears not even been implemented at all. And I've tried cgit, gitweb, gitlab and in past even gitorius and all have same issue which made me switch back to CVS. I don't have clue why, but could be that devs don't use or need that feature that often. It's implementation is therefore been overlooked and development resources used something else. I've used git quite long time for anything else and for me comparing two commits is no brainer, but those who do not write code and are less convenient with using git with plain cli find comparing more challenging and when I asked which was preferred CVS with cvsweb was clear winner. We have quite long history with rancid, since 2004 and it's mostly been working fine -- just some perl & tcl/expect local hacks been done over years and ported forward, but not regarding cvsweb. I don't exactly recall any more why cvsweb was then chosen, possibly it was first we tried and setup was easy, did what was needed and nobody gave second thought for a long time -- before GIT became hip new tool. As git became more popular I tested git with varying results described above and went back to cvsweb and since it's been working without problems ever since I've just continued to keeping it chugging. It's been run now on latest debian (12.5) had no issues with updates from 9.x and before that it was on RedHat distros. Coming summer will become 20 years using rancid & cvsweb :) OK, that was perhaps way too long rant, but my point is if you don't need casual network engineers on their own and without willingness to use git cli to compare random commits, then I would prefer git. But if you need to get comparing those random commits for less cli experienced users check that the web front end is useable for those who need it and if not that cvsweb might be easiest solution however it's appearance isn't quite up to date what some people might expect. Cheers, :-) riku -- Riku Meskanen University of Jyv?skyl? Digital services email: riku.h.meskanen at jyu.fi From cboyd at gizmopartners.com Thu Feb 22 14:27:35 2024 From: cboyd at gizmopartners.com (Chris Boyd) Date: Thu, 22 Feb 2024 08:27:35 -0600 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> Message-ID: > On Feb 21, 2024, at 10:26 AM, Anwar Durrani wrote: > > I use websvn, it works nicely. Cool, taking a look at it. From cboyd at gizmopartners.com Thu Feb 22 14:35:18 2024 From: cboyd at gizmopartners.com (Chris Boyd) Date: Thu, 22 Feb 2024 08:35:18 -0600 Subject: [rancid] CVS web viewer? In-Reply-To: References: <6BF62C3C-BD0D-4819-B3B1-94AA2ADFA192@gizmopartners.com> <996d67f4-5791-4aaf-8d79-bd8f47497b1b@skno.by> Message-ID: <7F48B363-CED4-455F-B221-0A4EED354ECD@gizmopartners.com> > On Feb 21, 2024, at 5:48 PM, Anson Maddock wrote: > > ViewVC 1.3 (bleeding-edge) has support for python 3 if you would like to continue using it. > > In the 10+ years I've been using Rancid I've used CVS, SVN, and GIT. If you have the time, I would migrate to using GIT. We've used GITLIST and GITLAB for displaying changes. This also allows you to have a local set of the backups on a laptop with little to no effort and they are updated automatically. You can also commit updates to the router.db this way as well. At the end of the day, I just need to get the configs backed up and have a nice way to view them and diff them, Got a lot of options, so I think I?ll pick the web interface I like best, and then use the back end version control system that fits it best. Thanks for all the suggestions.