Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Notices

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: eazy2001x
Forum: Scripting 01-23-2007, 04:35 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Ok, I was able to take care of that and...

Ok,

I was able to take care of that and another problem by using the following code:


#$language = "VBScript"
#$interface = "1.0"
' ConnectToMultipleHostsAndSendCommands.vbs
'
Dim us, ps
Forum: Scripting 01-23-2007, 02:05 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
J thanks again.. it worked on the first try :-) ...

J thanks again.. it worked on the first try :-)

New Code:

crt.session.connect "/SSH1 /ACCEPTHOSTKEYS /L "& us &" /PASSWORD "& ps &" "& szHost &""


Now I believe have a formatting or...
Forum: Scripting 01-22-2007, 12:26 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Do you guys think I need to add something extra...

Do you guys think I need to add something extra for SSH1 to work? I tried so many other things and I canít get it to work. What about adding a longer hold time to wait for the connection to be...
Forum: Scripting 01-21-2007, 10:45 AM
Replies: 9
Views: 6,451
Posted By eazy2001x
Chris, This seems like the bulk of your...

Chris,

This seems like the bulk of your code and maybe its a lil advanced for me but i'll try..


Tab.Screen.Synchronous = True
Tab.Screen.WaitForString "sername:"
Tab.Screen.Send...
Forum: Scripting 01-20-2007, 03:10 AM
Replies: 9
Views: 6,451
Posted By eazy2001x
You might be able to get away with this code.. i...

You might be able to get away with this code.. i also added the commands to do a show run. it will also send the output fo the screen to a text file on your HD.


#$language = "VBScript"...
Forum: Scripting 01-19-2007, 04:31 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Another issue I have is with the connection...

Another issue I have is with the connection method part of the script. I have a few older Cisco routers out there that require me to log in with SSH1. Now when I change the script to SSH1 it doesn’t...
Forum: Scripting 01-19-2007, 08:53 AM
Replies: 23
Views: 27,893
Posted By eazy2001x
Very nice... I changed the code to this.. ...

Very nice...

I changed the code to this..


Dim us, ps
us = crt.dialog.prompt("Please Enter Your Username")
ps = crt.dialog.prompt("Please Enter Your Password:","Enter Password","",True)
Forum: Scripting 01-18-2007, 05:03 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Thanks a million.. This makes two of three down...

Thanks a million.. This makes two of three down before I can start putting everything together. I guess Iím not doing too bad for a person who just started VBS scripting a few days ago. I doubt that...
Forum: Scripting 01-18-2007, 02:04 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Ok, So it doesnít seem like VBS kicks back...

Ok,

So it doesnít seem like VBS kicks back "ErrorLevels" after applications complete. I did happen to see something in Visual Basic that used the main

This is what I used to see what type of...
Forum: Scripting 01-18-2007, 12:28 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
On a side note.. I was able to get the...

On a side note..

I was able to get the username and password function to work. Thank God For My Book and Google...



Dim us, ps
us = InputBox("Whats Your Username")
ps = InputBox("Whats...
Forum: Scripting 01-18-2007, 08:22 AM
Replies: 23
Views: 27,893
Posted By eazy2001x
Correct, The error level reported is coming from...

Correct, The error level reported is coming from find.exe because I’m sending the output from the Nmap port 23 check to it to determined weather the device is enabled or not for that connection.
...
Forum: Scripting 01-17-2007, 02:18 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Ok, I tried and tried and tried again.....

Ok,

I tried and tried and tried again.. even went and got a book on VB Scripting to help along with tons of googleing..

I was able to use the code you in the format you set for me and it...
Forum: Scripting 01-16-2007, 04:43 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
JJH thanks.. Ok.. i was able to execute the...

JJH thanks..

Ok.. i was able to execute the NS lookup connand and i wanted to use the find command so i can look for te word open. now if it fined the word open i want it to go to the next step....
Forum: Scripting 01-15-2007, 10:38 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Thanks, The Nslookup script wonít help...

Thanks,

The Nslookup script wonít help much. What I was looking for was a way to call the nmap.exe program. Once the command finishes it will spit out an error code depending on what happens...
Forum: Scripting 01-14-2007, 11:33 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Can anyone Help?

Can anyone Help?
Forum: Scripting 01-14-2007, 11:31 PM
Replies: 8
Views: 11,641
Posted By eazy2001x
The wait commands are not counted in seconds.....

The wait commands are not counted in seconds.. Correct me if Iím wrong but 1000=1 second so your 10000=10 seconds. So if you want to wait for 10000 seconds it will look more like 10000000. Someone...
Forum: Scripting 01-12-2007, 01:33 PM
Replies: 23
Views: 27,893
Posted By eazy2001x
Need Help - Username/Password Prompt Variable Set, Nmap Port Errorlevel Check And Log

Ok,

I was looking into the multiple login VB script and wanted to match it to a batch file i was using with another application. My batch file did the following.

1. Logged into pre defined IP...
Showing results 1 to 17 of 17

 
Forum Jump

All times are GMT -6. The time now is 10:34 PM.