Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Notices

Showing results 1 to 25 of 97
Search took 0.01 seconds.
Search: Posts Made By: Rhudi
Forum: Scripting 08-06-2021, 08:49 AM
Replies: 3
Views: 1,213
Posted By Rhudi
Great Feedback - Thanks!

The idea to break this into Sub Routines makes sense.

I have a personal preference for the 'Select Case' structure. I find it way more flexible than "If...ElseIf...End". I read in an Excel Forum...
Forum: Scripting 07-23-2021, 07:30 AM
Replies: 3
Views: 1,213
Posted By Rhudi
Router Paste Script (with error handling) - Critique?

I'd like to share a script I wrote yesterday. I'd appreciate any 'best practice' pointers. Plus, if you like this and find it useful, use it.

We all need a reliable way to paste commands into a...
Forum: Scripting 01-27-2021, 11:10 AM
Replies: 1
Views: 1,099
Posted By Rhudi
I have messed with this for a while now, and have...

I have messed with this for a while now, and have concluded that I just don't understand how 'WaitForString' works.
Forum: Scripting 01-26-2021, 10:12 AM
Replies: 1
Views: 1,099
Posted By Rhudi
Nothing shows on screen or in "MENU_SELECT_ALL"

I have created from scratch, an interactive method to use Excel to start an AdHoc SecureCRT Session, and have that session loop until an input condition is met.

The general idea:

Just before I...
Forum: Scripting 01-21-2021, 09:05 AM
Replies: 5
Views: 1,599
Posted By Rhudi
It is possible that I'm making my script...

It is possible that I'm making my script over-complicated. However, what I am able to do...

From Excel, I have a sheet that will let me select a folder that has any number of router data files. ...
Forum: Scripting 01-19-2021, 06:03 PM
Replies: 5
Views: 1,599
Posted By Rhudi
I am sending from an array of router commands. ...

I am sending from an array of router commands.
I must wait for the system prompt before attempting to send each command.
Forum: Scripting 01-19-2021, 12:07 PM
Replies: 5
Views: 1,599
Posted By Rhudi
List of what "objTab.Session.Config.SetOption" can touch?

RTFM is the operable concept here. The real problem, until you know how to search the Manual's TOC or Index, you're kind of lost.

Here is the only example I know...

I know I can go here:...
Forum: Scripting 10-28-2020, 12:49 PM
Replies: 8
Views: 1,739
Posted By Rhudi
[SOLVED] Here is the relevant section that...

[SOLVED]

Here is the relevant section that now works as expected:

Select Case bConnected
Case True ' Connected
UserName = env("USERNAME")
UserProf = env("USERPROFILE")
...
Forum: Scripting 10-28-2020, 11:38 AM
Replies: 8
Views: 1,739
Posted By Rhudi
This fixes it: ...

This fixes it:

objTab.Session.LogUsingSessionOptions
Forum: Scripting 10-27-2020, 09:20 PM
Replies: 8
Views: 1,739
Posted By Rhudi
I deeply appreciate your time helping me with...

I deeply appreciate your time helping me with this.

Here is the relevant (I think) section:

Select Case bConnected
Case True ' Connected
UserName = env("USERNAME")
...
Forum: Scripting 10-27-2020, 12:33 PM
Replies: 8
Views: 1,739
Posted By Rhudi
I believe I made an error by saying "AdHoc". ...

I believe I made an error by saying "AdHoc".

Strictly speaking, these are not AdHoc. I'm using an externally scripted shell command to launch a pre-defined Linux Host Session in SecureCRT. One...
Forum: Scripting 10-27-2020, 11:57 AM
Replies: 8
Views: 1,739
Posted By Rhudi
There are numerous steps in this script that are...

There are numerous steps in this script that are unrelated to the logging. Basically, I am using a command line to pass arguments to a new tab. Once that tabs is running, it connects to a...
Forum: Scripting 10-27-2020, 08:43 AM
Replies: 8
Views: 1,739
Posted By Rhudi
Custom Log Data not working

