Reboot Sonicwall after delay

Moderator: DP_Sam

Reboot Sonicwall after delay

Postby Tomster2 » April 28th, 2014, 10:21 pm

I have an ibootG2+ and one extension unit.

They are connected respectively to a cable modem and a Sonicwall firewall.

I want to use auto-ping to achieve the following:

Step 1:
auto-ping of an external IP fails
Cable Modem and Sonicwall both turn off.

Step 2:
when ping succeeds... turn cable modem on...
and two minutes later turn the SonicWall on.

I have configured auto-ping and I can get step 1.

I have tried various settings but I am unable to get the two minute delay before the SonicWall comes on.

Suggestions welcome.

Thanks.

Tomster2
Tomster2
 
Posts: 6
Joined: April 28th, 2014, 11:58 am

Re: Reboot Sonicwall after delay

Postby DP_Sam » April 29th, 2014, 8:52 am

The iBoot-G2+ can do this.

I assume you have linked the two outlets together, and set the autoping to turn off main.
This would make both go off at the same time as you describe.

Be sure the Sonic wall is plugged into the EXP1 outlet, and the Cable modem into the Main.
In Setup|Device, there is a setting called Delay Time (in seconds)
This is the delay between linked outlets turning on.
They come on in sequence, Main, EXP1 then EXP2 with this delay time in between.
Program the Delay time for 120 seconds and all should be well.

Be sure the autoping timing settings are long enough to allow a complete reboot so the autoping won't reboot again while waiting for the sonic wall to boot.
You can also use cycle 1 times as the setting to make the unit wait for a valid ping before looking for failed pings to create a new power cycle event.
Sam Savoye
Dataprobe Tech Support
SSavoye@Dataprobe.com
DP_Sam
 
Posts: 123
Joined: January 21st, 2010, 9:39 am
Location: Allendale, NJ

Re: Reboot Sonicwall after delay

Postby Tomster2 » April 29th, 2014, 11:15 am

The iBoot-G2+ can do this.

I assume you have linked the two outlets together, and set the autoping to turn off main.
This would make both go off at the same time as you describe.

----Correct... that part works fine.

Be sure the Sonic wall is plugged into the EXP1 outlet, and the Cable modem into the Main.
----That will be the case, right now I am just working with two light bulbs to get the sequencing right... taking boot time out of the equation for the moment.

In Setup|Device, there is a setting called Delay Time (in seconds)
This is the delay between linked outlets turning on.
They come on in sequence, Main, EXP1 then EXP2 with this delay time in between.
Program the Delay time for 120 seconds and all should be well.
--- right now, that is not happening. The Exp1 socket does not turn on at all.

....Other settings for reference:

EXP2 is not in use
EXP1 is set to Link
Setup | Device: Initial State is "On" for both Main and Exp1
Setup | Device: Delay time = 30 seconds
Setup | Device: Cycle Time is 30 Seconds (Is this a problem having them both the same?)

Be sure the autoping timing settings are long enough to allow a complete reboot so the autoping won't reboot again while waiting for the sonic wall to boot.

So if it takes the SonicWall about a minute to boot, I want the autoping timing to be reasonably longer, say 90 seconds. Should I do that in the "Frequency" or "Wait" setting?


You can also use cycle 1 times as the setting to make the unit wait for a valid ping before looking for failed pings to create a new power cycle event.
.... it is set to 1 for both Main and Exp1

What am I missing here?
Tomster2
 
Posts: 6
Joined: April 28th, 2014, 11:58 am

Re: Reboot Sonicwall after delay

Postby DP_Sam » April 29th, 2014, 3:17 pm

OOps, the answer I gave was based on the delay as applied in the iBootBar and an outet group.
The iBoot-G2+ and EXP1 outlet when linked will use the delay to calculate when to start the second cycle.

So with a setting of 10 seconds for cycle and a 30 second delay, if you select Main and EXP1 outlet and click cycle.
Main will begin to cycle for 10 seconds.
30 seconds later the EXP1 will begin its 10 second cycle.
So 40 seconds after pressing cycle, both will be back on.

To get what you need to have happen, you will need to set the cycle and delay for 120 seconds.
Main will go off for 120 seconds, then 120 seconds later when it comes back on, the EXP1 will start its 120 second cycle.
So 240 seconds after the whole thing started, both outlets will be back on.
Sam Savoye
Dataprobe Tech Support
SSavoye@Dataprobe.com
DP_Sam
 
Posts: 123
Joined: January 21st, 2010, 9:39 am
Location: Allendale, NJ

Re: Reboot Sonicwall after delay

Postby Tomster2 » April 29th, 2014, 5:13 pm

Thanks for the clarification, Sam.

Just so I understand this, with those settings, If ping fails, the modem will turn off...
120 seconds later, the modem will turn on and the Sonicwall will turn off...
120 seconds later, the SonicWall will turn on...
So both devices will be rebooted in the correct order.

If ping still fails at that time, the system is going to wait... and it will wait in the state it is in... with no additional cycles.

i.e. another cycle will not occur unless we get a successful ping followed by a failed ping.

Correct?
Tomster2
 
Posts: 6
Joined: April 28th, 2014, 11:58 am

Re: Reboot Sonicwall after delay

Postby DP_Sam » April 30th, 2014, 9:46 am

Yes, you understand correctly.
But that is because of the autoping settings. Assuming the settings below...
    IPAddress is 8.8.8.8
    Frequency is 10
    Fail Count is 3
    A/B Logic is A only
    Control is Main
    Action is Cycle (cycle) 1 Times
    Wait 2 seconds
The iBoot-G2+ will be ping every 10 seconds. Each ping will be considered a fail after the 2 second wait.
3 sequential failures will make cycle begin. (Main goes off)
The unit will continue to ping but ignore the failed pings.
After both devices are back on (4 minutes from the start) the unit will still be pinging.
If the pings are still failing, they will still be ignored. (and not power cycle again assuming the access issue was not solved by power cycle, so don't do it again)
When the access issue is resolved and the pings begin to work, the iBoot-G2+ will stop ignoring any future failed pings, and cycle power again if needed.
Sam Savoye
Dataprobe Tech Support
SSavoye@Dataprobe.com
DP_Sam
 
Posts: 123
Joined: January 21st, 2010, 9:39 am
Location: Allendale, NJ

Re: Reboot Sonicwall after delay

Postby Tomster2 » May 2nd, 2014, 1:08 pm

Thanks for your help on this issue.

Very handy piece of hardware.

Tomster2
Tomster2
 
Posts: 6
Joined: April 28th, 2014, 11:58 am


Return to iBoot

Who is online

Users browsing this forum: No registered users and 1 guest

cron