RE: IOS - running multiple commands in one line

From: David Prall <dcp_at_dcptech.com>
Date: Tue, 8 Mar 2011 22:53:01 -0500

copy flash:commandfile run

David

--
http://dcp.dcptech.com
> -----Original Message-----
> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> Radioactive Frog
> Sent: Tuesday, March 08, 2011 10:47 PM
> To: Brian McGahan
> Cc: Cisco certification
> Subject: Re: IOS - running multiple commands in one line
> 
> Thanks everyone..
> Yes the requirement is to run 2 command at the same time....
> like
> 
> interface fe0/0
> shut;noshut
> 
> think about if you're remotely logged into a router and need to do
> shut+noshut at the same time.
> 
> of course Macro would do it or EEM or any cron type TCL scripting.
> 
> The idea is to keep it as simple as possible.
> 
> 
> 
> On Wed, Mar 9, 2011 at 1:21 PM, Brian McGahan <bmcgahan_at_ine.com> wrote:
> 
> > You could also do this with TCL.  Not all platforms and versions
> support it
> > though.
> >
> >
> > Brian McGahan, CCIE #8593 (R&S/SP/Security)
> > bmcgahan_at_INE.com
> >
> > Internetwork Expert, Inc.
> > http://www.INE.com
> >
> >
> > -----Original Message-----
> > From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf
> Of
> > Jay McMickle
> > Sent: Tuesday, March 08, 2011 7:40 PM
> > To: Steve Di Bias
> > Cc: Ryan West; Radioactive Frog; Cisco certification
> > Subject: Re: IOS - running multiple commands in one line
> >
> > Good point, Steve. Thanks.
> >
> > Regards,
> > Jay McMickle- CCNP,CCSP,CCDP
> > Sent from my iPhone
> > http://mycciepursuit.wordpress.com
> >
> >
> > On Mar 8, 2011, at 3:03 PM, Steve Di Bias <sdibias_at_gmail.com> wrote:
> >
> > >
> > > Jay is correct, if you are asked to do something in one line use a
> macro.
> > However, since this is a global macro you would need to modify it
> just a
> > little bi by adding in the "do" keyword
> > >
> > > macro name test
> > > do ping 5.5.5.5
> > > do show flash
> > > @
> > >
> > > macro global apply test
> > >
> > >
> > > On Tue, Mar 8, 2011 at 9:17 AM, Jay McMickle
> <jay.mcmickle_at_yahoo.com>
> > wrote:
> > > Yes, it's possible with a "macro name commands" command.
> > > Macro name test
> > >  Ping 5.5.5.5
> > >  Sh run
> > >  @
> > > Exit
> > >
> > > Now execute test and it will perform the operations.
> > >
> > > This is actually covered in IPExperts VOD day 1 material under
> lecture,
> > bridging and switching. I'm sure INE has it too, but only have their
> > workbooks.
> > >
> > > Regards,
> > > Jay McMickle- CCNP,CCSP,CCDP
> > > Sent from my iPhone
> > > http://mycciepursuit.wordpress.com
> > >
> > >
> > > On Mar 7, 2011, at 4:59 PM, Ryan West <rwest_at_zyedge.com> wrote:
> > >
> > > > Is this a test type question or something that you'd like to be
> able to
> > script.  If the later, I would look at RANCID.
> > > >
> > > > -ryan
> > > >
> > > > -----Original Message-----
> > > > From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On
> Behalf
> > Of
> > Radioactive Frog
> > > > Sent: Monday, March 07, 2011 5:55 PM
> > > > To: Cisco certification
> > > > Subject: IOS - running multiple commands in one line
> > > >
> > > > Is there a way to do this?
> > > >
> > > > like
> > > >
> > > > router#ping 5.5.5.5 ; show flash:
> > > >
> > > > just in one line?
> > > >
> > > >
> > > > Blogs and organic groups at http://www.ccie.net
> > > >
> > > >
> _______________________________________________________________________
> > > > Subscription information may be found at:
> > > > http://www.groupstudy.com/list/CCIELab.html
> > > >
> > > >
> > > > Blogs and organic groups at http://www.ccie.net
> > > >
> > > >
> _______________________________________________________________________
> > > > Subscription information may be found at:
> > > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > > Blogs and organic groups at http://www.ccie.net
> > >
> > >
> _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > -Steve Di Bias
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> >
> _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> >
> _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> 
> 
> Blogs and organic groups at http://www.ccie.net
> 
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Tue Mar 08 2011 - 22:53:01 ART

This archive was generated by hypermail 2.2.0 : Fri Apr 01 2011 - 06:35:41 ART