Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 38
Search took 0.00 seconds.
Search: Posts Made By: mikit
Forum: Scripting 06-10-2014, 09:13 AM
Replies: 10
Views: 3,009
Posted By mikit
Hi Todd, now it is working. Below is the...

Hi Todd,

now it is working. Below is the part of the script that I am using. So it tries to connect with username/password. It connects to device and waits for #, but as password is not correct, #...
Forum: Scripting 06-10-2014, 08:04 AM
Replies: 10
Views: 3,009
Posted By mikit
Hi Todd, when I am not using authentication...

Hi Todd,

when I am not using authentication in terminal window, cnxn string works OK. I am using the script to gather data form various type of devices and some are using md5. some sha, some 3des...
Forum: Scripting 06-06-2014, 12:27 PM
Replies: 10
Views: 3,009
Posted By mikit
Ok, now the autheticatio in terminal is working,...

Ok, now the autheticatio in terminal is working, I mean I was able to turn that option on, but it got stuck on crt.Session.Connect cnxnString. Probably cnxn strin is not OK.
Forum: Scripting 06-06-2014, 11:57 AM
Replies: 10
Views: 3,009
Posted By mikit
I am using v 6.5.0. There is no error...

I am using v 6.5.0.

There is no error message. Script is working but it is still showing dialog box for authentication. I've tried also False.
Forum: Scripting 06-06-2014, 11:31 AM
Replies: 10
Views: 3,009
Posted By mikit
I've tried this, but not working: Set...

I've tried this, but not working:

Set objConfig = crt.OpenSessionConfiguration("Default")
objConfig.SetOption "Auth Prompts In Window", True

'Connect via SSH2
cnxnString = "/SSH2...
Forum: Scripting 06-06-2014, 10:32 AM
Replies: 10
Views: 3,009
Posted By mikit
I figured out the no username part: ...

I figured out the no username part:

cnxnString = "/SSH2 /ACCEPTHOSTKEYS /L " & vbcr & " /PASSWORD " & enableP & " /C 3DES /M MD5 /M SHA1-96 " & ip
Forum: Scripting 06-06-2014, 09:20 AM
Replies: 10
Views: 3,009
Posted By mikit
connect via SSH without using username

Hello,

I am trying to write a script to connect to a device via SSH without using the username, but just password. Is it possible?

Here is the ssh connection string I am using to connect with...
Forum: Scripting 03-05-2013, 09:05 AM
Replies: 3
Views: 2,640
Posted By mikit
Somtimes I try to so simple thing in complicate...

Somtimes I try to so simple thing in complicate way :mad: Of course solution is ver very easy. All I had to do was to remove "(x)" and it is working. :D
Forum: Scripting 03-04-2013, 01:22 PM
Replies: 3
Views: 2,640
Posted By mikit
I was thinking to do it this way, but...

I was thinking to do it this way, but unfortunately I have to do compare one by one. I cannot put all access list into one dictionary :-(
Forum: Scripting 03-04-2013, 09:25 AM
Replies: 3
Views: 2,640
Posted By mikit
How to add data to multiple arrays using "For"?

Hello,

I know, that title is not very clear, but here is what i ma trying to do:

In one thread I was asking how to compare two sets of data, one read from a template and the other from a...
Forum: Scripting 01-09-2013, 12:11 PM
Replies: 5
Views: 2,828
Posted By mikit
It is not a typo. I do not know why, but i had to...

It is not a typo. I do not know why, but i had to put 64 there to get 100 columns :confused:

Iw will try objConfig.SetOption and see if it works :-)

Thank you.
Forum: Scripting 01-09-2013, 10:49 AM
Replies: 5
Views: 2,828
Posted By mikit
Thank you Brenda for your response. I am...

Thank you Brenda for your response.

I am using v6.5

Anyway, as you mentioned ini file, I've opened default.ini and changed:

D:"Rows"=00000018
D:"Cols"=00000050

to
Forum: Scripting 01-09-2013, 09:42 AM
Replies: 5
Views: 2,828
Posted By mikit
set number of columns when session starts

Hello,

