Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 84
Search took 0.01 seconds.
Search: Posts Made By: Rhudi
Forum: Scripting 09-17-2020, 10:45 AM
Replies: 3
Views: 182
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: 182
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: 360
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: 360
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: 7,752
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: 7,752
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: 7,752
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: 7,752
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: 7,752
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: 7,752
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: 7,752
Posted By Rhudi
This is still an issue?

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

Thanks! That makes sense.
Forum: Scripting 01-27-2017, 03:04 PM
Replies: 3
Views: 3,787
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, 07:33 AM
Replies: 0
Views: 3,669
Posted By Rhudi
Userform?

Does SecureCRT have Userforms where I can create custom dialog boxes?
Forum: Scripting 01-27-2017, 07:29 AM
Replies: 12
Views: 15,696
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, 02:57 PM
Replies: 1
Views: 2,144
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, 02:32 PM
Replies: 9
Views: 5,402
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, 02:30 PM
Replies: 2
Views: 5,724
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...
Forum: Scripting 01-26-2017, 06:23 AM
Replies: 9
Views: 5,402
Posted By Rhudi
How can I get a list of valid entries for...

How can I get a list of valid entries for 'arglist' within:

SessionConfiguration.Method([arglist])
Forum: Scripting 01-26-2017, 06:20 AM
Replies: 2
Views: 5,724
Posted By Rhudi
I will post pieces of my puzzle as I find them. ...

I will post pieces of my puzzle as I find them.

I can create a log file following a lead here: https://forums.vandyke.com/showthread.php?t=3525
Forum: Scripting 01-25-2017, 08:35 AM
Replies: 2
Views: 5,724
Posted By Rhudi
Script to log on to devices from defined host session?

I have a rather small, yet ambitious project.

I would like to be able to use one defined host session to logon onto other devices.

A general outline of what the script should do:

Verify...
Forum: Scripting 01-25-2017, 07:34 AM
Replies: 9
Views: 5,402
Posted By Rhudi
post example vb?

post example vb?
Forum: Scripting 01-25-2017, 07:32 AM
Replies: 2
Views: 3,350
Posted By Rhudi
Here is a script I use to send configuration...

Here is a script I use to send configuration commands to a Juniper device.
I'm planning to change this soon, to send commands to a Cisco, but Juniper doesn't have a changing prompt like Cisco does....
Forum: Scripting 01-20-2017, 11:02 AM
Replies: 9
Views: 5,402
Posted By Rhudi
Version 7.2.3 (x64 build 500) - Official...

Version 7.2.3 (x64 build 500) - Official Release - April 1, 2014
-----
I'm unable to update, as this is distributed via work.
Showing results 1 to 25 of 84

 
Forum Jump

All times are GMT -6. The time now is 11:32 AM.