Using Ruby Script to Control a Switched PDU

In repetitive power reboot regression testing, it can often be handy to be able to control a switched PDU using Ruby script. In addition to freeing lab personnel for more pressing duties, control via Ruby script also improves the reliability of power reboot regression test results procedure by ensuring that each reboot cycle is performed according to schedule and that reboots are performed continually, without interruption.

Repetitive power reboot regression testing is often used by product development engineers to detect software bugs and hardware problems in new products before the product is actually released to market. In most power reboot regression tests, the device being tested is connected to a switched PDU, which is then used to subject the test device to a series of power Off-On cycles. In order to capture any error messages or status reports that are generated when the test device recovers from each reboot cycle, the test device is often connected to some sort of data collection device. Data collected during the test procedure can then be analyzed by product development engineers in order to make certain that the device being tested recovers gracefully after a power reboot.

The use of Ruby script to drive this test procedure, decreases human involvement in the test (thereby removing human generated errors) and simplifies running a test that might go on for 24 hours a day for weeks on end. The Ruby script that initiates each power reboot cycle can be issued from a local terminal, connected directly to the switched PDU, or issued remotely via SSH connection. When the power reboot test is controlled from a remote location, it is important to make certain that in addition to supporting Ruby script, the switched PDU used in the application must provide adequate security and authentication features to protect the test from unauthorized access.

When choosing a switched PDU for this type of test application, the most important factor to consider is whether or not the switched PDU can be controlled by Ruby script. Once that determination has been made, it can also be helpful to make certain that the switched PDU includes monitoring and alarm functions that can be used to keep tabs on critical conditions and events at the test site. In applications where the test process is driven by Ruby script issued from a remote terminal, it’s particularly important to choose a switched PDU that allows the operator to monitor conditions at the test site in order to make certain that nothing happens that could interfere with the test or skew results.

Tags: , , ,

Comments are closed.