Ruby Script for WTI Switched PDU

Repetitive power reboot regression testing provides product development engineers with a useful tool for detecting software bugs and other flaws in new products. The main drawback to repetitive power reboot testing is that it can involve thousands of reboot cycles and can stretch on for weeks or even months. Obviously, the most logical means to simplify this type of testing is to automate the repetitive reboot test process using a script language such as Ruby. This is actually a relatively simple proposition, providing that your application includes a remote power management solution, such as the VMR-16HD20 series Outlet Metered PDU that can be controlled using Ruby script.

An automated, Ruby script driven solution for repetitive power On-Off testing streamlines the test process by minimizing human involvement in the test, thereby improving both reliability and consistency of test results. In addition to allowing the repetitive reboot test to run more-or-less unsupervised, a Ruby script driven solution ensures that reboot cycles are initiated at regular intervals and that the test will run continuously, without interruption until completion.

As shown in the graphic above, a typical repetitive power reboot test usually involves connecting the test device to a switched PDU such as the VMR, and then connecting a data collection device to a serial console port or setup port on the device under test. Each time that a power On-Off cycle is completed, the data collection device captures any error messages or status reports generated by the device being tested, allowing engineers to review this data in order to make certain that the test device is performing according to design.

As mentioned before, the most important element in a workable script driven power On-Off test application is the use of a switched PDU that can be controlled by Ruby script. Although the VMR-16HD20 was specifically designed for this type of script controlled power switching operation, the VMR also includes other useful features that can provide further benefits to repetitive power reboot test applications.

The VMR-16HD20’s outlet metering capabilities allow test engineers to monitor power consumption by the test device and instantly detect devices that have ceased to draw power as well as devices that are drawing more power than would be anticipated. The VMR can also log power consumption by each switched outlet, and then provide that information via download in XML or ASCII text format. Furthermore, the VMR’s ping response alarm can be used to detect test devices that have locked up or are unable to communicate. The VMR also includes a formidable assortment of security, encryption and authentication capabilities to ensure secure SSH and Web communication with the PDU in situations that require remote communication with test elements.

For more information, please contact the WTI Sales Team.