Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 35
Search took 0.00 seconds.
Search: Posts Made By: olivebranch2006
Forum: Scripting 11-04-2013, 05:25 PM
Replies: 6
Views: 3,056
Posted By olivebranch2006
Now Working

Hello Todd,

It is working now by replacing
For i to 48

with
For Each strSwitchPort In vSwitchPorts

Funny, the i to 48 has worked for me before. maybe i didn't declare a variable...
Forum: Scripting 11-04-2013, 04:59 PM
Replies: 6
Views: 3,056
Posted By olivebranch2006
Function issue

Hello Todd,

I skimmed the syntax of functions and subs in the microsoft documentation, thank you. I'm still getting this error even though I'm following sub and function syntax correctly:
...
Forum: Scripting 11-04-2013, 03:18 PM
Replies: 6
Views: 3,056
Posted By olivebranch2006
Still a problem

Hello,

I have read the guide but it has been a while. Now that I've added a bunch of tabs and tried placing each function in a sub, I'm still getting the same error. Can you please advise?
...
Forum: Scripting 10-31-2013, 06:03 PM
Replies: 6
Views: 3,056
Posted By olivebranch2006
If Then with Function produces error

Hello,

This If Then End if statement with a function in it is producing the error:
VBScript Compilation error
Error: Expected Statement
Line: 45
If mySwitchCount = 1 Then 3750x48-1

Do you...
Forum: Scripting 04-11-2013, 04:48 PM
Replies: 11
Views: 4,035
Posted By olivebranch2006
Tried another change but failed

Screen JPEG attached. This is after:
1. enabling ProgramAllAPs function again.
2. increased pause at end of SaveConfig function from 500ms to 3second
3. added 3 second pause at middle of...
Forum: Scripting 04-11-2013, 04:18 PM
Replies: 11
Views: 4,035
Posted By olivebranch2006
logs created but blank

I added the code like so:

' Set log file name
crt.Session.logfilename = "c:\FTPROOT\connection1.log"
' Enable logging
crt.Session.log true
' Get current trace level so we can set it back after...
Forum: Scripting 04-09-2013, 06:19 PM
Replies: 11
Views: 4,035
Posted By olivebranch2006
Any luck?

Any luck? Can I help? Oh I didn't see your reply. I'll get that as soon as possible.
Forum: Scripting 04-04-2013, 04:01 PM
Replies: 11
Views: 4,035
Posted By olivebranch2006
Edited Default.ini

Edited Default file and ran the script. Same problem:
CRT Scripting Runtime error

Error: Connection failed

LWAP-Program-3.31.vbs
Line: 256

After clicking OK, the first session is now...
Forum: Scripting 04-04-2013, 10:31 AM
Replies: 11
Views: 4,035
Posted By olivebranch2006
Script Code

This problem has existed since I wrote the script and I haven't been able to figure it out. SecureCRT is version 7.0.1 (x64 build 374). Platform is Windows 7 Enterprise N 64 bit.

Thanks!
Forum: Scripting 04-03-2013, 07:25 PM
Replies: 11
Views: 4,035
Posted By olivebranch2006
SSH to different hosts fails

My script to SSH into different Cisco Wireless LAN Controllers sequentially to program LWAPs only connects to the first Controller. Upon trying to SSH to the next Cisco Controller it states CRT...
Forum: Scripting 09-12-2012, 05:26 PM
Replies: 2
Views: 7,238
Posted By olivebranch2006
Hostname it is!

That was it! After removing the hostname, it worked. That was a mistake, don't know why I put that there.

Thanks!
Forum: Scripting 09-10-2012, 06:47 PM
Replies: 2
Views: 7,238
Posted By olivebranch2006
Unhappy Switch Audit Script waits unexpectedly

Hello,

I wrote an audit vbscript which SSHs into a cisco switch, runs commands, records the results into Excel spreadsheet, exits that switch and repeats for every switch listed in column B of the...
Forum: Scripting 01-11-2011, 12:23 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Working Code

I know we had some emails off-forum so here is the semi-working script... It works by grabbing the first ip address from Excel's 6th column, row 4. My ip addresses are listed in that column and the...
Forum: Scripting 11-08-2010, 02:43 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Uploaded the Vb Script

I've uploaded the VB Script again. If you see an "option" ignore it, it's commented out.
Forum: Scripting 10-27-2010, 11:22 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Emailed

I just emailed the raw logs.:)
Forum: Scripting 10-27-2010, 06:53 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Raw Log Captures

I've attached two logs. One labeled "typing-commands" is me telnetting into the switch and typing the "show version" command which I want to input into a string. Another labeled "Running-Script"...
Forum: Scripting 10-27-2010, 05:13 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Upload

Here is the latest copy of the script.

Can the string length be increased with a "Dim showver as var" or something similar? I thought strings are variable length by default and they can be up to...
Forum: Scripting 10-27-2010, 05:09 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
string length

I am assuming there is a string length problem unless the MsgBox is not showing the entire string?

When the script is run it also states:

number of matches found: 1

And it should be three.
...
Forum: Scripting 10-27-2010, 04:54 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Problem

So far it is working but the "showver" string is not capturing the entire string of characters as defined by crt.screen.readstring("register")

It only captures:

*1 Master 3cdf.1e12.bc00 ...
Forum: Scripting 10-27-2010, 03:30 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Reply to Questions

The first line looks a little suspicious because register is not declared as a variable anywhere, and is not passed as a string. Did you mean to declare it as a variable, or are you wanting to read...
Forum: Scripting 10-22-2010, 01:27 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Script Upload

The script did not upload, uploading as a zip file.

olivebranch2006
Forum: Scripting 10-22-2010, 01:24 PM
Replies: 14
Views: 6,533
Posted By olivebranch2006
Lightbulb vbtextcompare and string issue

Hello,

I am having an issue with running vbtextcompare within a string. The dim specified cannot be defined "dim xxx As String". Because it is not specified as a string securecrt throws a "type...
Forum: Scripting 08-31-2010, 02:01 PM
Replies: 16
Views: 17,372
Posted By olivebranch2006
Lightbulb An addition

Hello,

I forgot about an addition to this script. Is there any way to use a column from an excel file to pull the ip addresses from?

Thanks
Forum: Scripting 08-31-2010, 12:45 PM
Replies: 16
Views: 17,372
Posted By olivebranch2006
Thumbs up It is [LF]

Your guess was spot-on because the function revealed [LF]. After inserting:
crt.Screen.WaitForString [LF]
before
hostname = crt.Screen.ReadString("#")
The log file name is now exactly how I want...
Forum: Scripting 08-31-2010, 12:33 PM
Replies: 16
Views: 17,372
Posted By olivebranch2006
Smile Trying the code

Sorry for the delay, I've been slammed with other projects. Trying your reveal hidden characters code now.
Showing results 1 to 25 of 35

 
Forum Jump

All times are GMT -6. The time now is 06:55 PM.