ML | 1 Sep 2009 03:42
Favicon

[rancid] Trouble automating TFTP downloading using clogin

I'm trying to script clogin to login to some switches and pull an IOS 
image via tftp.

clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2

I see the copy command appear to execute on the remote switch but the 
operation ever starts.  I verified with remote tftp server that not a 
single packet ever reaches it.  There is essentially zero output during 
the vty session after the copy starts.  I can successfully execute other 
commands, just not 'copy'.

What could be happening?

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

Ryan West | 1 Sep 2009 03:58
Favicon

[rancid] Re: Trouble automating TFTP downloading using clogin

ML,

Looks like you're missing carriage returns.  Try creating a file with 3 carriage returns at the bottom, I
recently upgraded a series of switches using the same method.

Clogin -x <file-with-commands> <rtr-name>

-ryan

-----Original Message-----
From: rancid-discuss-bounces <at> shrubbery.net [mailto:rancid-discuss-bounces <at> shrubbery.net] On
Behalf Of ML
Sent: Monday, August 31, 2009 9:42 PM
To: rancid-discuss <at> shrubbery.net
Subject: [rancid] Trouble automating TFTP downloading using clogin

I'm trying to script clogin to login to some switches and pull an IOS 
image via tftp.

clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2

I see the copy command appear to execute on the remote switch but the 
operation ever starts.  I verified with remote tftp server that not a 
single packet ever reaches it.  There is essentially zero output during 
the vty session after the copy starts.  I can successfully execute other 
commands, just not 'copy'.

What could be happening?

_______________________________________________
(Continue reading)

Mahaffey, Brian | 1 Sep 2009 22:22
Favicon

[rancid] Re: Trouble automating TFTP downloading using clogin

I used Quotes " instead of ' and I saw the command execute, the issue I
see is that it doesn't prompt you to accept image destination name the
same way if you did it manually on the command line.

More tftp.sh
Clogin -c "copy tftp://10.10.15.11/c2800nm-adventerprisek9-mz.124-23.bin
flash:" SPAIN-C2811.PELCO.ORG

-bash-3.2$ ./tftp.sh 
SPAIN-c2811.pelco.org
spawn ssh -c 3des -x -l user SPAIN-c2811.pelco.org
CCC

DO NOT LOGIN TO THIS DEVICE!

Password:

SPAIN-C2811#
SPAIN-C2811#terminal length 0
SPAIN-C2811#copy
tftp://10.200.2.11/c2800nm-adventerprisek9-mz.124-23.bin flash:

Error: TIMEOUT reached
-bash-3.2$

-----Original Message-----
From: rancid-discuss-bounces <at> shrubbery.net
[mailto:rancid-discuss-bounces <at> shrubbery.net] On Behalf Of ML
Sent: Monday, August 31, 2009 6:42 PM
To: rancid-discuss <at> shrubbery.net
(Continue reading)

David Croft | 1 Sep 2009 23:25
Picon
Favicon

[rancid] Re: Trouble automating TFTP downloading using clogin

Your script may be stalling on a prompt. I use this script to turn off
file prompts before the copy:

clogin -c "conf t; file prompt quiet; exit; copy
scp://user:pass <at> server/$script running-config; conf t; no file prompt
quiet" $router

David

2009/9/1 ML <ml <at> kenweb.org>:
> I'm trying to script clogin to login to some switches and pull an IOS
> image via tftp.
>
> clogin -t 300 -c 'copy tftp://1.1.1.1/file.bin flash:' 2.2.2.2
>
> I see the copy command appear to execute on the remote switch but the
> operation ever starts.  I verified with remote tftp server that not a
> single packet ever reaches it.  There is essentially zero output during
> the vty session after the copy starts.  I can successfully execute other
> commands, just not 'copy'.
>
>
> What could be happening?
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
(Continue reading)

Joon Yun | 3 Sep 2009 22:46

[rancid] Re: FreeBSD 7.2 & rancid/expect/tcl ports

Hello Mr. Zimmerman,

Just out of curiosity, what exactly happened when RANCID used to hang for you and did it just go away when you
upgraded or did you actually discover a bug and it got fixed?

I hope you and the rest of gnag are doing well.

