From: Nate vanMaren (nate@xxxxxxxxx)
Date: Fri Jul 26 2002 - 17:42:57 GMT-3
Brian,
Sure
Dim result
result = crt.screen.WaitForStrings("x", "y", 10)
MsgBox result
If result = 2 Then
crt.screen.send "this"
End If
If result = 1 Then
crt.screen.send "that"
End If
If result = 0 Then
msgbox "Timed out"
End If
A case statement really would be better, but I just threw this together quickly
.
-Nate
----- Original Message -----
From: "Brian Dennis" <brian@5g.net>
To: "'Nate vanMaren'" <nate@sisna.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, July 26, 2002 2:26 PM
Subject: RE: Ping Scripts with Reflection or SecureCRT?
> Nate,
> Do you know if it can handle issues like if the router's prompt is X do
> this but it the router's prompt is Y do that? I've written some pretty
> long VB scripts for it but I haven't seen how to handle these types of
> issues.
>
> Brian Dennis, CCIE #2210 (R&S/ISP Dial)
>
> -----Original Message-----
> From: Nate vanMaren [mailto:nate@sisna.com]
> Sent: Friday, July 26, 2002 1:20 PM
> To: Brian Dennis
> Cc: ccielab@groupstudy.com
> Subject: Re: Ping Scripts with Reflection or SecureCRT?
>
> SecureCRT is capable of hosting "ActiveX Script" engines. The most
> common ActiveX script engines are
> VBScript and JScript (Microsoft's version of JavaScript), both of which
> are freely available from
> Microsoft. Chances are you already have them installed if you've
> installed Internet Explorer 4.0.
>
> ActiveX script engines communicate with SecureCRT via standard
> interfaces. Therefore, SecureCRT can
> host any compliant script engine to run your scripts. The advantage of
> this approach is that you can
> script SecureCRT using the language of your choice. If an ActiveX script
> engine is available for
> your preferred scripting language, you can write scripts that will work
> with SecureCRT
>
> Scripts for SecureCRT are text files that you create with your text
> editor. Each script that
> SecureCRT runs must have a header that begins on the first line of the
> script. The header is used by
> SecureCRT to identify which script language the script is written in and
> the version of SecureCRT's
> scripting interface. Each line of the script header must begin with a
> (#) character. The SecureCRT
> script header requires a $language line that identifies the script
> engine and an $interface line to
> identify SecureCRT's interface version.
>
> -Nate
> ----- Original Message -----
> From: "Brian Dennis" <brian@5g.net>
> To: "'Michael Snyder'" <msnyder@ldd.net>
> Cc: <ccielab@groupstudy.com>
> Sent: Friday, July 26, 2002 2:12 PM
> Subject: RE: Ping Scripts with Reflection or SecureCRT?
>
>
> > SecureCRT supports line delay just like HyperTerm. I don't know of
> > anything that is in HyperTerm that isn't in SecureCRT. As a side note
> > SecureCRT really doesn't support true scripting but it can execute a
> > sequence of commands which is very useful.
> >
> > Brian Dennis, CCIE #2210 (R&S/ISP Dial)
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Michael Snyder
> > Sent: Thursday, July 25, 2002 4:39 PM
> > To: 'Joe'
> > Cc: ccielab@groupstudy.com
> > Subject: Ping Scripts with Reflection or SecureCRT?
> >
> > Well, it's news to me that they aren't using hyperterm anymore.
> >
> > Hyperterm sucks, but it was a known evil vs. an unknown one.
> >
> > Here's the rub, I use ping scripts that require about 1100 ms per
> line.
> >
> > Will the new terminal programs allow line timing settings? I bet not.
> >
> > I just downloaded SecureCRT and it doesn't seem to have those
> settings,
> > thought It appears to have real scripting support. That has
> > possibilities.
> >
> > How about a complete canned script that does ospf. Just thinking.
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Joe
> > Sent: Thursday, July 25, 2002 5:13 PM
> > To: 'Michael Snyder'; 'Shaun Wakelen'
> > Cc: ccielab@groupstudy.com
> > Subject: RE: Practice with Reflection or Hyperterm???
> >
> > When I last took the lab, it was with Reflections. And note that we
> > were
> > explicitly told NOT to make any settings changes in Reflections, but I
> > think
> > that will depend who proctors.
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
> > Michael Snyder
> > Sent: Thursday, July 25, 2002 3:06 PM
> > To: 'Shaun Wakelen'
> > Cc: ccielab@groupstudy.com
> > Subject: Practice with Reflection or Hyperterm???
> >
> >
> > I'm a bit slow at times.
> >
> > Is the terminal program now used in the lab, Reflection?
> >
> > Gee, I'm been using hyperterm forever because they used it in the lab.
> >
> > So in review,
> >
> > If I'm taking my lab in RTP next month, I should be using reflection
> to
> > practice?
> >
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Shaun Wakelen
> > Sent: Thursday, June 06, 2002 6:41 AM
> > To: eric ong
> > Cc: ccielab@groupstudy.com
> > Subject: RE: Break sequence for Reflection?
> >
> > Eric
> >
> > Set-up customised buttons on the toolbar to do the various break
> > sequences
> > you have listed. I just use CTRL-^^, CTRL-^x and CTRL-BREAK.
> > (Setup-Toolbar-Customize, then New Button and ensure you have checked
> > the
> > box 'insert special characters using the keyboard'). I also configured
> > these
> > on the lab. Takes a few minutes, but well worth it I feel.
> >
> > Shaun Wakelen
> > #9007
> >
> > -----Original Message-----
> > From: eric ong [mailto:ongyongk@yahoo.com]
> > Sent: 06 June 2002 12:17
> > To: ccielab@groupstudy.com
> > Subject: Break sequence for Reflection?
> >
> > May I know the break sequence for the Reflection terminal app used in
> > the
> > CCIE lab?
> >
> > Have tried Ctrl-Shift-6, Ctrl-C, Ctrl-Break, Ctrl-Alt-Break,
> > Ctrl-Shift-Break, etc...
> >
> > Thanks.
> >
> > eric
> >
> >
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:45 GMT-3