From heas at shrubbery.net Fri Apr 1 00:00:41 2005 From: heas at shrubbery.net (john heasley) Date: Thu, 31 Mar 2005 16:00:41 -0800 Subject: RancidSVN: New Repository Location In-Reply-To: <424C8D33.1060209@grote.name> References: <424C8D33.1060209@grote.name> Message-ID: <20050401000041.GM29030@shrubbery.net> I really will get to your patch at some point. Lack of spare time; dont take my silence as non-interest. Your effort is appreciated. Thu, Mar 31, 2005 at 04:52:19PM -0700, Justin Grote: > ***SUPPORT DISCLAIMER*** > RancidSVN is NOT AFFILIATED WITH NOR SUPPORTED BY THE RANCID TEAM. > Please do not contact them about issues related to RancidSVN. They won't > help you. Maybe in the future my integrated version may be merged into > the RANCID code, but until such time it is not supported by them. > ***END DISCLAIMER*** From bigwavedave at gmail.com Fri Apr 1 00:04:24 2005 From: bigwavedave at gmail.com (Big Wave Dave) Date: Thu, 31 Mar 2005 16:04:24 -0800 Subject: RANCID hangs with HP 4104 and 2524 In-Reply-To: References: <8e124f1605033111295f65569@mail.gmail.com> <8e124f16050331115235a1764c@mail.gmail.com> <20050331202919.GI29030@shrubbery.net> Message-ID: <8e124f16050331160412ffd60b@mail.gmail.com> On Thu, 31 Mar 2005 16:10:40 -0500 (EST), Chris Gallardo wrote: > actually both of these devices use the HP driver so use hlogin to test > it. I have gotten hlogin -c 'show config' IP_ADDRESS to work with my > hp 4104's, 4108's, and 2524's > I ran this command. Both of them just sat at the switches prompt. Dave From heas at shrubbery.net Fri Apr 1 00:11:11 2005 From: heas at shrubbery.net (john heasley) Date: Thu, 31 Mar 2005 16:11:11 -0800 Subject: RANCID hangs with HP 4104 and 2524 In-Reply-To: <8e124f16050331160412ffd60b@mail.gmail.com> References: <8e124f1605033111295f65569@mail.gmail.com> <8e124f16050331115235a1764c@mail.gmail.com> <20050331202919.GI29030@shrubbery.net> <8e124f16050331160412ffd60b@mail.gmail.com> Message-ID: <20050401001111.GN29030@shrubbery.net> Thu, Mar 31, 2005 at 04:04:24PM -0800, Big Wave Dave: > On Thu, 31 Mar 2005 16:10:40 -0500 (EST), Chris Gallardo > wrote: > > actually both of these devices use the HP driver so use hlogin to test > > it. I have gotten hlogin -c 'show config' IP_ADDRESS to work with my > > hp 4104's, 4108's, and 2524's > > > I ran this command. Both of them just sat at the switches prompt. I'd guess that you have autoenable misconfigured in your .cloginrc. otherwise, provide the transcript. From justin at grote.name Fri Apr 1 00:16:00 2005 From: justin at grote.name (Justin Grote) Date: Thu, 31 Mar 2005 17:16:00 -0700 Subject: RancidSVN: New Repository Location In-Reply-To: <20050401000041.GM29030@shrubbery.net> References: <424C8D33.1060209@grote.name> <20050401000041.GM29030@shrubbery.net> Message-ID: <424C92C0.8050702@grote.name> john heasley wrote: >I really will get to your patch at some point. Lack of spare time; dont >take my silence as non-interest. Your effort is appreciated. > > No problem whatsoever. I didn't mean at all for that comment to come off as a stab against you guys, but upon a second reading I see how it could be interpreted that way. I have the utmost respect for the project and I just didn't want to hamper development for my quick hack, it was just something that I wanted and some other people had interest in :). Don't worry about validating the drop-in replacement for inclusion, it's too intrusive to your current source. When I get my integrated version done that offers Subversion as an option rather than mandatory, I'll send it over. I've been doing my best to follow your coding conventions and styles, so it's not too intrusive. You guys also did such an excellent job of separating the collector and repository code that I don't even have to touch the collector code and router profiles, just the repository code. I'd say the best benefit to this has been the ability to commit via http and svn+ssh://. In larger deployments, I have RancidSVN running at each site, and they all commit to a central repository (each site being a subdirectory), giving a centralized view of the entire network. The low-cost svn copy is real nice to take snapshots of the network, plus all the other great stuff about Subversion (such as directory version control). Keep up the great work! __________________________ Justin Grote Network Architect JWG Networks From bigwavedave at gmail.com Fri Apr 1 00:19:29 2005 From: bigwavedave at gmail.com (Big Wave Dave) Date: Thu, 31 Mar 2005 16:19:29 -0800 Subject: RANCID hangs with HP 4104 and 2524 In-Reply-To: <20050401001111.GN29030@shrubbery.net> References: <8e124f1605033111295f65569@mail.gmail.com> <8e124f16050331115235a1764c@mail.gmail.com> <20050331202919.GI29030@shrubbery.net> <8e124f16050331160412ffd60b@mail.gmail.com> <20050401001111.GN29030@shrubbery.net> Message-ID: <8e124f1605033116193c7b9ac2@mail.gmail.com> > > > actually both of these devices use the HP driver so use hlogin to test > > > it. I have gotten hlogin -c 'show config' IP_ADDRESS to work with my > > > hp 4104's, 4108's, and 2524's > > > > > I ran this command. Both of them just sat at the switches prompt. > > I'd guess that you have autoenable misconfigured in your .cloginrc. > otherwise, provide the transcript. > Indeed... I did not have the "autoenable" set. I had not seen that in the documentation. Thanks for the help! Dave From wcgallar at iupui.edu Fri Apr 1 16:07:00 2005 From: wcgallar at iupui.edu (Chris Gallardo) Date: Fri, 1 Apr 2005 11:07:00 -0500 (EST) Subject: HP 4108 ssh and rancid Message-ID: I'm trying to get rancid to connect to a hp 4108gl switch using ssh i defined the method in .cloginrc as add method 10.129.9.169 ssh i get this error when running hlogin wcgallar at brutus wcgallar $ hlogin -c 'show config' 10.129.9.169 10.129.9.169 spawn hpuifilter -- 'ssh -c 3des -x -l rancid' 10.129.9.169 hpuifilter: execlp() failed: No such file or directory i'm trying to figure out where this function is called and where it should be located. -- Chris Gallardo From heas at shrubbery.net Fri Apr 1 17:52:14 2005 From: heas at shrubbery.net (john heasley) Date: Fri, 1 Apr 2005 09:52:14 -0800 Subject: HP 4108 ssh and rancid In-Reply-To: References: Message-ID: <20050401175214.GF27630@shrubbery.net> Fri, Apr 01, 2005 at 11:07:00AM -0500, Chris Gallardo: > I'm trying to get rancid to connect to a hp 4108gl switch using ssh > > i defined the method in .cloginrc as > > add method 10.129.9.169 ssh > > i get this error when running hlogin > > wcgallar at brutus wcgallar $ hlogin -c 'show config' 10.129.9.169 > 10.129.9.169 > spawn hpuifilter -- 'ssh -c 3des -x -l rancid' 10.129.9.169 > hpuifilter: execlp() failed: No such file or directory > > > i'm trying to figure out where this function is called and where it > should be located. ssh appears to not be in the PATH. however, ssh does not yet work with hlogin; sorry. From bryce at gis2.com Tue Apr 5 18:57:17 2005 From: bryce at gis2.com (Bryce Edwards) Date: Tue, 5 Apr 2005 13:57:17 -0500 Subject: Alteon SSL Devices Message-ID: <006601c53a11$498bf050$c8320a0a@gis2.com> Guys, I have two Alteon SSL accelerators that I'd like help making a script for. I can get you a session log to know what all the prompts and commands should be, but I don't know how to script it myself. ::Bryce:: From morty at sled.gsfc.nasa.gov Thu Apr 21 01:06:33 2005 From: morty at sled.gsfc.nasa.gov (Mordechai T. Abzug) Date: Wed, 20 Apr 2005 21:06:33 -0400 Subject: rancid: mail filenames only, set max rounds Message-ID: <20050421010633.GK14554@frakir.gsfc.nasa.gov> The attached patch: - adds a "MAIL_FILENAME_ONLY" tunable to control whether entire diffs are mailed as per the default, or only the filename is mailed. - adds a "MAX_ROUNDS" tunable to control the maximum number of rounds/passes. This patch is relative to a clean 2.3.1. It does not change default behavior. Thanks! - Morty -------------- next part -------------- diff -cr rancid-2.3.1/bin/control_rancid.in rancid-2.3.1-local-p1/bin/control_rancid.in *** rancid-2.3.1/bin/control_rancid.in Fri Mar 12 23:13:09 2004 --- rancid-2.3.1-local-p1/bin/control_rancid.in Thu Apr 21 00:01:53 2005 *************** *** 308,315 **** # This section will generate a list of missed routers # and try to grab them again. It will run through ! # $pass times. ! pass=4 round=1 if [ -f $DIR/routers.up.missed ]; then rm -f $DIR/routers.up.missed --- 308,315 ---- # This section will generate a list of missed routers # and try to grab them again. It will run through ! # $pass times; tune with MAX_ROUNDS, default 4 ! pass=${MAX_ROUNDS:=4} round=1 if [ -f $DIR/routers.up.missed ]; then rm -f $DIR/routers.up.missed *************** *** 369,376 **** # Diff the directory and then checkin. trap 'rm -fr $TMP $TMP.diff $DIR/routers.single;' 1 2 15 cd $DIR ! cvs -f @DIFF_CMD@ | sed -e '/^RCS file: /d' -e '/^--- /d' \ ! -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff if [ $alt_mailrcpt -eq 1 ] ; then subject="router config diffs - courtesy of $mailrcpt" --- 369,383 ---- # Diff the directory and then checkin. trap 'rm -fr $TMP $TMP.diff $DIR/routers.single;' 1 2 15 cd $DIR ! mail_filename_only=${MAIL_FILENAME_ONLY:=0} ! if [ "$mail_filename_only" = "0" ]; then ! cvs -f @DIFF_CMD@ | sed -e '/^RCS file: /d' -e '/^--- /d' \ ! -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff ! else ! cvs -f @DIFF_CMD@ | grep "^Index" | \ ! sed -e 's/^Index:/Changes found for:/' \ ! >$TMP.diff ! fi if [ $alt_mailrcpt -eq 1 ] ; then subject="router config diffs - courtesy of $mailrcpt" diff -cr rancid-2.3.1/etc/rancid.conf.sample.in rancid-2.3.1-local-p1/etc/rancid.conf.sample.in *** rancid-2.3.1/etc/rancid.conf.sample.in Sat Mar 13 00:17:50 2004 --- rancid-2.3.1-local-p1/etc/rancid.conf.sample.in Thu Apr 21 00:01:29 2005 *************** *** 49,54 **** --- 49,57 ---- # The number of devices to collect simultaneously. #PAR_COUNT=5; export PAR_COUNT # + # How many times should we try to reach devices? Minimum: one. + #MAX_ROUNDS=4; export MAX_ROUNDS + # # list of rancid groups #LIST_OF_GROUPS="sl joebobisp" # more groups... *************** *** 65,67 **** --- 68,74 ---- # included, as this is simply appended to the usual recipients. It is NOT # appended to recipients specified in rancid-run's -m option. #MAILDOMAIN="@example.com"; export MAILDOMAIN + # + # if you don't want to actually email the diffs, just the names of the files + # that changed, set the below to 1 + #MAIL_FILENAME_ONLY=0; export MAIL_FILENAME_ONLY diff -cr rancid-2.3.1/man/rancid.conf.5.in rancid-2.3.1-local-p1/man/rancid.conf.5.in *** rancid-2.3.1/man/rancid.conf.5.in Fri Mar 12 23:13:09 2004 --- rancid-2.3.1-local-p1/man/rancid.conf.5.in Thu Apr 21 00:00:54 2005 *************** *** 115,120 **** --- 115,126 ---- Default: $BASEDIR/logs .\" .TP + .B MAIL_FILENAME_ONLY + Control whether diff bodies are mailed or filenames that have changed + are mailed. The default, 0, is diff bodies. Set to any other value for + filenames only. + .\" + .TP .B MAILDOMAIN Define the domain part of addresses for administrative and diff e-mail. The value of this variable is simply appended to the normal mail addresses. *************** *** 123,128 **** --- 129,139 ---- had been set to "@example.com". .\" .TP + .B MAX_ROUNDS + Defines how many times rancid should use to reach devices. The minimum is + 1. The default is 4. + .\" + .TP .B NOCOMMSTR If set, .IR rancid (1) From heas at shrubbery.net Thu Apr 21 17:25:39 2005 From: heas at shrubbery.net (john heasley) Date: Thu, 21 Apr 2005 10:25:39 -0700 Subject: rancid: mail filenames only, set max rounds In-Reply-To: <20050421010633.GK14554@frakir.gsfc.nasa.gov> References: <20050421010633.GK14554@frakir.gsfc.nasa.gov> Message-ID: <20050421172539.GC4566@shrubbery.net> Wed, Apr 20, 2005 at 09:06:33PM -0400, Mordechai T. Abzug: > > The attached patch: > > - adds a "MAIL_FILENAME_ONLY" tunable to control whether entire diffs > are mailed as per the default, or only the filename is mailed. This is interesting. Perhaps it would be more interesting to generate the cvs command necessary to generate the diff? eg: cvs diff -r 1.1 -r 1.2 hostname OR cvs diff -r 1.1 -r 1.2 group/configs/hostname > - adds a "MAX_ROUNDS" tunable to control the maximum number of > rounds/passes. Added. I changed it just a little to ensure the floor of 1 itteration. Thanks! From heas at shrubbery.net Fri Apr 22 21:12:39 2005 From: heas at shrubbery.net (john heasley) Date: Fri, 22 Apr 2005 14:12:39 -0700 Subject: rancid: mail filenames only, set max rounds In-Reply-To: <20050421172539.GC4566@shrubbery.net> References: <20050421010633.GK14554@frakir.gsfc.nasa.gov> <20050421172539.GC4566@shrubbery.net> Message-ID: <20050422211239.GI24171@shrubbery.net> [ trying this again; first one bounced from verisign ] Thu, Apr 21, 2005 at 10:25:39AM -0700, john heasley: > Wed, Apr 20, 2005 at 09:06:33PM -0400, Mordechai T. Abzug: > > > > The attached patch: > > > > - adds a "MAIL_FILENAME_ONLY" tunable to control whether entire diffs > > are mailed as per the default, or only the filename is mailed. > > This is interesting. Perhaps it would be more interesting to generate the > cvs command necessary to generate the diff? eg: > cvs diff -r 1.1 -r 1.2 hostname > OR > cvs diff -r 1.1 -r 1.2 group/configs/hostname > > > - adds a "MAX_ROUNDS" tunable to control the maximum number of > > rounds/passes. > > Added. I changed it just a little to ensure the floor of 1 itteration. > Thanks! From morty at sled.gsfc.nasa.gov Tue Apr 26 04:06:55 2005 From: morty at sled.gsfc.nasa.gov (Morty Abzug) Date: Tue, 26 Apr 2005 00:06:55 -0400 Subject: rancid: mail filenames only, set max rounds In-Reply-To: <20050422211239.GI24171@shrubbery.net> References: <20050421010633.GK14554@frakir.gsfc.nasa.gov> <20050421172539.GC4566@shrubbery.net> <20050422211239.GI24171@shrubbery.net> Message-ID: <20050426040655.GG7676@frakir.gsfc.nasa.gov> On Fri, Apr 22, 2005 at 02:12:39PM -0700, john heasley wrote: > [ trying this again; first one bounced from verisign ] > > Thu, Apr 21, 2005 at 10:25:39AM -0700, john heasley: > > Wed, Apr 20, 2005 at 09:06:33PM -0400, Mordechai T. Abzug: > > > > > > The attached patch: > > > > > > - adds a "MAIL_FILENAME_ONLY" tunable to control whether entire diffs > > > are mailed as per the default, or only the filename is mailed. > > > > This is interesting. Perhaps it would be more interesting to generate the > > cvs command necessary to generate the diff? eg: > > cvs diff -r 1.1 -r 1.2 hostname > > OR > > cvs diff -r 1.1 -r 1.2 group/configs/hostname Hmm. I would prefer to just use the old version: cvs diff -r1.1 whatever/configs/hostname This is fairly necessary, since the next CVS version hasn't been assigned yet at this point, and guessing is perilous. Done, in attached patch. > > > - adds a "MAX_ROUNDS" tunable to control the maximum number of > > > rounds/passes. > > > > Added. I changed it just a little to ensure the floor of 1 itteration. > > Thanks! Thank you! The attached patch also includes a few minor tweaks to deal with Solaris systems that don't have GNU diff installed. Ie. do a straight diff instead of diff -c -4. In the contexts involved, the context options don't matter. [Patch also includes the MAX_ROUNDS patch that you've already accepted; don't know what your preferences are on patch submission.] - Morty -------------- next part -------------- diff -cr rancid-2.3.1/bin/control_rancid.in rancid-2.3.1-local-p2/bin/control_rancid.in *** rancid-2.3.1/bin/control_rancid.in Fri Mar 12 23:13:09 2004 --- rancid-2.3.1-local-p2/bin/control_rancid.in Tue Apr 26 02:50:05 2005 *************** *** 138,152 **** sort -u > routers.db cut -d: -f1,2 routers.db > routers.all.new if [ ! -f routers.all ] ; then touch routers.all; fi ! @DIFF_CMD@ routers.all routers.all.new > /dev/null 2>&1; RALL=$? @PERLV@ -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' routers.db > routers.down.new if [ ! -f routers.down ] ; then touch routers.down; fi ! @DIFF_CMD@ routers.down routers.down.new > /dev/null 2>&1; RDOWN=$? @PERLV@ -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new if [ ! -f routers.up ] ; then touch routers.up; fi ! @DIFF_CMD@ routers.up routers.up.new > /dev/null 2>&1; RUP=$? if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] then --- 138,152 ---- sort -u > routers.db cut -d: -f1,2 routers.db > routers.all.new if [ ! -f routers.all ] ; then touch routers.all; fi ! @DIFF@ routers.all routers.all.new > /dev/null 2>&1; RALL=$? @PERLV@ -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print $_) if ($F[2] !~ /^up$/i);}' routers.db > routers.down.new if [ ! -f routers.down ] ; then touch routers.down; fi ! @DIFF@ routers.down routers.down.new > /dev/null 2>&1; RDOWN=$? @PERLV@ -F: -ane '{($F[0] =~ tr at A-Z@a-z@,print "$F[0]:$F[1]\n") if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new if [ ! -f routers.up ] ; then touch routers.up; fi ! @DIFF@ routers.up routers.up.new > /dev/null 2>&1; RUP=$? if [ $RALL -ne 0 -o $RDOWN -ne 0 -o $RUP -ne 0 ] then *************** *** 308,315 **** # This section will generate a list of missed routers # and try to grab them again. It will run through ! # $pass times. ! pass=4 round=1 if [ -f $DIR/routers.up.missed ]; then rm -f $DIR/routers.up.missed --- 308,315 ---- # This section will generate a list of missed routers # and try to grab them again. It will run through ! # $pass times; tune with MAX_ROUNDS, default 4 ! pass=${MAX_ROUNDS:=4} round=1 if [ -f $DIR/routers.up.missed ]; then rm -f $DIR/routers.up.missed *************** *** 369,376 **** # Diff the directory and then checkin. trap 'rm -fr $TMP $TMP.diff $DIR/routers.single;' 1 2 15 cd $DIR ! cvs -f @DIFF_CMD@ | sed -e '/^RCS file: /d' -e '/^--- /d' \ ! -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff if [ $alt_mailrcpt -eq 1 ] ; then subject="router config diffs - courtesy of $mailrcpt" --- 369,387 ---- # Diff the directory and then checkin. trap 'rm -fr $TMP $TMP.diff $DIR/routers.single;' 1 2 15 cd $DIR ! mail_filename_only=${MAIL_FILENAME_ONLY:=0} ! hostname=`hostname` ! if [ "$mail_filename_only" = "0" ]; then ! cvs -f @DIFF_CMD@ | sed -e '/^RCS file: /d' -e '/^--- /d' \ ! -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff ! else ! cvs -f @DIFF_CMD@ | \ ! sed -ne 's,^Index:,Config changed:,p' \ ! -e "s/^======.*/ For recent changes, run on $hostname:/p" \ ! -e 's,^RCS file: \(.*\)/CVS\(/.*/\).*, cd \1\2 \&\&,p' \ ! -e 's,^diff, cvs diff,p' \ ! > $TMP.diff ! fi if [ $alt_mailrcpt -eq 1 ] ; then subject="router config diffs - courtesy of $mailrcpt" diff -cr rancid-2.3.1/etc/rancid.conf.sample.in rancid-2.3.1-local-p2/etc/rancid.conf.sample.in *** rancid-2.3.1/etc/rancid.conf.sample.in Sat Mar 13 00:17:50 2004 --- rancid-2.3.1-local-p2/etc/rancid.conf.sample.in Thu Apr 21 01:54:11 2005 *************** *** 49,54 **** --- 49,57 ---- # The number of devices to collect simultaneously. #PAR_COUNT=5; export PAR_COUNT # + # How many times should we try to reach devices? Minimum: one. + #MAX_ROUNDS=4; export MAX_ROUNDS + # # list of rancid groups #LIST_OF_GROUPS="sl joebobisp" # more groups... *************** *** 65,67 **** --- 68,74 ---- # included, as this is simply appended to the usual recipients. It is NOT # appended to recipients specified in rancid-run's -m option. #MAILDOMAIN="@example.com"; export MAILDOMAIN + # + # if you don't want to actually email the diffs, just the names of the files + # that changed, set the below to 1 + #MAIL_FILENAME_ONLY=0; export MAIL_FILENAME_ONLY diff -cr rancid-2.3.1/man/rancid.conf.5.in rancid-2.3.1-local-p2/man/rancid.conf.5.in *** rancid-2.3.1/man/rancid.conf.5.in Fri Mar 12 23:13:09 2004 --- rancid-2.3.1-local-p2/man/rancid.conf.5.in Thu Apr 21 01:54:11 2005 *************** *** 115,120 **** --- 115,126 ---- Default: $BASEDIR/logs .\" .TP + .B MAIL_FILENAME_ONLY + Control whether diff bodies are mailed or filenames that have changed + are mailed. The default, 0, is diff bodies. Set to any other value for + filenames only. + .\" + .TP .B MAILDOMAIN Define the domain part of addresses for administrative and diff e-mail. The value of this variable is simply appended to the normal mail addresses. *************** *** 123,128 **** --- 129,139 ---- had been set to "@example.com". .\" .TP + .B MAX_ROUNDS + Defines how many times rancid should use to reach devices. The minimum is + 1. The default is 4. + .\" + .TP .B NOCOMMSTR If set, .IR rancid (1)