Description | This article describes how to use the FortiGate to wake a PC from sleep using a script at a specified interval. |
Scope | FortiOS. |
Solution |
It is possible to wake a PC from sleep by using the FortiGate's built in Wake On LAN command alongside an automation stitch.
Make a new trigger and specify the time and date to wake the PC. In the screenshot, it will trigger daily at 7AM.
Navigate to the 'Action' tab, create a new action, then select 'CLI Script' near the bottom.
Fill out the name, and for the script contents, use the following command (change the details as necessary):
execute wake-on-lan <interface_or_port> <host_MAC_address> <protocol> <port> <IP_address> <password>
Navigate to the 'Stitch' tab, create a new stitch, then select the Trigger and Action that was just made.
It is possible to see that the PC specified in that command will have a wake-on-lan packet sent to it every day at 7AM. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.