Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 52
Search took 0.00 seconds.
Search: Posts Made By: Chaucer
Forum: Scripting 09-19-2008, 11:33 AM
Replies: 6
Views: 14,696
Posted By Chaucer
so if I understand correctly, you are just...

so if I understand correctly, you are just wanting to pull whatever interface you need from the show ip int bri.

Try using something like this:


crt.screen.send "show ip int bri" & vbCr...
Forum: Scripting 09-08-2008, 09:56 AM
Replies: 4
Views: 8,708
Posted By Chaucer
So enabling at the start of the script will go...

So enabling at the start of the script will go into subprocedures then?
Forum: Scripting 09-03-2008, 04:01 PM
Replies: 4
Views: 8,708
Posted By Chaucer
Wow.. Did I ask a question even the support guys...

Wow.. Did I ask a question even the support guys wont answer?

:)
Forum: Scripting 09-03-2008, 09:59 AM
Replies: 2
Views: 2,651
Posted By Chaucer
Ones I use regularly are: VBScript:...

Ones I use regularly are:
VBScript: Programmer's Reference - ISBN: 1-861002-71-8 - Publisher: Wrox
Windows 2000 Windows Script Host - ISBN: 1-57870-139-2 - Publisher: New Riders
Forum: Scripting 09-02-2008, 11:09 AM
Replies: 4
Views: 8,708
Posted By Chaucer
crt.Screen.Synchronous - Best Practices

I'm looking for a best practices document or explanation for using crt.Screen.Synchronous.

If you set it to 'True', does it stay active if you go into a different sub-procedure or Function? Or...
Forum: Scripting 04-07-2008, 01:08 PM
Replies: 6
Views: 6,328
Posted By Chaucer
There should be several scripts with this...

There should be several scripts with this functionality in the forums. Also another good place to start would be to open SecureCRT. Then click on the "?" on the toolbar. And Finally click on...
Forum: Scripting 04-05-2008, 02:36 PM
Replies: 6
Views: 6,328
Posted By Chaucer
zturbo, that would be very easy to do. ...

zturbo,

that would be very easy to do.

have an inputbox ask for how many vlans you want to create. store that into a variable. redim an array to be that many entries

Then use a simple for...
Forum: Scripting 04-05-2008, 02:31 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Answers: I had a timeout with the...

Answers:

I had a timeout with the waitforstring and I had the same symptoms.

I cannot remember why I put the Public in there but since that's on the SaveFolder procedure, I would not think...
Forum: Scripting 04-02-2008, 04:12 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Yet if I were to move that subroutine to another...

Yet if I were to move that subroutine to another file and use:


Sub Include(file)
Dim fsoinclude, finclude, str
Set fsoinclude = CreateObject("Scripting.FileSystemObject")
Set finclude =...
Forum: Scripting 04-02-2008, 03:52 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Btw the SaveConfig Sub works if I set it up in...

Btw the SaveConfig Sub works if I set it up in its own script:


'**********
'Get Config
'**********
Sub SaveConfig

Dim hostname, temp, result
Dim file, fso
Forum: Scripting 04-02-2008, 03:10 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Same thing. I've edited the script down some,...

Same thing. I've edited the script down some, taking out any junk. I've also rewritten the save config portion. Basically it gets to line 271:

Line 270: crt.screen.send "show run | inc hostname"...
Forum: Scripting 03-11-2008, 04:46 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Dont know. when it hit the criteria to resize it,...

Dont know. when it hit the criteria to resize it, the script would skip whatever was after that line.
Forum: Scripting 03-07-2008, 11:11 AM
Replies: 16
Views: 7,492
Posted By Chaucer
# $language = "VBScript" # $interface = "1.0" ...

# $language = "VBScript"
# $interface = "1.0"

'Written by Chaucer
'Date: 3/6/2008
'Gets data from the switches and aps
'Revision: To damn many

Option Explicit
Const ForReading = 1
Forum: Scripting 03-07-2008, 11:10 AM
Replies: 16
Views: 7,492
Posted By Chaucer
I do have an update to this. I think it was a...

I do have an update to this. I think it was a timing problem with reallocating the array. If I remove that part and just create a huge array at the start of the sub procedure, then it works fine. ...
Forum: Scripting 03-07-2008, 10:37 AM
Replies: 23
Views: 10,970
Posted By Chaucer
Honestly, I do not remember now what the runtime...

Honestly, I do not remember now what the runtime error was.
Forum: Scripting 03-07-2008, 10:34 AM
Replies: 16
Views: 7,492
Posted By Chaucer
The initial problem I had was that the script...

The initial problem I had was that the script would get to a certain line in the script and then would ignore the rest. My workaround for this was to split the script up into multiple files. It...
Forum: Scripting 03-04-2008, 04:26 PM
Replies: 16
Views: 7,492
Posted By Chaucer
I added 2 new lines to the saveconfig sub: ...

I added 2 new lines to the saveconfig sub:

MsgBox ConfigIndex & " - " & UBound(Config)

If ConfigIndex = UBound(Config) - 1 Then
loggingfile.WriteLine("Ubound of Config = " & UBound(Config))...
Forum: Scripting 03-04-2008, 04:15 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Well, I've tried that as such in the 2nd example,...

Well, I've tried that as such in the 2nd example, where I have the SaveConfig sub saved in a 2nd file. The code stops after loggingfile.WriteLine(crt.screen.get(crt.screen.ro ws, 1, crt.screen.rows,...
Forum: Scripting 03-04-2008, 01:35 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Now I am even getting the same thing when I...

Now I am even getting the same thing when I divide up the files. The best I can tell is that it's getting to about line 54 before it just magically stops ignoring the rest of the script.

'
'...
Forum: Scripting 03-04-2008, 01:23 PM
Replies: 16
Views: 7,492
Posted By Chaucer
Unhappy Max num of lines in a script

I am getting a really odd problem with my script below. Essentially everything after line 300 (MsgBox m) is no longer read. MsgBox "I'm here inside the for - the end" is never run and m is never...
Forum: Scripting 03-04-2008, 10:39 AM
Replies: 6
Views: 3,384
Posted By Chaucer
Why not just use a excel file to make your mass...

Why not just use a excel file to make your mass changes. You should know which switches/routers need to have which changes made. So the excel file would look like:

IP Address | Change 1 | Change...
Forum: Scripting 03-04-2008, 10:25 AM
Replies: 23
Views: 10,970
Posted By Chaucer
Here is a script I have been working on. It then...

Here is a script I have been working on. It then learns your network through the use of cdp information and saves just the config. Ultimately it will log different info to a excel file and check to...
Forum: Scripting 12-17-2007, 11:49 AM
Replies: 10
Views: 3,422
Posted By Chaucer
I fixed the problem by moving that subroutine to...

I fixed the problem by moving that subroutine to its own file and calling it using:


Sub Include(file)
Dim fso, f, str
Set fso = CreateObject("Scripting.FileSystemObject")
Set f =...
Forum: Scripting 12-17-2007, 09:40 AM
Replies: 10
Views: 3,422
Posted By Chaucer
There's not an # that appears anywhere in the...

There's not an # that appears anywhere in the config. Also, if I just take that subroutine and make it into it's own program (as seen below), it works without problems.


# $language = "VBScript"...
Forum: Scripting 12-14-2007, 06:22 PM
Replies: 10
Views: 3,422
Posted By Chaucer
This didnt help either. It just waited for 4...

This didnt help either. It just waited for 4 more seconds then did the same thing before. :(
Showing results 1 to 25 of 52

 
Forum Jump

All times are GMT -6. The time now is 02:01 AM.