Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: dav-parker
Forum: Scripting 07-31-2020, 04:08 PM
Replies: 168
Views: 118,654
Posted By dav-parker
I came up with a solution. I added code to wait...

I came up with a solution. I added code to wait for the first 40 chars of the string before sending the next. Works like a charm.


For Each strCommand In vCommands...
Forum: Scripting 07-31-2020, 03:39 PM
Replies: 168
Views: 118,654
Posted By dav-parker
WaitForString strCommand

For the most part, I can do most of what I need. But, I've run across a new issue. I'm sending several commands to modify ACLs on an ASA. The script gets stuck at:

g_objNewTab.Screen.WaitForString...
Forum: Scripting 07-17-2020, 09:20 AM
Replies: 168
Views: 118,654
Posted By dav-parker
Cool, thanks. It is working now. I tweaked it...

Cool, thanks. It is working now.
I tweaked it slightly since since the session automatically enters the enable password:


Else
' if enable password is stored in session, just send enable
...
Forum: Scripting 07-16-2020, 05:20 PM
Replies: 168
Views: 118,654
Posted By dav-parker
Re: Script issues

##commands.txt
enable
show int ip brief
exit

A02-ASA>
A02-ASA> enable
Password: ********
A02-ASA#
Forum: Scripting 07-16-2020, 04:55 PM
Replies: 168
Views: 118,654
Posted By dav-parker
Re: Script issues

OK, I think I'm making progress. The host name apparently has to match the name of the sessions ini filename.

The script now seems to get stuck after the prompt changes when entering enable mode....
Forum: Scripting 07-16-2020, 03:53 PM
Replies: 168
Views: 118,654
Posted By dav-parker
Script issues

I'm using SecureCRT 8.7.2 on Windows 10.

I'm wondering if VBScript has changed since this scrtipt was written. First, the string manipulation for the file paths can't work.

g_strHostsFile =...
Showing results 1 to 6 of 6

 
Forum Jump

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