I have a script that works very well to establish AdHoc connections to devices. This script has an added bonus of trying SSH, then TELNET. Once either of those is connected, I have code as follows...
Forum: Scripting 09-17-2020, 10:45 AM
Replies: 3
Views: 1,418
Posted By Rhudi
Version 8.3.4 (x64 build 1699) - Official...

Version 8.3.4 (x64 build 1699) - Official Release - July 12, 2018

I am not able to upgrade.
Forum: Scripting 09-17-2020, 08:57 AM
Replies: 3
Views: 1,418
Posted By Rhudi
ad-hoc session 'Custom log data'?

Is it possible to set "Custom log data" ('On each line') using VB?

I know how to create a log file (and even append if needed).

Currently, I do things like this (variables are set...
Forum: Scripting 09-01-2020, 08:56 AM
Replies: 3
Views: 1,500
Posted By Rhudi
Clarification

I edited my post to actually ask my question. :P
Forum: Scripting 09-01-2020, 08:21 AM
Replies: 3
Views: 1,500
Posted By Rhudi
Smile [SOLVED] Rename existing file by appending date of file

In Excel VBA, I know how to get the timestamp of a file, and append a formatted date to that existing file.

In VBS through SecureCRT, I want to do the same thing.
How do I test if a file exists?...
Forum: Scripting 02-24-2017, 07:26 AM
Replies: 11
Views: 9,976
Posted By Rhudi
And, so I finally believe I fixed it... Here...

And, so I finally believe I fixed it...

Here is the core of my Do-Loop:

Do
Select Case crt.Window.Active
Case True
...
Forum: Scripting 02-24-2017, 07:05 AM
Replies: 11
Views: 9,976
Posted By Rhudi
Ok... I accidentally figured out what was wrong....

Ok... I accidentally figured out what was wrong. If SecureCRT looses focus, the objTab.Screen.SendSpecial("MENU_SELECT_ALL") command fails.

How do I tell SecureCRT to regain focus?
Forum: Scripting 02-24-2017, 06:47 AM
Replies: 11
Views: 9,976
Posted By Rhudi
Ultimately, I need to do this (which seems to...

Ultimately, I need to do this (which seems to have fixed the issue):

objTab.Screen.Send vbCr ' Send <CR>
objTab.Screen.WaitForString strPrompt ' Wait for the prompt....
Forum: Scripting 02-23-2017, 02:52 PM
Replies: 11
Views: 9,976
Posted By Rhudi
Ok... The rest of my coding is in Excel VB....

Ok...

The rest of my coding is in Excel VB. I know that code. Switching to Python is a learning curve I don't want right now.

This feels clunky, but seems to work:

objTab.Screen.Send...
Forum: Scripting 02-23-2017, 01:00 PM
Replies: 11
Views: 9,976
Posted By Rhudi
The scripts examples in your previous response...

The scripts examples in your previous response are intriguing. I see items that solve other issues that I have in my scripts. I will post any solution I work out.
Forum: Scripting 02-23-2017, 12:48 PM
Replies: 11
Views: 9,976
Posted By Rhudi
I was searching for a way to speed up ReadString....

I was searching for a way to speed up ReadString. As the screen fills with multiple lines, the output gets painfully slow.

I have code like this:

objTab.Screen.SendSpecial...
Forum: Scripting 02-23-2017, 08:33 AM
Replies: 11
Views: 9,976
Posted By Rhudi
This is still an issue?

This is still an issue?
Forum: Scripting 01-30-2017, 01:32 PM
Replies: 3
Views: 4,800
Posted By Rhudi
ok! I did it a different way, that I'm used to. ...

ok! I did it a different way, that I'm used to. Not using "/ARG". I'm using the Clip Board.

This is only a code fragment. It doesn't show how I'm setting up variables, or the "doClip" object.
...
Showing results 1 to 25 of 97

 
Forum Jump

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