View Single Post
  #4  
Old 05-04-2012, 10:26 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
You're using crt.Session.Connect, and no crt.Session.Disconnect. I think the session must be getting closed in a way that's not obvious in the code, because you would probably see an error if trying to use Connect when already connected. So, I think there's more going on than has been shown.

Are you disconnecting from the remote through some other command before trying again to connect?

When you say it's skipping IP's, how are you making that determination?

Which version of SecureCRT are you using (Help / About SecureCRT...)?

Can you add a msgbox do you see that IP's are not skipped, and see if you notice anything different about the SecureCRT connections?
Code:
for each ip in ips
  crt.Session.Connect "/TELNET " + ip 'Creates telnet connection
  Saver(area(count))
  crt.Screen.Send count
  'BackUp area(count), strUserInput
  count= count+1

  ' Debug MsgBox to help verify that no IP addresses are skipped
  MsgBox "IP = " & ip & vbcr & "count = " & count   
next
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote