Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
xLadyMorgana
Participant
Jump to solution

Reboot Script

Hi All,

We have a good amount of appliances in our environment. I would like to reboot these periodically and was wondering if anyone knew of a script that can help with this.

0 Kudos
1 Solution

Accepted Solutions
G_W_Albrecht
Legend Legend
Legend

You can define cron jobs easily on every GAiA unit:

reboot.png

This is the script myreboot.sh

#!/bin/bash -f
date >> /var/log/lastReboot
(echo y ) | reboot

 

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist

View solution in original post

(1)
13 Replies
PhoneBoy
Admin
Admin

A reboot requires a single command: reboot.
This can be done through SmartConsole or the API.

0 Kudos
Mike_OMeara
Participant

Would you be able to post links to documentation for doing this through the SmartConsole and the API? I've tried it through the Infinity Portal for my 1590s and it doesn't work. Thanks

0 Kudos
G_W_Albrecht
Legend Legend
Legend

For SMB see https://community.checkpoint.com/t5/SMB-Gateways-Spark/Perform-scheduled-scripted-tasks-on-SMB-devic...

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
G_W_Albrecht
Legend Legend
Legend

You can define cron jobs easily on every GAiA unit:

reboot.png

This is the script myreboot.sh

#!/bin/bash -f
date >> /var/log/lastReboot
(echo y ) | reboot

 

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
(1)
Mike_OMeara
Participant

We have a large number of Quantum Spark 1590 appliances, and I don't see the type of menu items you show with the GAIA units. We have more problems with these units when they have a high uptime, so reboot seems to be the best option.

0 Kudos
G_W_Albrecht
Legend Legend
Legend

These are GAiA Embedded units, so they can not show GAiA WebGUI menue items! See my answer further down!

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
xLadyMorgana
Participant

This looks like what I was actually looking for. Thank you so much for this! I'm going to go over this with my lead and will post back the result. I will also check out the SMB post you provided as we have an incredible amount of SMBs and they do have numerous issues when they have a significant up time. I imagine that they are a bit more difficult because we have them in clusters and would typically want the standby member to reboot first. 

Thank you everyone for the help

Andjey
Participant
 

Hello there! Didn't work, instead used web portal Gaia > System Management > Job Scheduler run command 

/usr/sbin/shutdown -r now

 

Certifications: CCSA, CCTA
0 Kudos
G_W_Albrecht
Legend Legend
Legend

Did you try that already?

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
Mike_OMeara
Participant

Yes, I've been testing a job from my SolarWinds Orion system that sends reboot, then yes. My test last night was successful so that's what I'll use. Thanks

the_rock
Legend
Legend

Im sure it will work.

Andy

0 Kudos
the_rock
Legend
Legend

Just do exactly what @G_W_Albrecht advised. You dont even need any script, just give a name to cron job and simply type reboot in the command field, thats it.

Andy

0 Kudos
G_W_Albrecht
Legend Legend
Legend

No statement from xLadyMorgana who did post this yet.

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events