Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Notices

Showing results 1 to 25 of 55
Search took 0.00 seconds.
Search: Posts Made By: BjoernH
Forum: Scripting 07-30-2021, 02:53 PM
Replies: 3
Views: 659
Posted By BjoernH
Thanks Greg. I added the...

Thanks Greg.


I added the crt.Screen.IgnoreEscape = True, it got rid of the escape sequence characters, however, I still have two lines:

ibcx1105vm002ssc001
CPU2:ibcx1105vm002ssc001
when I...
Forum: Scripting 07-30-2021, 09:58 AM
Replies: 3
Views: 659
Posted By BjoernH
crt.Screen.ReadString does not behave as expected

Good day.


I'm trying to initialize a variable by capturing the hostname from a server:

Sub Main
crt.Screen.Send "uname -n" & vbCr
crt.Screen.WaitForString vbCr

strResult =...
Forum: Scripting 05-13-2021, 01:21 PM
Replies: 3
Views: 1,192
Posted By BjoernH
Thanks for the explanation Jake! Changed my...

Thanks for the explanation Jake!

Changed my script to:

Sub Main
Dim result
crt.Screen.Send "grep ^Release /tspinst/scripts/aiParameter.sh|awk -F'=' '{print $2}'" & chr(13)
result =...
Forum: Scripting 05-12-2021, 06:22 PM
Replies: 3
Views: 1,192
Posted By BjoernH
Need advice with a simple WaitForStrings query

Good day.

This is supposed to be a simple little script but it's giving me a hard time.

crt.Screen.Synchronous = True

Sub Main
Dim result
crt.Screen.Send "grep ^Release...
Forum: Scripting 04-15-2021, 10:46 AM
Replies: 1
Views: 1,068
Posted By BjoernH
Keep getting syntax error message from new MENUITEM

Good day.

I'm baffled as to why I keep getting a syntax error from this menu item I added to the menu file.

MENUITEM "&Show IPv4 addresses (all VMs)" , "SEND" , "for i in {5,6} {8..9}; do echo...
Forum: Scripting 03-09-2021, 01:56 PM
Replies: 2
Views: 1,021
Posted By BjoernH
Need help using 'read -s' to prompt for password from menuitem

Good day.

I'm trying to write a menuitem which will prompt the user for a password before ssh to a server.

Here's what I tried but it won't pause to prompt for the password input:

POPUPMENU...
Forum: General 02-04-2021, 07:30 AM
Replies: 7
Views: 1,399
Posted By BjoernH
Hi jjh Thank you for your reply, I think...

Hi jjh


Thank you for your reply, I think my manager will be convinced to continue supporting SCRT.


Regards,
Bjoern
Forum: General 02-02-2021, 01:47 PM
Replies: 7
Views: 1,399
Posted By BjoernH
Hi Brenda. My manager has been asking me...

Hi Brenda.


My manager has been asking me what advantage SCRT has over putty and I've mentioned a quite a few.
Would you have a comparison chart comparing the features and advantages of...
Forum: General 02-01-2021, 08:40 AM
Replies: 7
Views: 1,399
Posted By BjoernH
Hello Brenda. I applied the full path in...

Hello Brenda.

I applied the full path in lieu of %APPDATA% and removed the "\n" as you directed. It works now.

Thank you,

Bjoern
Forum: General 01-29-2021, 01:08 PM
Replies: 7
Views: 1,399
Posted By BjoernH
Launch a script from from the menu bar

Good day.

Is it possible to launch a script from the SecureCRT menu bar?

POPUPMENU "&ConfD CLI"
MENUITEM "&Get logs", "RUN", "%APPDATA%\VanDyke\custom_config\scripts\MyAwesomeLogScript.vbs\n"...
Forum: General 09-30-2020, 07:57 AM
Replies: 7
Views: 1,430
Posted By BjoernH
Thank you Cameron. I would really favor "B)...

Thank you Cameron.

I would really favor "B) Export your configuration (Tools > Export Settings...) to an .XML file", however, I do not see that option under Tools or anywhere else. The only...
Forum: General 09-29-2020, 02:00 PM
Replies: 7
Views: 1,430
Posted By BjoernH
No, my configuration folder is user-specific. ...

No, my configuration folder is user-specific.

Bjoern
Forum: General 09-29-2020, 08:10 AM
Replies: 7
Views: 1,430
Posted By BjoernH
Hi Cameron. In reply to your questions: ...

