View Single Post
  #2  
Old 09-11-2012, 08:16 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi Christo,

Without knowing anything about the devices to which your script is connecting, my guess is that the issue is in the order of the lines of code below:
Code:
    crt.screen.waitforstring hostname
    crt.Screen.WaitForString("sh cdp ne ")
    crt.Screen.WaitForString(vbCr)
    crt.Screen.WaitForStrings "Device ID: ", "#"
You are waiting for a hostname prior to waiting for the command. Do you expect to receive the hostname from the remote device prior to the command being echoed?
__________________
--Todd

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