Re: Alias that does multiple commands at once?

From: Richard Davidson (rich@myhomemail.net)
Date: Wed Apr 02 2003 - 20:43:03 GMT-3


I don't think you can do that with an alias. You best
bet is an automated tool. you could write a perl
script or bat file. You could just buy kiwi cat
tools. I think cat tools is perl based but im not
sure. I use it to update lots of routers as well as
backup the configs. it's like $60 and well worth it.
http://www.kiwisyslog.com/
Rich
--- "Michael L. Williams" <MichaelWilliams@swbell.net>
wrote:
> Is it possible to create an alias that does multiple
> commands at once?
>
> Reason I ask as that we're moving our data center,
> and are going to be
> connecting all devices into 4 distribution switches
> (currently they
> connect directly to the core switches), and so I'll
> configuring a few
> hundred switchports and wanted to be able to type
> '100f' and have it do:
>
> switchport mode access
> speed 100
> duplex full
> spanning-tree portfast
> no shut
>
> Can this be done? Icouldn't find a way to indicate
> carriage return on a
> single line. I know I could copy /paste, but it'd
> be nicer to have
> alias for many different switchport configurations
> and to be able to
> call them up at will.
>
> Thanks!
> Mike W.



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:45 GMT-3