View Single Post
  #7  
Old 01-24-2019, 11:03 AM
BjoernH BjoernH is offline
Registered User
 
Join Date: Mar 2018
Posts: 55
Quote:
Originally Posted by ekoranyi View Post
BjoernH,

How many of the servers will require a sleep? Perhaps adding an If statement inside the For Each strHosts In vHost loop to check for these IP's and add a sleep would work.

The pseudo code below should help demonstrate this idea.

Code:
For Each strHosts In vHost
    If strHosts = "192.168.210.5"
        crt.Sleep <millisec>
    End If
I have rearranged the hosts as they should be. The pauses are required in the start RTP arrays only, not for status or stop:

Code:
Stand-alone:
Dim arrStartStandalone(49)
	arrStartStandalone(0) = "192.168.210.140"
	arrStartStandalone(1) = "192.168.210.141"
	arrStartStandalone(2) = "192.168.210.142"
Sleep here
	arrStartStandalone(3) = "192.168.210.5"
	arrStartStandalone(4) = "192.168.210.6"
	arrStartStandalone(5) = "192.168.210.12"
	arrStartStandalone(6) = "192.168.210.13"
	arrStartStandalone(7) = "192.168.210.14"
	arrStartStandalone(8) = "192.168.210.15"
	arrStartStandalone(9) = "192.168.210.16"
	arrStartStandalone(10) = "192.168.210.17"
	arrStartStandalone(11) = "192.168.210.18"
	arrStartStandalone(12) = "192.168.210.19"
	arrStartStandalone(13) = "192.168.210.8"
	arrStartStandalone(14) = "192.168.210.9"
Sleep here
	arrStartStandalone(15) = "192.168.210.20"
	arrStartStandalone(16) = "192.168.210.21"
	arrStartStandalone(17) = "192.168.210.22"
	
	
Core:
Dim arrStartCore(71)
	arrStartCore(0) = "192.168.210.140"
	arrStartCore(1) = "192.168.210.141"
	arrStartCore(2) = "192.168.210.142"
	arrStartCore(3) = "192.168.210.143"
	arrStartCore(4) = "192.168.210.144"
Sleep here
	arrStartCore(5) = "192.168.210.5"
	arrStartCore(6) = "192.168.210.6"
	arrStartCore(7) = "192.168.210.12"
	arrStartCore(8) = "192.168.210.13"
	arrStartCore(9) = "192.168.210.14"
	arrStartCore(10) = "192.168.210.15"
	arrStartCore(11) = "192.168.210.16"
	arrStartCore(12) = "192.168.210.17"
	arrStartCore(13) = "192.168.210.18"
	arrStartCore(14) = "192.168.210.19"
	arrStartCore(15) = "192.168.210.8"
	arrStartCore(16) = "192.168.210.9"
Sleep here
	arrStartCore(17) = "192.168.210.20"
	arrStartCore(18) = "192.168.210.21"
	arrStartCore(19) = "192.168.210.22"
If you can show me one example on the stand-alone, I'll try it on the core myself.

P.S I need a 5 minute pause, if that's possible.


Bjoern

Last edited by BjoernH; 01-24-2019 at 11:12 AM. Reason: Added PS
Reply With Quote