Regards,
Joon Yun

-----Original Message-----
From: rancid-discuss-bounces <at> shrubbery.net [mailto:rancid-discuss-bounces <at> shrubbery.net] On
Behalf Of David Paul Zimmerman
Sent: Thursday, August 27, 2009 1:11 PM
To: rancid-discuss <at> shrubbery.net
Subject: [rancid] FreeBSD 7.2 & rancid/expect/tcl ports

Hi,

Sometimes I wish I was able to refer to a message that would get me out of a jam, so I thought I'd share the
results of an upgrade I've just finished to my RANCID servers:

FreeBSD 7.2-RELEASE-p3

rancid-2.3.2               Really Awesome New Cisco confIg Differ
expect-nox11-5.44.1.11_1   A sophisticated scripter based on tcl/tk
tcl-8.4.19_3,1             Tool Command Language

All seems to be working well, no RANCID hangs since the upgrade on August 10th.

(Continue reading)

mathiruban | 4 Sep 2009 05:22

[rancid] Monitoring BGP in Rancid

Dear Team,

Is it possible to monitor the BGP status in links using Rancid looking glass? 
If BGP is down, can I get the email notification? 

Rgds,

R.Mathiruban

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

Jon Lewis | 6 Sep 2009 22:06

[rancid] Re: Monitoring BGP in Rancid

On Fri, 4 Sep 2009, mathiruban wrote:

> Dear Team,
>
> Is it possible to monitor the BGP status in links using Rancid looking glass?
> If BGP is down, can I get the email notification?

I don't see why you couldn't add a show ip bg sum to the commands 
run...but the problem I'd see with doing that in rancid is that if you're 
talking about BGP (full routes, peering) with external AS's, the 
number of prefixes received is likely to be in constant flux, causing a 
diff every time rancid runs.

----------------------------------------------------------------------
  Jon Lewis                   |  I route
  Senior Network Engineer     |  therefore you are
  Atlantic Net                |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

john heasley | 7 Sep 2009 01:48

[rancid] Re: Monitoring BGP in Rancid

Sun, Sep 06, 2009 at 04:06:45PM -0400, Jon Lewis:
> On Fri, 4 Sep 2009, mathiruban wrote:
> 
> > Dear Team,
> >
> > Is it possible to monitor the BGP status in links using Rancid looking glass?
> > If BGP is down, can I get the email notification?
> 
> I don't see why you couldn't add a show ip bg sum to the commands 
> run...but the problem I'd see with doing that in rancid is that if you're 
> talking about BGP (full routes, peering) with external AS's, the 
> number of prefixes received is likely to be in constant flux, causing a 
> diff every time rancid runs.
> 
> ----------------------------------------------------------------------
>   Jon Lewis                   |  I route
>   Senior Network Engineer     |  therefore you are
>   Atlantic Net                |
> _________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

attached is used for cisco.  you'll have to make your own adjustments to
rancid-fe and whatever else within the script.
#! /usr/bin/perl
##
(Continue reading)

Pulliainen Teemu | 9 Sep 2009 12:10
Picon

[rancid] Greater than -sign in Juniper configs

Hi all,

 

Rancid has been missing some config changes in one of our Juniper (Netscreen) firewalls. While checking it out, I noticed that the configuration fetcher script seems to quit whenever it reaches a firewall policy with a > sign in the description field.

 

Removing the greater than –signs from the configuration seems to have fixed the issue.

 

Best regards,

Teemu Pulliainen

 

 

 

 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley | 9 Sep 2009 19:20

[rancid] Re: Greater than -sign in Juniper configs

Wed, Sep 09, 2009 at 01:10:20PM +0300, Pulliainen Teemu:
> Hi all,
> 
> Rancid has been missing some config changes in one of our Juniper (Netscreen) firewalls. While checking
it out, I noticed that the configuration fetcher script seems to quit whenever it reaches a firewall
policy with a > sign in the description field.
> 
> Removing the greater than -signs from the configuration seems to have fixed the issue.
> 
This shouldnt be.  Please ensure that you are running the most recent version
of rancid.  If it still occurs, please send the output of jrancid -dl rtrname
to me.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


Gmane