[cisco-voip] Non-interactive CLI commands?

jean-francois.guay at bell.ca jean-francois.guay at bell.ca
Wed Nov 21 09:55:37 EST 2007


Are you using FTP to copy of HTTP?

With FTP, you would need to start by configuring the ftp username and
password in the general config, then issue:

# copy ftp://source filename url> flash:<destination filename> *enter*
And at the end of your script send an extra "enter/line feed" that will
actually confirm your command to the router.


   Jean-Francois Guay, ing.
  Consultant Technologies IP - Services Professionnels
  Communications Convergentes et Solutions Mobiles 
  Bell Solutions T.I.C
  ' 514-391-9698
  

-----Original Message-----
From: Robert Kulagowski [mailto:rkulagow at gmail.com] 
Sent: 21 novembre 2007 08:53
To: cisco-voip at puck.nether.net
Subject: [cisco-voip] Non-interactive CLI commands?

I'd like to pre-stage an IOS onto routers, and I use the following:

# copy http://ip.add.r.ess/filename flash:

However, this is an interactive command, and even though I've specified 
the source and destination, IOS is still prompting me for source file 
and destination file names.  That would make my RANCID script more 
complicated because now I'd have to program in the "expect" stuff as
well.

The ftp-server command on my IOS seems to be gone.

TFTP is dog-slow on our high RTT links.

Am I missing some magic command?



More information about the cisco-voip mailing list