Re: Booting XM Images on Non-XM 2600 Series Routers

From: Josef A (josefnet@gmail.com)
Date: Mon Jan 02 2006 - 14:08:06 GMT-3


Thanks again, Brian.

I'll try it.

Josef

On 1/2/06, Brian McGahan <bmcgahan@internetworkexpert.com> wrote:
>
> SecureCRT supports VBScripting. Here's an example script that
> clears and reloads r1 through r6 and then sw1 and sw2. Based on the Send
> and WaitForString logic you should be able to extrapolate how to script the
> tftp booting:
>
> <start script>
> #$language = "VBScript"
> #$interface = "1.0"
>
> Sub main
> ' turn on synchronous mode so we don't miss any data
> crt.Screen.Synchronous = True
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r1" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r2" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r3" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "reload" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r4" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r5" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "r6" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "sw1" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "delete vlan.dat" & vbCr
>
> crt.Screen.WaitForString "[vlan.dat]?"
>
> crt.Screen.Send vbCr
>
> crt.Screen.WaitForString "confirm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> crt.Screen.Send "sw2" & VbCr
>
> crt.Screen.WaitForString "pen"
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send ";" & VbCr
>
> crt.Screen.Send "en" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr" & VbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "wr e" & VbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "delete vlan.dat" & vbCr
>
> crt.Screen.WaitForString "[vlan.dat]?"
>
> crt.Screen.Send vbCr
>
> crt.Screen.WaitForString "confirm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.WaitForString "#"
>
> crt.Screen.Send "relo" & vbCr
>
> crt.Screen.WaitForString "firm]"
>
> crt.Screen.Send "y" & vbCr
>
> crt.Screen.Send "x"
>
> crt.Screen.WaitForString ">"
>
> ' turn off synchronous mode to restore normal input processing
> crt.Screen.Synchronous = False
> End Sub
> <end script>
>
> HTH,
>
> Brian McGahan, CCIE #8593
> bmcgahan@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987 x 705
> Outside US: 775-826-4344 x 705
> 24/7 Support: http://forum.internetworkexpert.com
> Live Chat: http://www.internetworkexpert.com/chat/
>
> ________________________________________
> From: Josef A [mailto:josefnet@gmail.com]
> Sent: Monday, January 02, 2006 10:36 AM
> To: Brian McGahan
> Cc: GroupStudy.com - CCIE Lab; Robert; Brian Dennis
> Subject: Re: Booting XM Images on Non-XM 2600 Series Routers
>
> Thanks Brian.
>
> You mentioned sometime ago that this could also be automated by using
> scripts within SecureCRT or any other Terminal Server software. Can you
> please offer us some tips on how to achieve this, or even better, share a
> sample of the script here, or on your website.
>
> Thanks for your assistance
> Josef
>
>
> On 1/2/06, Brian McGahan <bmcgahan@internetworkexpert.com> wrote:
> With the new lab requirements now in full swing Brian Dennis and
> I have been receiving numerous questions about platform and version
> support for the new lab.Most of them specifically about how to get
> OSPFv3 support on the non-XM 2600s.Therefore we have written a white
> paper on how to load the XM images onto the non-XM 2600s via TFTP.
> Check here for step by step instructions:
>
> http://www.internetworkexpert.com/resources/tftpdnld.htm
>
>
> HTH,
>
> Brian McGahan, CCIE #8593
> bmcgahan@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987 x 705
> Outside US: 775-826-4344 x 705
> 24/7 Support: http://forum.internetworkexpert.com
> Live Chat: http://www.internetworkexpert.com/chat/
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Feb 01 2006 - 07:45:47 GMT-3