Hi Cameron.

In reply to your questions:

. Windows Server 2008 R2 Enterprise
. SecureCRT Version 8.3.2 (x64 build 1584)
. This has been occurring on one button randomly for a few months now,...
Forum: General 09-28-2020, 12:23 PM
Replies: 7
Views: 1,430
Posted By BjoernH
Label of button keeps changing

Good day.

The labels of 3 of my buttons keep changing. The labels are then replaced by cutting the last 23 characters from the send string and those 23 characters then become the label.

Has...
Forum: Scripting 09-24-2019, 02:20 PM
Replies: 1
Views: 1,841
Posted By BjoernH
How would I send multiple spacebar strokes when doing a 'more' pipe?

Good day.

How would one send multiple spacebar strokes until the end of the file is reached from a 'more <file>' command. Please note, there is no option to cat the entire file, the only way is...
Forum: Scripting 03-06-2019, 08:16 PM
Replies: 3
Views: 2,932
Posted By BjoernH
Hi Eric. Please find attached the script and...

Hi Eric.

Please find attached the script and log as requested.



Regards,
Bjoern
Forum: Scripting 03-06-2019, 03:38 PM
Replies: 3
Views: 2,932
Posted By BjoernH
Need help with Case/Do/Loop (again)

Good day.

I always seem to run into the same problem but every time it seems to be different.

My script is supposed to loop through an array of IP addresses, check for the existence of a file...
Forum: Scripting 03-01-2019, 10:09 AM
Replies: 7
Views: 3,406
Posted By BjoernH
When I said "seems to respond correctly" I meant...

When I said "seems to respond correctly" I meant that when IP 192.168.210.9 returned "No route to host", did did what I expected, select the next IP from the array, which is 192.168.210.20, and ssh...
Forum: Scripting 03-01-2019, 09:10 AM
Replies: 7
Views: 3,406
Posted By BjoernH
I thought that Case 3 was doing what it should,...

I thought that Case 3 was doing what it should, ignore the unreachable IP 192.168.210.9 and then ssh to the next IP 192.168.210.20.

Regards,
Bjoern
Forum: Scripting 03-01-2019, 09:05 AM
Replies: 7
Views: 3,406
Posted By BjoernH
Thanks for your replay Brenda. I have the...

Thanks for your replay Brenda.

I have the script and log file ready, where shall I send them?

Regards,
Bjoern
Forum: Scripting 03-01-2019, 07:40 AM
Replies: 7
Views: 3,406
Posted By BjoernH
Need advice in handling "No route to host" response using Case - Loop method

Good day.

I need some help in getting around the "No route to host" event in my Case-Loop section.

My script loops through an array op IP addresses, issues a command string (systemctl). The...
Forum: Scripting 02-12-2019, 08:51 AM
Replies: 3
Views: 3,044
Posted By BjoernH
I made some changes but it's still skipping...

I made some changes but it's still skipping ahead.

'Declare - nova stop or start
Dim doWhat
doWhat = crt.Dialog.Prompt("Enter 'stop' or 'start' :")
If doWhat = "" Then Exit Sub
MsgBox...
Forum: Scripting 02-07-2019, 10:44 AM
Replies: 3
Views: 3,044
Posted By BjoernH
VBScript does not wait for prompt and ends prematurely

Good day.

I wrote a script that's supposed to start different types of servers with a 3 minute pause between two different server types. The script, however, does not wait for the '$' prompt (line...
Forum: Scripting 01-31-2019, 07:30 AM
Replies: 11
Views: 4,802
Posted By BjoernH
Hi Eric, sorry for the delayed reply, I didn't...

Hi Eric, sorry for the delayed reply, I didn't have access to the lab due to upgrades.

I have been able to make it work using this:

'ssh to VMs
For Each strHosts In Eval(vHost)
If...
Forum: Scripting 01-24-2019, 10:48 AM
Replies: 11
Views: 4,802
Posted By BjoernH
Thanks Eric, I'll try that. In the meantime I was...

Thanks Eric, I'll try that. In the meantime I was messing with this, but it barfed.

'ssh to VMs
For Each strHosts In Eval(vHost)
If strHosts = "" Then Exit For

If doWhat = "start" Then...
Showing results 1 to 25 of 55

 
Forum Jump

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