Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

Alteon switch "esecret" problem again - rancid 2.3.6

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


krzysztof.zygmunt at gmail

Apr 14, 2011, 7:21 AM

Post #1 of 7 (639 views)
Permalink
Alteon switch "esecret" problem again - rancid 2.3.6

Hi,

I've upgraded to rancid-2.3.6 and I keep receiving emails about esecret diff.

like this:
-       esecret
"8e4a202204422022b737e3e3c7f283d05c550d6485fae919c45f3d06aaadbb9e07f7eadf1bc47289183122d1ba97f409179e69e97582d1fafcf5a1cd46ac955d"
-       esecret2
"b1b81fd001800a80b2f5f6b3c230a972d12f64f229662f4e547d78cc0ccfe6b05cab18962298598742a2302fb68292680f5560bf5bcee495a1d81e9d185677e6"
+       esecret
"f4e7475010040200beaea6b3d3b4a1f232aca42b8d26badc89fb80ab8260eee88650d83ada1ac55d02089d6af4b61ee04205c57496882c97c6ac871f3f88d9fc"
+       esecret2
"f7db446c10180028beb2a7a7d3a8a3daadc08120b67c930c9e0046e241b132092d457b120721606b8292176a34ad5dc76414bfd6b23966b865bca343686f59cb"


I've found two solutions on the internet but they don't work for me.

neither this:
http://www.gossamer-threads.com/lists/rancid/users/4690
nor that:
http://www.shrubbery.net/rancid/search.cgi?config=htdig&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=esecret+alteon


I can see a few changes between ver. 2.3.2a6 (work well) and 2.3.6
(keep sending esecret diff msgs), but I'm not skilled enough to repair this.


