View Single Post
Old 09-11-2012, 09:16 AM
rtb rtb is offline
VanDyke Technical Support
Join Date: Aug 2008
Posts: 4,305
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:
    crt.screen.waitforstring hostname
    crt.Screen.WaitForString("sh cdp ne ")
    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?

VanDyke Software
Technical Support
Reply With Quote