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

Mailing List Archive: RANCID: Users

Proposed Extreme changes.

 

 

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


ABochannek at yipes

Sep 25, 2001, 2:47 PM

Post #1 of 6 (560 views)
Permalink
Proposed Extreme changes.

I am finally getting around working on Rancid for Extreme and had some
problems getting it to work. Here are my proposed changes:

bash-2.03$ diff -c /opt/rancid-2.2b7/bin/clogin bin/clogin
*** /opt/rancid-2.2b7/bin/clogin Thu Sep 13 17:37:40 2001
--- bin/clogin Tue Sep 25 15:40:22 2001
***************
*** 432,438 ****
# If the prompt is (enable), then we are on a switch and the
# command is "set length 0"; otherwise its "term length 0".
# skip if its and extreme.
! if { [ string compare "extreme" "$prompt" ] } {
if [ regexp -- ".*> .*enable" "$prompt" ] {
send "set length 0\r"
} else {
--- 432,438 ----
# If the prompt is (enable), then we are on a switch and the
# command is "set length 0"; otherwise its "term length 0".
# skip if its and extreme.
! if { [ string compare "extreme" "$platform" ] } {
if [ regexp -- ".*> .*enable" "$prompt" ] {
send "set length 0\r"
} else {
***************
*** 501,507 ****
}
}
log_user 1
! send "exit\r"
expect {
"Do you wish to save your configuration changes" {
send "n\r"
--- 501,507 ----
}
}
log_user 1
! send "quit\r"
expect {
"Do you wish to save your configuration changes" {
send "n\r"
bash-2.03$ diff -c /opt/rancid-2.2b7/bin/xrancid bin/xrancid
*** /opt/rancid-2.2b7/bin/xrancid Thu Sep 13 17:38:01 2001
--- bin/xrancid Tue Sep 25 15:42:19 2001
***************
*** 330,342 ****
print STDOUT "opening file $host\n" if ($log);
open(INPUT,"<$host") || die "open failed for $host: $!\n";
} else {
! print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if
($debug);
! print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if
($log);
if (defined($ENV{NOPIPE})) {
! system "clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null >
$host.raw 2>&1" || die "clogin failed for $host: $!\n";
open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";
} else {
! open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null |")
|| die "clogin failed for $host: $!\n";
}
}

--- 330,342 ----
print STDOUT "opening file $host\n" if ($log);
open(INPUT,"<$host") || die "open failed for $host: $!\n";
} else {
! print STDERR "executing clogin -t $timeo -autoenable -c\"$cisco_cmds\"
$host\n" if ($debug);
! print STDOUT "executing clogin -t $timeo -autoenable -c\"$cisco_cmds\"
$host\n" if ($log);
if (defined($ENV{NOPIPE})) {
! system "clogin -t $timeo -autoenable -c \"$cisco_cmds\" $host
</dev/null > $host.raw 2>&1" || die "clogin failed for $host: $!\n";
open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";
} else {
! open(INPUT,"clogin -t $timeo -autoenable -c \"$cisco_cmds\" $host
</dev/null |") || die "clogin failed for $host: $!\n";
}
}


Alex Bochannek
Senior Unix/Network Engineer
Yipes ... that's fast!
(415) 901-2000
(415) 901-2090 (direct)
www.yipes.com <http://www.yipes.com/>


heas at shrubbery

Sep 27, 2001, 10:58 AM

Post #2 of 6 (548 views)
Permalink
Proposed Extreme changes. [In reply to]

i havent had a chance to look at these. didnt want you to think we
were ignoring you.

Tue, Sep 25, 2001 at 03:47:13PM -0700, Alex Bochannek:
> I am finally getting around working on Rancid for Extreme and had some
> problems getting it to work. Here are my proposed changes:


ABochannek at yipes

Sep 27, 2001, 12:00 PM

Post #3 of 6 (548 views)
Permalink
Proposed Extreme changes. [In reply to]

OK, thanks ;-)

Alex Bochannek
Senior Unix/Network Engineer
Yipes ... that's fast!
(415) 901-2000
(415) 901-2090 (direct)
www.yipes.com


-----Original Message-----
From: john heasley [mailto:heas [at] shrubbery]
Sent: Thursday, September 27, 2001 11:59 AM
To: Alex Bochannek
Cc: 'rancid-discuss at shrubbery.net'
Subject: Re: Proposed Extreme changes.

i havent had a chance to look at these. didnt want you to think we
were ignoring you.

Tue, Sep 25, 2001 at 03:47:13PM -0700, Alex Bochannek:
> I am finally getting around working on Rancid for Extreme and had some
> problems getting it to work. Here are my proposed changes:


ABochannek at yipes

Sep 28, 2001, 4:34 PM

Post #4 of 6 (545 views)
Permalink
Proposed Extreme changes. [In reply to]

One thing I need to know is what the largest number of devices is anybody
uses Rancid for. Tens? Hundreds? Considering how long it can take for telnet
to terminate an unsuccessful connection (on Solaris), I am bit worried about
scalability.

Thanks.

Alex Bochannek
Senior Unix/Network Engineer
Yipes ... that's fast!
(415) 901-2000
(415) 901-2090 (direct)
www.yipes.com


-----Original Message-----
From: john heasley [mailto:heas [at] shrubbery]
Sent: Thursday, September 27, 2001 11:59 AM
To: Alex Bochannek
Cc: 'rancid-discuss at shrubbery.net'
Subject: Re: Proposed Extreme changes.

i havent had a chance to look at these. didnt want you to think we
were ignoring you.

Tue, Sep 25, 2001 at 03:47:13PM -0700, Alex Bochannek:
> I am finally getting around working on Rancid for Extreme and had some
> problems getting it to work. Here are my proposed changes:


heas at shrubbery

Sep 28, 2001, 4:38 PM

Post #5 of 6 (548 views)
Permalink
Proposed Extreme changes. [In reply to]

Fri, Sep 28, 2001 at 05:34:11PM -0700, Alex Bochannek:
> One thing I need to know is what the largest number of devices is anybody
> uses Rancid for. Tens? Hundreds? Considering how long it can take for telnet
> to terminate an unsuccessful connection (on Solaris), I am bit worried about
> scalability.

have seen as many as 700. bin/control_rancid:PAR_COUNT=5 could be raised
to process more devices concurrently. that should really be a bin/env
knob; which i'll add to the todo list.

> Thanks.
>
> Alex Bochannek
> Senior Unix/Network Engineer
> Yipes ... that's fast!
> (415) 901-2000
> (415) 901-2090 (direct)
> www.yipes.com
>
>
> -----Original Message-----
> From: john heasley [mailto:heas at shrubbery.net]
> Sent: Thursday, September 27, 2001 11:59 AM
> To: Alex Bochannek
> Cc: 'rancid-discuss at shrubbery.net'
> Subject: Re: Proposed Extreme changes.
>
> i havent had a chance to look at these. didnt want you to think we
> were ignoring you.
>
> Tue, Sep 25, 2001 at 03:47:13PM -0700, Alex Bochannek:
> > I am finally getting around working on Rancid for Extreme and had some
> > problems getting it to work. Here are my proposed changes:


ABochannek at yipes

Sep 28, 2001, 4:39 PM

Post #6 of 6 (547 views)
Permalink
Proposed Extreme changes. [In reply to]

Good data point. Thanks!

Alex Bochannek
Senior Unix/Network Engineer
Yipes ... that's fast!
(415) 901-2000
(415) 901-2090 (direct)
www.yipes.com


-----Original Message-----
From: 'john heasley' [mailto:heas [at] shrubbery]
Sent: Friday, September 28, 2001 5:39 PM
To: Alex Bochannek
Cc: 'john heasley'; 'rancid-discuss at shrubbery.net'
Subject: Re: Proposed Extreme changes.

Fri, Sep 28, 2001 at 05:34:11PM -0700, Alex Bochannek:
> One thing I need to know is what the largest number of devices is anybody
> uses Rancid for. Tens? Hundreds? Considering how long it can take for
telnet
> to terminate an unsuccessful connection (on Solaris), I am bit worried
about
> scalability.

have seen as many as 700. bin/control_rancid:PAR_COUNT=5 could be raised
to process more devices concurrently. that should really be a bin/env
knob; which i'll add to the todo list.

> Thanks.
>
> Alex Bochannek
> Senior Unix/Network Engineer
> Yipes ... that's fast!
> (415) 901-2000
> (415) 901-2090 (direct)
> www.yipes.com
>
>
> -----Original Message-----
> From: john heasley [mailto:heas at shrubbery.net]
> Sent: Thursday, September 27, 2001 11:59 AM
> To: Alex Bochannek
> Cc: 'rancid-discuss at shrubbery.net'
> Subject: Re: Proposed Extreme changes.
>
> i havent had a chance to look at these. didnt want you to think we
> were ignoring you.
>
> Tue, Sep 25, 2001 at 03:47:13PM -0700, Alex Bochannek:
> > I am finally getting around working on Rancid for Extreme and had some
> > problems getting it to work. Here are my proposed changes:

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.