diff /usr/bin/arancid(2.3.6) /home/rancid/bin/arancid(2.3.2a6)
3c3
< ## $Id: arancid.in 2246 2010-09-08 01:36:07Z heas $
---
> ## $Id: arancid.in,v 1.22 2006/10/05 04:27:42 heas Exp $
5,6c5,10
< ## rancid 2.3.6
< ## Copyright (c) 1997-2008 by Terrapin Communications, Inc.
---
> ## rancid 2.3.2a6
> ## Hacked version of rancid for Alteon WebOS switches
> ## tested with: ad3 v8.1.18
> ## afort [at] choqolat (andrew fort)
> ##
> ## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
9,11c13,21
< ## This code is derived from software contributed to and maintained by
< ## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan,
< ## Pete Whiting, Austin Schutz, and Andrew Fort.
---
> ## This software may be freely copied, modified and redistributed
> ## without fee for non-commerical purposes provided that this license
> ## remains intact and unmodified with any RANCID distribution.
> ##
> ## There is no warranty or other guarantee of fitness of this software.
> ## It is provided solely "as is".  The author(s) disclaim(s) all
> ## responsibility and liability with respect to this software's usage
> ## or its effect upon hardware, computer systems, other software, or
> ## anything else.
13,29c23,24
< ## Redistribution and use in source and binary forms, with or without
< ## modification, are permitted provided that the following conditions
< ## are met:
< ## 1. Redistributions of source code must retain the above copyright
< ##    notice, this list of conditions and the following disclaimer.
< ## 2. Redistributions in binary form must reproduce the above copyright
< ##    notice, this list of conditions and the following disclaimer in the
< ##    documentation and/or other materials provided with the distribution.
< ## 3. All advertising materials mentioning features or use of this software
< ##    must display the following acknowledgement:
< ##        This product includes software developed by Terrapin Communications,
< ##        Inc. and its contributors for RANCID.
< ## 4. Neither the name of Terrapin Communications, Inc. nor the names of its
< ##    contributors may be used to endorse or promote products derived from
< ##    this software without specific prior written permission.
< ## 5. It is requested that non-binding fixes and modifications be contributed
< ##    back to Terrapin Communications, Inc.
---
> ## Except where noted otherwise, rancid was written by and is maintained by
> ## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin Schutz.
31,41d25
< ## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS
< ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
< ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
< ## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
< ## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
< ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
< ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
< ## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
< ## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
< ## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
< ## POSSIBILITY OF SUCH DAMAGE.
52c36
<     print "rancid 2.3.6\n";
---
>     print "rancid 2.3.2a6\n";
65,67c49
< my($aclsort) = ("ipsort");            # ACL sorting mode
< my($filter_commstr);                  # SNMP community string filtering
< my($filter_pwds);                     # password filtering mode
---
> my(%filter_pwds);                     # password filtering mode
73c55
<       && scalar(%history)) {
---
>       && defined %history) {
181,182c163
<         ProcessHistory("COMMENTS","keysort","B1",
<                        "\/\*Image: Software: $1 ($2)\n") && next;
---
>         ProcessHistory("COMMENTS","keysort","B1", "\/\*Image: Software: $1 ($2)\n") && next;
184,185c165
<         ProcessHistory("COMMENTS","keysort","A2",
<                        "\/\*Hardware part no: $1\n") && next;
---
>         ProcessHistory("COMMENTS","keysort","A2", "\/\*Hardware part no: $1\n") && next;
187,188c167
<         ProcessHistory("COMMENTS","keysort","C1",
<                        "\/\*Base MAC address: $1\n") && next;
---
>         ProcessHistory("COMMENTS","keysort","C1", "\/\*Base MAC address: $1\n") && next;
205c184,185
<       if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ && $filter_commstr) {
---
>       if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ &&
>               defined($ENV{'NOCOMMSTR'})) {
208c188
<       /^(\s+(.{1,3}pw|pswd) )\S+/ &&
---
>       /^(\s+.{2,3}pw )\S+/ &&
209a190,191
>
>       next if (/esecret/);
213,217c195,199
<       if (/^\/?script end/) {
<           $found_end = 1;
<           ProcessHistory("","","","$_\n");
<           return(1);
<       }
---
>               if (/^\/?script end/) {
>               $found_end = 1;
>               ProcessHistory("","","","$_\n");
>               return(1);
>               }
237,238c219,220
< $cisco_cmds = join(";",@commands);
< $cmds_regexp = join("|", map quotemeta($_), @commands);
---
> $cisco_cmds=join(";",@commands);
> $cmds_regexp=join("|",@commands);
269,287d250
< # determine ACL sorting mode
< if ($ENV{"ACLSORT"} =~ /no/i) {
<     $aclsort = "";
< }
< # determine community string filtering mode
< if (defined($ENV{"NOCOMMSTR"}) &&
<     ($ENV{"NOCOMMSTR"} =~ /yes/i || $ENV{"NOCOMMSTR"} =~ /^$/)) {
<     $filter_commstr = 1;
< } else {
<     $filter_commstr = 0;
< }
< # determine password filtering mode
< if ($ENV{"FILTER_PWDS"} =~ /no/i) {
<     $filter_pwds = 0;
< } elsif ($ENV{"FILTER_PWDS"} =~ /all/i) {
<     $filter_pwds = 2;
< } else {
<     $filter_pwds = 1;
< }
294c257
<       $clean_run = 1;
---
>       $clean_run=1;



I appreciate any help.

Kind Regards,
Krzysztof Zygmunt
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


ler762 at gmail

Apr 14, 2011, 10:11 AM

Post #2 of 7 (590 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

probably this:

209a190,191
>
> next if (/esecret/);

is ignoring any lines that have the string "esecret". I'd try adding
that line to the 2.3.6 source code.

Regards,
Lee


On 4/14/11, Krzysztof Zygmunt <krzysztof.zygmunt [at] gmail> wrote:
> Hi,
>
> I've upgraded to rancid-2.3.6 and I keep receiving emails about esecret
> diff.
>
> like this:
> - esecret
> "8e4a202204422022b737e3e3c7f283d05c550d6485fae919c45f3d06aaadbb9e07f7eadf1bc47289183122d1ba97f409179e69e97582d1fafcf5a1cd46ac955d"
> - esecret2
> "b1b81fd001800a80b2f5f6b3c230a972d12f64f229662f4e547d78cc0ccfe6b05cab18962298598742a2302fb68292680f5560bf5bcee495a1d81e9d185677e6"
> + esecret
> "f4e7475010040200beaea6b3d3b4a1f232aca42b8d26badc89fb80ab8260eee88650d83ada1ac55d02089d6af4b61ee04205c57496882c97c6ac871f3f88d9fc"
> + esecret2
> "f7db446c10180028beb2a7a7d3a8a3daadc08120b67c930c9e0046e241b132092d457b120721606b8292176a34ad5dc76414bfd6b23966b865bca343686f59cb"
>
>
> I've found two solutions on the internet but they don't work for me.
>
> neither this:
> http://www.gossamer-threads.com/lists/rancid/users/4690
> nor that:
> http://www.shrubbery.net/rancid/search.cgi?config=htdig&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=esecret+alteon
>
>
> I can see a few changes between ver. 2.3.2a6 (work well) and 2.3.6
> (keep sending esecret diff msgs), but I'm not skilled enough to repair
> this.
>
>
> diff /usr/bin/arancid(2.3.6) /home/rancid/bin/arancid(2.3.2a6)
> 3c3
> < ## $Id: arancid.in 2246 2010-09-08 01:36:07Z heas $
> ---
>> ## $Id: arancid.in,v 1.22 2006/10/05 04:27:42 heas Exp $
> 5,6c5,10
> < ## rancid 2.3.6
> < ## Copyright (c) 1997-2008 by Terrapin Communications, Inc.
> ---
>> ## rancid 2.3.2a6
>> ## Hacked version of rancid for Alteon WebOS switches
>> ## tested with: ad3 v8.1.18
>> ## afort [at] choqolat (andrew fort)
>> ##
>> ## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
> 9,11c13,21
> < ## This code is derived from software contributed to and maintained by
> < ## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew
> Partan,
> < ## Pete Whiting, Austin Schutz, and Andrew Fort.
> ---
>> ## This software may be freely copied, modified and redistributed
>> ## without fee for non-commerical purposes provided that this license
>> ## remains intact and unmodified with any RANCID distribution.
>> ##
>> ## There is no warranty or other guarantee of fitness of this software.
>> ## It is provided solely "as is". The author(s) disclaim(s) all
>> ## responsibility and liability with respect to this software's usage
>> ## or its effect upon hardware, computer systems, other software, or
>> ## anything else.
> 13,29c23,24
> < ## Redistribution and use in source and binary forms, with or without
> < ## modification, are permitted provided that the following conditions
> < ## are met:
> < ## 1. Redistributions of source code must retain the above copyright
> < ## notice, this list of conditions and the following disclaimer.
> < ## 2. Redistributions in binary form must reproduce the above copyright
> < ## notice, this list of conditions and the following disclaimer in the
> < ## documentation and/or other materials provided with the distribution.
> < ## 3. All advertising materials mentioning features or use of this
> software
> < ## must display the following acknowledgement:
> < ## This product includes software developed by Terrapin
> Communications,
> < ## Inc. and its contributors for RANCID.
> < ## 4. Neither the name of Terrapin Communications, Inc. nor the names of
> its
> < ## contributors may be used to endorse or promote products derived from
> < ## this software without specific prior written permission.
> < ## 5. It is requested that non-binding fixes and modifications be
> contributed
> < ## back to Terrapin Communications, Inc.
> ---
>> ## Except where noted otherwise, rancid was written by and is maintained
>> by
>> ## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin
>> Schutz.
> 31,41d25
> < ## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND
> CONTRIBUTORS
> < ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> LIMITED
> < ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
> PARTICULAR
> < ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
> < ## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> < ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> < ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
> BUSINESS
> < ## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> < ## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> < ## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
> THE
> < ## POSSIBILITY OF SUCH DAMAGE.
> 52c36
> < print "rancid 2.3.6\n";
> ---
>> print "rancid 2.3.2a6\n";
> 65,67c49
> < my($aclsort) = ("ipsort"); # ACL sorting mode
> < my($filter_commstr); # SNMP community string filtering
> < my($filter_pwds); # password filtering mode
> ---
>> my(%filter_pwds); # password filtering mode
> 73c55
> < && scalar(%history)) {
> ---
>> && defined %history) {
> 181,182c163
> < ProcessHistory("COMMENTS","keysort","B1",
> < "\/\*Image: Software: $1 ($2)\n") && next;
> ---
>> ProcessHistory("COMMENTS","keysort","B1", "\/\*Image: Software: $1
>> ($2)\n") && next;
> 184,185c165
> < ProcessHistory("COMMENTS","keysort","A2",
> < "\/\*Hardware part no: $1\n") && next;
> ---
>> ProcessHistory("COMMENTS","keysort","A2", "\/\*Hardware part no:
>> $1\n") && next;
> 187,188c167
> < ProcessHistory("COMMENTS","keysort","C1",
> < "\/\*Base MAC address: $1\n") && next;
> ---
>> ProcessHistory("COMMENTS","keysort","C1", "\/\*Base MAC address:
>> $1\n") && next;
> 205c184,185
> < if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ && $filter_commstr) {
> ---
>> if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ &&
>> defined($ENV{'NOCOMMSTR'})) {
> 208c188
> < /^(\s+(.{1,3}pw|pswd) )\S+/ &&
> ---
>> /^(\s+.{2,3}pw )\S+/ &&
> 209a190,191
>>
>> next if (/esecret/);
> 213,217c195,199
> < if (/^\/?script end/) {
> < $found_end = 1;
> < ProcessHistory("","","","$_\n");
> < return(1);
> < }
> ---
>> if (/^\/?script end/) {
>> $found_end = 1;
>> ProcessHistory("","","","$_\n");
>> return(1);
>> }
> 237,238c219,220
> < $cisco_cmds = join(";",@commands);
> < $cmds_regexp = join("|", map quotemeta($_), @commands);
> ---
>> $cisco_cmds=join(";",@commands);
>> $cmds_regexp=join("|",@commands);
> 269,287d250
> < # determine ACL sorting mode
> < if ($ENV{"ACLSORT"} =~ /no/i) {
> < $aclsort = "";
> < }
> < # determine community string filtering mode
> < if (defined($ENV{"NOCOMMSTR"}) &&
> < ($ENV{"NOCOMMSTR"} =~ /yes/i || $ENV{"NOCOMMSTR"} =~ /^$/)) {
> < $filter_commstr = 1;
> < } else {
> < $filter_commstr = 0;
> < }
> < # determine password filtering mode
> < if ($ENV{"FILTER_PWDS"} =~ /no/i) {
> < $filter_pwds = 0;
> < } elsif ($ENV{"FILTER_PWDS"} =~ /all/i) {
> < $filter_pwds = 2;
> < } else {
> < $filter_pwds = 1;
> < }
> 294c257
> < $clean_run = 1;
> ---
>> $clean_run=1;
>
>
>
> I appreciate any help.
>
> Kind Regards,
> Krzysztof Zygmunt
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


krzysztof.zygmunt at gmail

Apr 18, 2011, 7:06 AM

Post #3 of 7 (586 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

[ Sorry for delay in response ]

Hello,

I've done this modificatin:
bash-3.2$ diff /usr/bin/arancid /usr/bin/arancid.original
212c212
< next if (/^ *esecret /);
---
>

No success. We're still getting esecret diff msgs.

On Fri, Apr 15, 2011 at 7:52 AM, john heasley <heas [at] shrubbery> wrote:
> Thu, Apr 14, 2011 at 04:21:42PM +0200, Krzysztof Zygmunt:
>> Hi,
>>
>> I've upgraded to rancid-2.3.6 and I keep receiving emails about esecret diff.
>>
>> like this:
>> - ? ? ? esecret
>> "8e4a202204422022b737e3e3c7f283d05c550d6485fae919c45f3d06aaadbb9e07f7eadf1bc47289183122d1ba97f409179e69e97582d1fafcf5a1cd46ac955d"
>> - ? ? ? esecret2
>> "b1b81fd001800a80b2f5f6b3c230a972d12f64f229662f4e547d78cc0ccfe6b05cab18962298598742a2302fb68292680f5560bf5bcee495a1d81e9d185677e6"
>> + ? ? ? esecret
>> "f4e7475010040200beaea6b3d3b4a1f232aca42b8d26badc89fb80ab8260eee88650d83ada1ac55d02089d6af4b61ee04205c57496882c97c6ac871f3f88d9fc"
>> + ? ? ? esecret2
>> "f7db446c10180028beb2a7a7d3a8a3daadc08120b67c930c9e0046e241b132092d457b120721606b8292176a34ad5dc76414bfd6b23966b865bca343686f59cb"
>>
>>
>> I've found two solutions on the internet but they don't work for me.
>>
>> neither this:
>> http://www.gossamer-threads.com/lists/rancid/users/4690
>> nor that:
>> http://www.shrubbery.net/rancid/search.cgi?config=htdig&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=esecret+alteon
>
> this should do it
>
> Index: bin/arancid.in
> ===================================================================
> --- bin/arancid.in      (revision 2291)
> +++ bin/arancid.in      (working copy)
> @@ -210,6 +210,7 @@
>
>        next if (/^\/\* Configuration dump taken/i);
>        next if (/^\/\* Version.*Base MAC.*/i);
> +       next if (/^ *esecret /);
>
>        if (/^\/?script end/) {
>            $found_end = 1;
>
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


krzysztof.zygmunt at gmail

Apr 19, 2011, 2:36 AM

Post #4 of 7 (586 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

[ info from another guy having the same problem ]

This one seems to work:
bash-3.2$ diff /usr/bin/arancid /usr/bin/arancid.original
212c212
< next if (/^.*?esecret.*/);
---
>

Can we do sth. to make this change applied in source code of 2.3.6
version to make sure
it still works fine after we upgrade to another version ?

On Thu, Apr 14, 2011 at 7:11 PM, Lee <ler762 [at] gmail> wrote:
> probably this:
>
> 209a190,191
>>
>>       next if (/esecret/);
>
> is ignoring any lines that have the string "esecret".  I'd try adding
> that line to the 2.3.6 source code.
>
> Regards,
> Lee
>
>
> On 4/14/11, Krzysztof Zygmunt <krzysztof.zygmunt [at] gmail> wrote:
>> Hi,
>>
>> I've upgraded to rancid-2.3.6 and I keep receiving emails about esecret
>> diff.
>>
>> like this:
>> -       esecret
>> "8e4a202204422022b737e3e3c7f283d05c550d6485fae919c45f3d06aaadbb9e07f7eadf1bc47289183122d1ba97f409179e69e97582d1fafcf5a1cd46ac955d"
>> -       esecret2
>> "b1b81fd001800a80b2f5f6b3c230a972d12f64f229662f4e547d78cc0ccfe6b05cab18962298598742a2302fb68292680f5560bf5bcee495a1d81e9d185677e6"
>> +       esecret
>> "f4e7475010040200beaea6b3d3b4a1f232aca42b8d26badc89fb80ab8260eee88650d83ada1ac55d02089d6af4b61ee04205c57496882c97c6ac871f3f88d9fc"
>> +       esecret2
>> "f7db446c10180028beb2a7a7d3a8a3daadc08120b67c930c9e0046e241b132092d457b120721606b8292176a34ad5dc76414bfd6b23966b865bca343686f59cb"
>>
>>
>> I've found two solutions on the internet but they don't work for me.
>>
>> neither this:
>> http://www.gossamer-threads.com/lists/rancid/users/4690
>> nor that:
>> http://www.shrubbery.net/rancid/search.cgi?config=htdig&restrict=&exclude=&method=and&format=builtin-long&sort=score&words=esecret+alteon
>>
>>
>> I can see a few changes between ver. 2.3.2a6 (work well) and 2.3.6
>> (keep sending esecret diff msgs),  but  I'm not skilled enough to repair
>> this.
>>
>>
>> diff /usr/bin/arancid(2.3.6) /home/rancid/bin/arancid(2.3.2a6)
>> 3c3
>> < ## $Id: arancid.in 2246 2010-09-08 01:36:07Z heas $
>> ---
>>> ## $Id: arancid.in,v 1.22 2006/10/05 04:27:42 heas Exp $
>> 5,6c5,10
>> < ## rancid 2.3.6
>> < ## Copyright (c) 1997-2008 by Terrapin Communications, Inc.
>> ---
>>> ## rancid 2.3.2a6
>>> ## Hacked version of rancid for Alteon WebOS switches
>>> ## tested with: ad3 v8.1.18
>>> ## afort [at] choqolat (andrew fort)
>>> ##
>>> ## Copyright (C) 1997-2006 by Terrapin Communications, Inc.
>> 9,11c13,21
>> < ## This code is derived from software contributed to and maintained by
>> < ## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew
>> Partan,
>> < ## Pete Whiting, Austin Schutz, and Andrew Fort.
>> ---
>>> ## This software may be freely copied, modified and redistributed
>>> ## without fee for non-commerical purposes provided that this license
>>> ## remains intact and unmodified with any RANCID distribution.
>>> ##
>>> ## There is no warranty or other guarantee of fitness of this software.
>>> ## It is provided solely "as is".  The author(s) disclaim(s) all
>>> ## responsibility and liability with respect to this software's usage
>>> ## or its effect upon hardware, computer systems, other software, or
>>> ## anything else.
>> 13,29c23,24
>> < ## Redistribution and use in source and binary forms, with or without
>> < ## modification, are permitted provided that the following conditions
>> < ## are met:
>> < ## 1. Redistributions of source code must retain the above copyright
>> < ##    notice, this list of conditions and the following disclaimer.
>> < ## 2. Redistributions in binary form must reproduce the above copyright
>> < ##    notice, this list of conditions and the following disclaimer in the
>> < ##    documentation and/or other materials provided with the distribution.
>> < ## 3. All advertising materials mentioning features or use of this
>> software
>> < ##    must display the following acknowledgement:
>> < ##        This product includes software developed by Terrapin
>> Communications,
>> < ##        Inc. and its contributors for RANCID.
>> < ## 4. Neither the name of Terrapin Communications, Inc. nor the names of
>> its
>> < ##    contributors may be used to endorse or promote products derived from
>> < ##    this software without specific prior written permission.
>> < ## 5. It is requested that non-binding fixes and modifications be
>> contributed
>> < ##    back to Terrapin Communications, Inc.
>> ---
>>> ## Except where noted otherwise, rancid was written by and is maintained
>>> by
>>> ## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin
>>> Schutz.
>> 31,41d25
>> < ## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND
>> CONTRIBUTORS
>> < ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>> LIMITED
>> < ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
>> PARTICULAR
>> < ## PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS
>> < ## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
>> < ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
>> < ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
>> BUSINESS
>> < ## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
>> < ## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
>> < ## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
>> THE
>> < ## POSSIBILITY OF SUCH DAMAGE.
>> 52c36
>> <     print "rancid 2.3.6\n";
>> ---
>>>     print "rancid 2.3.2a6\n";
>> 65,67c49
>> < my($aclsort) = ("ipsort");            # ACL sorting mode
>> < my($filter_commstr);                  # SNMP community string filtering
>> < my($filter_pwds);                     # password filtering mode
>> ---
>>> my(%filter_pwds);                     # password filtering mode
>> 73c55
>> <       && scalar(%history)) {
>> ---
>>>       && defined %history) {
>> 181,182c163
>> <         ProcessHistory("COMMENTS","keysort","B1",
>> <                        "\/\*Image: Software: $1 ($2)\n") && next;
>> ---
>>>         ProcessHistory("COMMENTS","keysort","B1", "\/\*Image: Software: $1
>>> ($2)\n") && next;
>> 184,185c165
>> <         ProcessHistory("COMMENTS","keysort","A2",
>> <                        "\/\*Hardware part no: $1\n") && next;
>> ---
>>>         ProcessHistory("COMMENTS","keysort","A2", "\/\*Hardware part no:
>>> $1\n") && next;
>> 187,188c167
>> <         ProcessHistory("COMMENTS","keysort","C1",
>> <                        "\/\*Base MAC address: $1\n") && next;
>> ---
>>>         ProcessHistory("COMMENTS","keysort","C1", "\/\*Base MAC address:
>>> $1\n") && next;
>> 205c184,185
>> <       if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ && $filter_commstr) {
>> ---
>>>       if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ &&
>>>               defined($ENV{'NOCOMMSTR'})) {
>> 208c188
>> <       /^(\s+(.{1,3}pw|pswd) )\S+/ &&
>> ---
>>>       /^(\s+.{2,3}pw )\S+/ &&
>> 209a190,191
>>>
>>>       next if (/esecret/);
>> 213,217c195,199
>> <       if (/^\/?script end/) {
>> <           $found_end = 1;
>> <           ProcessHistory("","","","$_\n");
>> <           return(1);
>> <       }
>> ---
>>>               if (/^\/?script end/) {
>>>               $found_end = 1;
>>>               ProcessHistory("","","","$_\n");
>>>               return(1);
>>>               }
>> 237,238c219,220
>> < $cisco_cmds = join(";",@commands);
>> < $cmds_regexp = join("|", map quotemeta($_), @commands);
>> ---
>>> $cisco_cmds=join(";",@commands);
>>> $cmds_regexp=join("|",@commands);
>> 269,287d250
>> < # determine ACL sorting mode
>> < if ($ENV{"ACLSORT"} =~ /no/i) {
>> <     $aclsort = "";
>> < }
>> < # determine community string filtering mode
>> < if (defined($ENV{"NOCOMMSTR"}) &&
>> <     ($ENV{"NOCOMMSTR"} =~ /yes/i || $ENV{"NOCOMMSTR"} =~ /^$/)) {
>> <     $filter_commstr = 1;
>> < } else {
>> <     $filter_commstr = 0;
>> < }
>> < # determine password filtering mode
>> < if ($ENV{"FILTER_PWDS"} =~ /no/i) {
>> <     $filter_pwds = 0;
>> < } elsif ($ENV{"FILTER_PWDS"} =~ /all/i) {
>> <     $filter_pwds = 2;
>> < } else {
>> <     $filter_pwds = 1;
>> < }
>> 294c257
>> <       $clean_run = 1;
>> ---
>>>       $clean_run=1;
>>
>>
>>
>> I appreciate any help.
>>
>> Kind Regards,
>> Krzysztof Zygmunt
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss [at] shrubbery
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


paul at gear

Apr 19, 2011, 3:47 PM

Post #5 of 7 (589 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

On 19/04/11 19:36, Krzysztof Zygmunt wrote:
> [ info from another guy having the same problem ]
>
> This one seems to work:
> bash-3.2$ diff /usr/bin/arancid /usr/bin/arancid.original
> 212c212
> < next if (/^.*?esecret.*/);
> ---
>>
>
> Can we do sth. to make this change applied in source code of 2.3.6
> version to make sure
> it still works fine after we upgrade to another version ?
>
> On Thu, Apr 14, 2011 at 7:11 PM, Lee <ler762 [at] gmail> wrote:
>> probably this:
>>
>> 209a190,191
>>>
>>> next if (/esecret/);
>>
>> is ignoring any lines that have the string "esecret". I'd try adding
>> that line to the 2.3.6 source code.

If i'm not mistaken (it *is* before my first coffee is finished this
morning, so it's entirely possible), the line you've suggested is
a) not valid regexp, and
b) functionally equivalent to the line that Lee suggested.
Why not just use the simpler version?

Paul

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


krzysztof.zygmunt at gmail

Apr 20, 2011, 3:30 AM

Post #6 of 7 (579 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

On Wed, Apr 20, 2011 at 12:47 AM, Paul Gear <paul [at] gear> wrote:
> On 19/04/11 19:36, Krzysztof Zygmunt wrote:
>> [ info from another guy having the same problem ]
>>
>> This one seems to work:
>> bash-3.2$ diff /usr/bin/arancid /usr/bin/arancid.original
>> 212c212
>> <     next if (/^.*?esecret.*/);
>> ---
>>>
>>
>> Can we do sth. to make this change applied in source code of 2.3.6
>> version to make sure
>> it still works fine after we upgrade to another version ?
>>
>> On Thu, Apr 14, 2011 at 7:11 PM, Lee <ler762 [at] gmail> wrote:
>>> probably this:
>>>
>>> 209a190,191
>>>>
>>>>       next if (/esecret/);
>>>
>>> is ignoring any lines that have the string "esecret".  I'd try adding
>>> that line to the 2.3.6 source code.
>
> If i'm not mistaken (it *is* before my first coffee is finished this
> morning, so it's entirely possible), the line you've suggested is
> a) not valid regexp, and
> b) functionally equivalent to the line that Lee suggested.
> Why not just use the simpler version?
>
> Paul
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>

Indeed the simpler one work as well. I've just given it a try again.

What can we do to make sure this line will also be there in next
rancid release ?


Thank you very much for your help.
Cheers
Krzysztof Zygmunt
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


heas at shrubbery

Apr 20, 2011, 9:31 AM

Post #7 of 7 (579 views)
Permalink
Re: Alteon switch "esecret" problem again - rancid 2.3.6 [In reply to]

Wed, Apr 20, 2011 at 12:30:30PM +0200, Krzysztof Zygmunt:
> What can we do to make sure this line will also be there in next
> rancid release ?

yes, its already been committed.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.