Remotely (re)starting my system via a smart power switch?

ubuntu at howorth.org.uk ubuntu at howorth.org.uk
Sun Jul 24 12:28:49 UTC 2022


bo.berglund at gmail.com wrote:
> On Tue, 12 Jul 2022 23:50:43 +0200, Bo Berglund
> <bo.berglund at gmail.com> wrote:
> 
> >On Sat, 02 Jul 2022 11:19:06 +0200, Bo Berglund
> ><bo.berglund at gmail.com> wrote:
> >
> >UPDATE:
> >-------
> >  
> >>On Thu, 30 Jun 2022 00:10:06 +0200, Bo Berglund
> >><bo.berglund at gmail.com> wrote:
> >>
> >>Now back from the trip home and I can report that the real problem
> >>was *not* overheating as I suspected (that has happened before).
> >>Instead one of my 8-way NetGear Gigabit switches had given up so I
> >>had to rush out and buy a replacement (TP-Link 8X Gigabit this
> >>time).
> >>
> >>Then the missing computers came on line again...
> >>
> >>But while I was there I checked the WOL setting in the laptop BIOS
> >>and it turns out it is enabled already (but not named WOL of
> >>course). So if an overheat shutdown happens in the future I will
> >>try the WOL trick.
> >>  
> >
> >Today one of my 2 laptops running Ubuntu suddenly shut down (I had a
> >PuTTY session up and PuTTY gave an alarm sound when it lost
> >connection).
> >
> >So now I could test the etherwake command to restart the laptop:
> >
> >IT WORKED!
> >
> >Took a bit longer than a normal reboot before it was on line but
> >after a couple of minutes it was running again and responding to
> >PuTTY!
> >  
> 
> Not a full solution yet!
> 
> 3 days ago the same Ubuntu laptop disappeared from view, probably
> because of the same overtemp shutdown or similar.
> But this time it does not respond to an etherwake call, still
> off-line.
> 
> I will go back home tomorrow so I can check what is wrong with the
> device, this time around....
> 
> I will then probably add a cron job to log the temperature of the CPU
> every minute or so such that I can view it after the laptop has shut
> down. (Logging to a network drive).
> 
> Is there a simple command I can use in the log script to remove lines
> older than say an hour from the log file when I add a new entry?
> Or keep only the last 60 lines or so in the file.

You could set up munin or something similar.




More information about the ubuntu-users mailing list