#1
|
||||
|
||||
crt.Session.Connect hangs
Hi,
I had a problem with crt.session.disconnect. It would hangs forever. This has been corrected. I'm having the same problem is crt.session.connect : Code:
crt.session.Disconnect sessioncmd = "/SERIAL COM1 /BAUD 9600 /CTS /DATA 8 /DSR /PARITY NONE /STOP 0 /XON" crt.Session.Connect sessioncmd Code:
crt.session.Disconnect sessioncmd = "/SSH1 /L xxx /C 3DES /PASSWORD xxx 10.18." & ThirdIP & "." & FourthIP + 1 crt.session.Connect sessioncmd I had the misfortune to upgrade my production machine from 4.1 to 5.0 recently and now I can't configure any routers. :( Thanks! cyth |
#2
|
||||
|
||||
Hi Cythraul,
I'm sorry to hear that there have been issues with crt.session.connect. I just need to get a little more information to find out what is happening. Are you using CRT or SecureCRT? Could you tell me more about what is happening (can't connect, can connect but can't authenticate, can authenticate but have issues afterward, etc)? Are any errors being displayed? Which exact version and build is installed? This can be found in the 'About' option in the 'Help' menu of the application.
__________________
Thanks, Teresa Teresa Nygren |
#3
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
cyth |
#4
|
||||
|
||||
Hi Cyth,
If I understand correctly, you have gone back to SecureCRT 4 to resolve this issue. Is this correct? If so, we would like to see this resolved in 5.0.4. Was the support ticket opened over the phone or via email? Does this connection go through a firewall to connect?
__________________
Thanks, Teresa Teresa Nygren |
#5
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
Beside, crt.session.connect would timeout if a connection problem was present. It’s not the case here. I tried once to leave the script running all week-end just to see if it would have done something. When I came in Monday morning, it was still sitting there. Thanks! cyth |
#6
|
||||
|
||||
Hi Cythraul,
Thank you for all the information! We have opened a trouble ticket for this issue and hope to have it resolved soon. I believe that I've found your contact information from the previous thread you mentioned. However, just to be certain that any pre-release build that is created to resolve this issue goes to the correct person, could you send an email to support@vandyke.com with a subject of ATTN: Teresa Forum Thread 1203?
__________________
Thanks, Teresa Teresa Nygren |
#7
|
||||
|
||||
Hi Cythraul,
We believe that we have a resolution for this hang in a pre-release version of SecureCRT 5.1. Please send me an email if you would like to try this version so I can make certain that I get the download to the correct person.
__________________
Thanks, Teresa Teresa Nygren |
#8
|
||||
|
||||
crt.Session.Connect "/SERIAL ..."
I found this thread when I was having problems figuring out a way to set a timeout for a serial connection, which I think was one of the problems the original poster had.
While there doesn't seem to be a way to include a timeout in crt.Session.Connect, you can achieve the same results by telling your script to wait a given amount of time for the cursor to move. Code:
cResult = crt.Screen.waitforcursor (5) This workaround is useful when connecting to a serial devices whose baud rates may not all be set the same. Here is the relevant code from a script I recently finished to configure cisco 800's. Code:
Sub Script (intStop, strRetry, intRetryCnt) 'connect @ 115200 or 9600 depending on intRetry If crt.Session.Connected = True Then crt.Session.Disconnect End If If strRetry = "" Then crt.Session.Connect "/SERIAL COM1 /BAUD 115200 /DATA 8 /NODSR /PARITY NONE /NOXON" 'crt.Dialog.messagebox "115200" Else crt.Session.Connect "/SERIAL COM1 /BAUD 9600 /DATA 8 /NODSR /PARITY NONE /NOXON" 'crt.Dialog.messagebox "9600" End If cResult = crt.Screen.waitforcursor (5) 'crt.Dialog.messagebox "cResult: " & cResult If cResult = 0 Then 'no text was output on screen, therefore wrong baud rate or not connected...try again at 9600 intRetryCnt = intRetryCnt + 1 strRetry = "Yes" If intRetryCnt <> 1 Then crt.Dialog.messagebox "Please check your console cable, insure that the device is powered, and press ''OK'' to try again.","Cannot Communicate with Cisco 800" intRetryCnt = 0 strRetry = "" End If Exit Sub Else intRetryCnt = 0 strRetry = "" End If |
#9
|
|||
|
|||
Hi mp3droid,
Thanks for taking the time to post this work-around. It looks like it will be helpful for future script writers. |
#10
|
|||
|
|||
indeed thanks mp3droid
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|