Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 90
Search took 0.01 seconds.
Search: Posts Made By: Rhudi
Forum: Scripting 10-28-2020, 01:49 PM
Replies: 8
Views: 257
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, 12:38 PM
Replies: 8
Views: 257
Posted By Rhudi
This fixes it: ...

This fixes it:

objTab.Session.LogUsingSessionOptions
Forum: Scripting 10-27-2020, 10:20 PM
Replies: 8
Views: 257
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, 01:33 PM
Replies: 8
Views: 257
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, 12:57 PM
Replies: 8
Views: 257
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, 09:43 AM
Replies: 8
Views: 257
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, 11:45 AM
Replies: 3
Views: 402
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, 09:57 AM
Replies: 3
Views: 402
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, 09:56 AM
Replies: 3
Views: 572
Posted By Rhudi
Clarification

I edited my post to actually ask my question. :P
Forum: Scripting 09-01-2020, 09:21 AM
Replies: 3
Views: 572
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, 08:26 AM
Replies: 11
Views: 8,018
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, 08:05 AM
Replies: 11
Views: 8,018
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, 07:47 AM
Replies: 11
Views: 8,018
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, 03:52 PM
Replies: 11
Views: 8,018
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, 02:00 PM
Replies: 11
Views: 8,018
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, 01:48 PM
Replies: 11
Views: 8,018
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, 09:33 AM
Replies: 11
Views: 8,018
Posted By Rhudi
This is still an issue?

This is still an issue?
Forum: Scripting 01-30-2017, 02:32 PM
Replies: 3
Views: 3,955
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.
...
Forum: Scripting 01-29-2017, 09:17 PM
Replies: 3
Views: 3,955
Posted By Rhudi
Thanks! That makes sense.

Thanks! That makes sense.
Forum: Scripting 01-27-2017, 04:04 PM
Replies: 3
Views: 3,955
Posted By Rhudi
/TELNET instead of /SSH ?

I can open and AdHoc SSH session like this:

SecureCRTCMD = SecureCRTEXE & " /SCRIPT " & Chr(34) & Script2Run & Chr(34) & SecureCRTLogging & " /SSH2 /password " & sRSAKey & " /L " &...
Forum: Scripting 01-27-2017, 08:33 AM
Replies: 0
Views: 3,741
Posted By Rhudi
Userform?

Does SecureCRT have Userforms where I can create custom dialog boxes?
Forum: Scripting 01-27-2017, 08:29 AM
Replies: 12
Views: 16,074
Posted By Rhudi
I see this thread is very old. However, if...

I see this thread is very old. However, if anyone stumbles on this, I have created a great deal of Excel-based code that wil use vba within Excel to call SecureCRT. That call uses an AdHoc...
Forum: General 01-26-2017, 03:57 PM
Replies: 1
Views: 2,254
Posted By Rhudi
Text Trigger?

Is there a non-scripting method to react to text?

So, as I'm sitting there in or out of any other script and a trigger match for a string happens, securecrt can properly react.

The specific...
Forum: Scripting 01-26-2017, 03:32 PM
Replies: 9
Views: 5,606
Posted By Rhudi
Once I know how to manipulate the Button Bar, I...

Once I know how to manipulate the Button Bar, I can complete the code I've posted here:

https://forums.vandyke.com/showthread.php?p=46916#post46916
Forum: Scripting 01-26-2017, 03:30 PM
Replies: 2
Views: 5,841
Posted By Rhudi
I have this nearly complete. There is a lot...

I have this nearly complete.

There is a lot going on in here. First thing to know; I'm using a linux box that hosts RANCID configs. I use that data to simplify determining the device type. I...
Showing results 1 to 25 of 90

 
Forum Jump

All times are GMT -6. The time now is 08:24 PM.