Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 41
Search took 0.00 seconds.
Search: Posts Made By: BjoernH
Forum: Scripting 09-24-2019, 03:20 PM
Replies: 1
Views: 300
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, 09:16 PM
Replies: 3
Views: 847
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, 04:38 PM
Replies: 3
Views: 847
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, 11:09 AM
Replies: 7
Views: 1,021
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, 10:10 AM
Replies: 7
Views: 1,021
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, 10:05 AM
Replies: 7
Views: 1,021
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, 08:40 AM
Replies: 7
Views: 1,021
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, 09:51 AM
Replies: 3
Views: 929
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, 11:44 AM
Replies: 3
Views: 929
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, 08:30 AM
Replies: 11
Views: 1,474
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, 11:48 AM
Replies: 11
Views: 1,474
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...
Forum: Scripting 01-24-2019, 11:03 AM
Replies: 11
Views: 1,474
Posted By BjoernH
I have rearranged the hosts as they should be....

I have rearranged the hosts as they should be. The pauses are required in the start RTP arrays only, not for status or stop:

Stand-alone:
Dim arrStartStandalone(49)
arrStartStandalone(0) =...
Forum: Scripting 01-24-2019, 10:13 AM
Replies: 11
Views: 1,474
Posted By BjoernH
When starting RTP on the servers, I need a 5...

When starting RTP on the servers, I need a 5 minute pause between certain types of servers. So for instance, after starting RTP on the first three servers .141, .142, 143, I need a pause so that they...
Forum: Scripting 01-24-2019, 09:58 AM
Replies: 11
Views: 1,474
Posted By BjoernH
Thanks Eric! Working like a charm. One more...

Thanks Eric! Working like a charm.

One more question, how would you insert a pause (sleep) between two vHosts in each array, eg:

Dim arrStartStandalone(49)
arrStartStandalone(0) =...
Forum: Scripting 01-23-2019, 03:51 PM
Replies: 11
Views: 1,474
Posted By BjoernH
Getting VBScript runtime error: Object not a collection

Good day.

My vbscript is supposed to log into a number of Linux servers based the type of command(3) and type(2) of remote host. The problem comes in when the script has to choose a vHost array...
Forum: Scripting 10-18-2018, 09:46 AM
Replies: 3
Views: 1,764
Posted By BjoernH
Thanks for your reply Eric. At this time,...

Thanks for your reply Eric.

At this time, the VMs are not ready for startup, so I've used a different nova command. In fact, once the "nova start <vmName>" command has been issued, there is no...
Forum: Scripting 10-17-2018, 04:50 PM
Replies: 3
Views: 1,764
Posted By BjoernH
Nevermind, it will never work like this.

Nevermind, it will never work like this.
Forum: Scripting 10-16-2018, 04:26 PM
Replies: 3
Views: 1,764
Posted By BjoernH
Need help with Case/Do/Loop

Good day.

I've been trying to get this script to loop through a disk file on the local PC and issue a command (nova start) to start virtual machines listed in the file. I create the file in...
Forum: Scripting 07-24-2018, 03:20 PM
Replies: 3
Views: 1,492
Posted By BjoernH
Thanks for the reply Eric, however, that script...

Thanks for the reply Eric, however, that script is just massive overkill for my needs, I don't even know how the author manages to ssh to the remote host.

Furthermore, I would prefer to use the IP...
Forum: Scripting 07-24-2018, 01:27 PM
Replies: 3
Views: 1,492
Posted By BjoernH
Vbscript: unable to break out of waitfors loop

Good day.

I've been trying to write this vbscript that is supposed to log into 10 different servers based on the IP array, and extract some information from each. The script compiles, but it...
Forum: Scripting 07-11-2018, 11:25 AM
Replies: 2
Views: 1,239
Posted By BjoernH
Oh snap! Thank you Eric, it needed the ampersand....

Oh snap! Thank you Eric, it needed the ampersand.


Regards,
Bjoern
Forum: Scripting 07-11-2018, 09:32 AM
Replies: 2
Views: 1,239
Posted By BjoernH
Asking for advice on "Error: Expected end of statement"

Good day.

I need some advice on this "Expected end of statement" error. The following crt.Screen.Send results in a compilation error:

vKeyw = InputBox("Enter the vNF name, ie. cscf5001,...
Forum: Scripting 06-15-2018, 11:22 AM
Replies: 4
Views: 1,317
Posted By BjoernH
Hi Brittney. Good idea changing the prompt!...

Hi Brittney.

Good idea changing the prompt! I'll try that and your recommendation regarding the WaitForStrings as soon as I get a chance.


Happy weekend!

Bjoern
Forum: Scripting 06-12-2018, 10:47 AM
Replies: 4
Views: 1,317
Posted By BjoernH
Hi Brittney. We haven't seen any issues...

Hi Brittney.

We haven't seen any issues using -q as our servers are pretty reliable, however, I will remove the -q just in case something else comes up. I'll also change the "password:" to...
Forum: Scripting 06-11-2018, 05:39 PM
Replies: 4
Views: 1,317
Posted By BjoernH
Question regarding multiple logins using vbscripting

Good day!

I've been trying to write a script which will log into a list of servers, execute a command and then exit, log into the next server in the list and run the same command.

The script...
Showing results 1 to 25 of 41

 
Forum Jump

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