[cisco-voip] Non-interactive CLI commands?
jean-francois.guay at bell.ca
jean-francois.guay at bell.ca
Wed Nov 21 11:17:20 EST 2007
By issuing the
# copy http://<filename url> flash:<destination filename> *enter* +
*enter*
in your script, you should not have to enter additionnal information and
the router should go on its way. The second *enter*/line feed confirms
the command for you by responding automatically to the router
confirmation dialog for which "yes" is the default answer.
I don't think that should be too hard to implement, probably requirering
an extra "\n" or two in your script.
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 10:16
To: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] Non-interactive CLI commands?
jean-francois.guay at bell.ca wrote:
> 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.
Well, I'm using HTTP so that I don't need to provide login credentials
when I pull the IOS to the router.
The sticking point is that I want to make this script _very_ simple.
Using clogin from RANCID I can script non-interactive commands quite
easily, but to get the script to send extra CR is the issue, and I'd
prefer not to do that.
So, there's no "I-Know-What-Im-Doing-Do-What-I-Say" mode for the copy
command?
More information about the cisco-voip
mailing list