- CheckMates
- :
- Products
- :
- General Topics
- :
- Reboot Script
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can define cron jobs easily on every GAiA unit:
This is the script myreboot.sh
#!/bin/bash -f
date >> /var/log/lastReboot
(echo y ) | reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A reboot requires a single command: reboot.
This can be done through SmartConsole or the API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For SMB see https://community.checkpoint.com/t5/SMB-Gateways-Spark/Perform-scheduled-scripted-tasks-on-SMB-devic...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can define cron jobs easily on every GAiA unit:
This is the script myreboot.sh
#!/bin/bash -f
date >> /var/log/lastReboot
(echo y ) | reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These are GAiA Embedded units, so they can not show GAiA WebGUI menue items! See my answer further down!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there! Didn't work, instead used web portal Gaia > System Management > Job Scheduler run command
/usr/sbin/shutdown -r now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try that already?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Im sure it will work.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No statement from xLadyMorgana who did post this yet.