I am trying to get some information from several devices. Problem is, that everytime script connects to new device, session is resized back to 80 columns. This is causing a problem, because...
Forum: Scripting 09-24-2012, 03:10 PM
Replies: 18
Views: 7,539
Posted By mikit
anyway... I am wondering if you are able to...

anyway... I am wondering if you are able to connect to the next device. Connecting to the first device on ports 4001-4010 should work, but I am not sure if your script will be able to move to the...
Forum: Scripting 09-24-2012, 02:53 PM
Replies: 18
Views: 7,539
Posted By mikit
You have to put disconnect string before the...

You have to put disconnect string before the first Next:



' stop Syn with the secreen
crt.Screen.Synchronous = False
'Disconnect session
crt.Session.Disconnect

Next...
Forum: Scripting 09-24-2012, 06:00 AM
Replies: 10
Views: 4,800
Posted By mikit
oh... stupid me... of course, Left function. I am...

oh... stupid me... of course, Left function. I am using it to read a hostname from a device. :-) Yes, I think Left function is the best option.

In my case, I have two types of devices, US, and...
Forum: Scripting 09-23-2012, 10:22 AM
Replies: 18
Views: 7,539
Posted By mikit
My unerstanding is that for device 1 you are...

My unerstanding is that for device 1 you are using port 4001, for device 2 port 4002 ... for device 10 port 4010.
If this is the case, then I wouldn't use two For Next loops.

I would rather use...
Forum: Scripting 09-21-2012, 04:28 PM
Replies: 18
Views: 7,539
Posted By mikit
you can use x instead of i for x = 4001 to...

you can use x instead of i

for x = 4001 to 4010

/SSH2 /P " & x...
Forum: Scripting 09-21-2012, 02:12 PM
Replies: 10
Views: 4,800
Posted By mikit
One more question rtb. As ypu can see I am...

One more question rtb.

As ypu can see I am using InStr function to check whether IP includes 10.1 string.

If Instr(1, ip, "10.1", 1) <> 0 Then

It starts to look in the string from position...
Forum: Scripting 09-21-2012, 01:02 PM
Replies: 10
Views: 4,800
Posted By mikit
Hi rtb, again, your example was very useful....

Hi rtb,

again, your example was very useful. I have completed my script and it is working.

In my case, I have two sets of network devices, US devices and international devices. They have...
Forum: Scripting 09-20-2012, 01:55 PM
Replies: 10
Views: 4,800
Posted By mikit
This is what I have for now, but yeah... it is...

This is what I have for now, but yeah... it is not working... it gets stucked on line in bold once it tries three passwords and instead of "ssword:" string it awaits, hostname> appears.
...
Forum: Scripting 09-20-2012, 01:26 PM
Replies: 10
Views: 4,800
Posted By mikit
I ma using: index =...

I ma using:

index = crt.Screen.WaitForStrings("#", "ssword:", ">")
If index = 1 Then
If index = 2 Then
If index = 3 Then

But the question is how to put there that the script will try e.g. 5...
Forum: Scripting 09-20-2012, 11:38 AM
Replies: 10
Views: 4,800
Posted By mikit
try several passwords to log in to device

Hello,

I am tryin to figure out how to write a script which will be trying passwords from a file until I am able to connect to device.

Actually I am trying to log in to enable mode on cisco...
Forum: Scripting 09-20-2012, 09:46 AM
Replies: 22
Views: 8,063
Posted By mikit
Hi rtb, turning off On Error Resume Next...

Hi rtb,

turning off On Error Resume Next really helped to debug my script. Now it is finally working as it should.

Here's the final script:

#$language = "VBScript"
#$interface = "1.0"
...
Forum: Scripting 09-19-2012, 09:02 AM
Replies: 22
Views: 8,063
Posted By mikit
Hi rtb, I've tried to turn on raw log, but...

Hi rtb,

I've tried to turn on raw log, but it is not working.

But I have another question. I have modified the script to cover also SSH1 and telnet in case SSH2 is not working. I've used "if"...
Showing results 1 to 25 of 38

 
Forum Jump

All times are GMT -6. The time now is 01:38 PM.