Using Perl Script to Control Power On Off and Reboot Switching

In product development applications, it’s often useful to be able to control power on-off switching using a script such as Perl. In a lab environment, the ability to initiate power switching and reboot functions is a critical element in repetitive power reboot regression testing, and is generally used to detect hardware and software problems before a product is actually released to market.

When power On, Off, reboot switching is controlled by Perl script, this allows test engineers to ensure that the device being tested is continually subjected to power switching and reboot cycles at regular intervals, and allows the test to run without constant human supervision. In most cases, power on off regression test applications involve connecting the test device to a Perl compatible switched PDU, and then directing Perl script commands to control power switching. In order to capture any error messages or status reports generated when the test device recovers from each reboot cycle, the test device is also connected to a data collection device. This sort of testing can run for several days, weeks or months depending on the nature of the product being tested. Once the test is complete, product engineers can then revue the data that was captured by the data collection device in order to detect product abnormalities and potential weaknesses.

Obviously, the most important factor in this type of test application is the presence of a switched PDU that can respond to Perl script commands. Although not all switched PDU products will support Perl script, advanced PDU products such as WTI’s VMR series Outlet Metered PDUs can easily be driven by Perl script and can also provide other advantages in regression test applications. In addition to providing a means to control power switching using Perl script, the VMR also includes sophisticated monitoring and alarm features to help engineers to better track test conditions, plus powerful authentication and security features to ensure that access to PDU command functions is limited to authorized personnel.

Tags: , , , ,

Comments are closed.