Sophos Central customers have reported issues preventing successful installation, live terminal and device list access issues in the EU-CENTRAL-1 region For more info refer to KBA-000041338 for the latest updates.
Hi everybody,
is it possible to schedule a custom script (can't find crontab command from advanced shell) ?
Thanks
--Antonio P.
+1 and i want start a script for the boot of XG firewall, it's possible ?
best regards,
Greg
- UTM Certified Architect & XG Certified Engineer -
Would be awesome.. I could use this for a scheduled reboot of my XG.. I have an issue where the Cisco IPsec VPN stops working after the firewall has been up for a few weeks and a reboot is all it takes to get it working again, so this could be nice.. Even better would be if the fixed my problem in MR3 or V16
Sophos UTM 9.3 Certified Engineer
Sophos UTM 9.3 Certified Architect
Sophos XG v.15 Certified Engineer
Sophos XG v.17 Certified Engineer
Sophos XG v.17 Certified Architect
Hi,
Cronjob privileges are not provided in XG.
Thanks
Sachin Gurung
Team Lead | Sophos Technical Support
Knowledge Base | @SophosSupport | Video tutorials
Remember to like a post. If a post (on a question thread) solves your question use the 'This helped me' link.
Sachin,
Thanks for your response.
What does the XG use for scheduling shell scritps? Cron, LaunchD?
Are there any plans or roadmap to allow for scheduled scripts? Would be great if this could be configured from the WebGUI.
-Mahdi
I would like to know this aswell.
I currently run the UTM, but would like to go for the XG firewall, but i have a script running at startup on my UTM, whis is a "Wake-on-access" script which sends a magicpacket when a certain port is present in the firewall log.
I looked for XML tag, in Appendix E online documentation, to reboot the appliance and can't find anything about it.
Could you help with it? Do you know the XML to do do this?
Regards,
Diogo
In Advanced Shell, this command can be used to display all scheduled Jobs: timer all:summary -ds nosync
I am not a ware of any possibility to set your own Scheduled Tasks... I guess even if there is a possibility, they wouldn't be saved persistent on the Firewall.
Please send me Spam gueselkuebel@sg-utm.also-solutions.ch
Hi Huber,
Thanks for your reply. If I found something about it, I'll post here.
Regards,
Diogo
I'm using an expect script running on my Linux box to reboot the XG nightly ... works well:
#!/usr/bin/expect -f
spawn ssh <XG IP> -l admin
expect "password:"
send "<Admin Password>\r"
expect "Select Menu Number \\\[0-7\\\]:"
send "7\r"
expect "Shutdown(S/s) or Reboot(R/r) Device (S/s/R/r): No (Enter) >"
send "r\r"
expect eof
exit
Hi Vik,
Thank you very much. This solution is perfect and works very well for our environment.
Best regards,
Diogo
Hi Vik,
sorry for the late answer but you don't need to use expect for this - simply use
ssh <XG IP> -l admin /bin/sh reboot
If you call directly command /bin/sh it works and you skip the whole menu. If you try it without a reboot, it looks like it doesn't but don't blame yourselves :D It's a shell without prompt - type ls and push ENTER - you see? :)
Best regards,
Jiri
I can get the invisible shell but calling reboot I get 'Operation not permitted'
What version are you running? I'm using XG Home SFOS 18.0.1 MR-1-Build396 and logged as admin
Thanks,
James