Alias that does multiple commands at once?

From: Michael L. Williams (MichaelWilliams@swbell.net)
Date: Wed Apr 02 2003 - 18:58:18 GMT-3


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