View Single Post
  #19  
Old 08-13-2014, 04:07 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi hvh2000,

There are many ways to accomplish your goal. I know that there is a thread that discusses this exact change. If I can find the thread, I will post it.

The line that needs to be modified in the original script would be 251. Rather than waiting for the prompt, you could wait for all possible prompts. If strPrompt is defined as hostname#, then you could create a new variable by replacing the # with (config)#. For example:
strConfigPrompt = Replace(strPrompt, "#", "(config)#")
The ReadString() call would have multiple strings. For example:
strResult = ReadString(strPrompt, strConfigPrompt)
Does this help?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730

Last edited by rtb; 08-14-2014 at 08:28 AM.
Reply With Quote