I know my TrueNAS box isn’t running all the time, so I use scripts to wake it and shut it down when complete. (I just run scrubs manually since it’s not running very often)
As mentioned I use Wake On Lan.
Here is an example from a Windows batch file, the WOL command, and the shutdown command from putty (the text file just contains the shutdown command, shutdown -h now):
Okay, I used the Main server to wake up the backup server with “ipmitool -I lanplus -H (IP addresse) -U *** -P *** chassis power on” under a ‘Cron Job’.
But the shutdown code “chassis power off” just kills the server. What code shod I use for a normal shutdown of the server?