Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9256431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:56:23+00:00 2026-06-18T11:56:23+00:00

I have four web power switches with eight remotely controllable power outlets each, for

  • 0

I have four web power switches with eight remotely controllable power outlets each, for a total of 32 power outlets. I have a device under test connected to each outlet. These devices under test are networked and have SSH. They’re designed to boot in under two minutes, but they occasionally take up to ten minutes to boot, due to being prototypes in development. They’re also prone to randomly crashing, freezing, or otherwise becoming unresponsive.

I’m looking for a reliable, efficient, automated method of mapping devices to power outlets. My current method is reliable and automated, but it’s pretty slow:

turn off all outlets
for each outlet:
    turn outlet on
    wait ten minutes
    try to connect to all devices
    store all responsive devices in a list
    turn the outlet off
    try to connect to the devices in the responsive list
    if any are no longer responsive, map them to this outlet
turn on all outlets

As you can calculate, this takes about ten minutes per outlet, and 10 minutes x 32 is 320 minutes, or over five hours. I feel like there has to be a better way, but I’ve been unable to come up with anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:56:24+00:00Added an answer on June 18, 2026 at 11:56 am

    Note:

    • this is an optimistic approach, the better your devices work, the faster and better it will work
    • it’s using the fact (as you state I have a device under test connected to each outlet.) that there is a 1:1 mapping of outlet vs device

    This sequence essentially reverses yours because that way you just have to wait for 10 minutes (max) once – per cycle, see below.

    turn on all outlets
    wait for all devices to become active for up to ten minutes
       (but interrupt waiting once you see a number of devices corresponding 
        to the number of outlets turned on)
    store responsive devices
    for each outlet:
        turn outlet off
        try to connect to all devices remaining on the responsive list
        if any are no longer responsive, map them to this outlet
    

    Quite probably you’ll end up with a list of devices and outlets that’s not mapped yet, so you can repeat this cycle with just the unmapped outlets until there are no outlets are left or until you run out of time.

    So, in the very best case (all devices boot up correctly in the normal time) your test will be over in a bit over 2 minutes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that synchronizes with a central database four times per
I have a multi module web project. Four modules of the project are packaged
Preamble To build dynamic web-sites, we have to master at least four languages: HTML
On my registration form I have four inputs: username password email address web address
I have two web pages: one consists of four asp.net text boxes and one
I have a web-app that has a master mysql db and four slave dbs.
I have checked out the cookbook web site of cakephp that there are four
I have four inputs in my web page. The requirement is when the user
I have a presentation web farm with four load-balanced servers. I have one web
I have a web user control which call some methods of an interface. Four

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.