Hello, I had an idea last week: why shut everything off (in my basement) when the power goes off (and run time goes below X minutes)? My idea: shutdown the big stuff first (two servers) leaving the little stuff (switches, wireless, gateway) running for a while longer. I might get another 30 minutes of internet that way. Let me watch a bit more streaming?. I?m convinced that idea is achievable with a little programming. Mind you, most of my power outages exceed 1 hour. Do you already do something similar? Do you have something you?d like to share please? Thank you -- Dan Langille dan at langille.org
Dan Langille via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> writes:> I had an idea last week: why shut everything off (in my basement) when > the power goes off (and run time goes below X minutes)?Makes sense to me. I would say after 30s, start to shut off the "not important to keep running" stuff. At least for me, once the power is out even 10s, it is almost certainly going to be 30 minutes. I deal with this by having one UPS on a desktop computer and another for a low power router/wifi, more or less.
Hi, You have two options. You can run nut on those servers and modify the scheduling part to shut down servers after desired delay when running on battery. Nut can monitor ups on another server. Other way is just getting some way of shutting down your servers remotely from the computer running the nut. I have implemented a schedule running down my virtual box windows server on the nut running linux server. You can see my configuration from this message: https://alioth-lists.debian.net/pipermail/nut-upsuser/2023-June/013338.html Five minutes after entering battery mode nut schedule shuts the windows server down. Cheers, Kari From: Nut-upsuser <nut-upsuser-bounces+kari.lempiainen=summerday.net at alioth-lists.debian.net> on behalf of Dan Langille via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> Date: Sunday, 16. July 2023 at 17.16 To: nut-upsuser at alioth-lists.debian.net <nut-upsuser at alioth-lists.debian.net> Subject: [Nut-upsuser] Powering off the big stuff first Hello, I had an idea last week: why shut everything off (in my basement) when the power goes off (and run time goes below X minutes)? My idea: shutdown the big stuff first (two servers) leaving the little stuff (switches, wireless, gateway) running for a while longer. I might get another 30 minutes of internet that way. Let me watch a bit more streaming?. I?m convinced that idea is achievable with a little programming. Mind you, most of my power outages exceed 1 hour. Do you already do something similar? Do you have something you?d like to share please? Thank you -- Dan Langille dan at langille.org _______________________________________________ Nut-upsuser mailing list Nut-upsuser at alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230716/0c92be38/attachment-0001.htm>
It makes perfect sense and it is perfectly doable via upssched. https://networkupstools.org/docs/man/upssched.html wolfy On Sun, Jul 16, 2023 at 5:15?PM Dan Langille via Nut-upsuser < nut-upsuser at alioth-lists.debian.net> wrote:> Hello, > > I had an idea last week: why shut everything off (in my basement) when the > power goes off (and run time goes below X minutes)? > > My idea: shutdown the big stuff first (two servers) leaving the little > stuff (switches, wireless, gateway) running for a while longer. I might get > another 30 minutes of internet that way. Let me watch a bit more streaming?. > > I?m convinced that idea is achievable with a little programming. > > Mind you, most of my power outages exceed 1 hour. > > Do you already do something similar? Do you have something you?d like to > share please? > > Thank you > > -- > Dan Langille > dan at langille.org > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230716/ef7f02e5/attachment.htm>
Interesting. Something similar came up in late May. Look for "[Nut-upsuser] Synthesize low batt (LB) fron SNMP UPS which does not support this?? Is there an archive of this list? I an?t find it. I?d been trying to figure out how to do that itself, but then found some code in drivers/dstate.c that looked like it would work, but someone else replied that they?d tried it and it didn?t work. But that was about getting the NUT server to synthesize LB to its clients before the actual UPS did. If you?re running NUT as a client on your server, then yes, as others have noted, upssched on your server is probably the way to go.> On Jul 16, 2023, at 9:00 AM, Dan Langille via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> wrote: > > Hello, > > I had an idea last week: why shut everything off (in my basement) when the power goes off (and run time goes below X minutes)? > > My idea: shutdown the big stuff first (two servers) leaving the little stuff (switches, wireless, gateway) running for a while longer. I might get another 30 minutes of internet that way. Let me watch a bit more streaming?. > > I?m convinced that idea is achievable with a little programming. > > Mind you, most of my power outages exceed 1 hour. > > Do you already do something similar? Do you have something you?d like to share please? > > Thank you > > -- > Dan Langille > dan at langille.org > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230716/2cb36f0c/attachment-0001.htm>