[rancid] Re: Trouble automating TFTP downloading using clogin

Mahaffey, Brian bmahaffey at pelco.com
Tue Sep 1 20:22:14 UTC 2009

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://
flash:" SPAIN-C2811.PELCO.ORG

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



SPAIN-C2811#terminal length 0
tftp:// flash:

Error: TIMEOUT reached

-----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
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:// flash:'

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

- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. 
- ------------------------------------------------------------------------------

More information about the Rancid-discuss mailing list