Go to main content

Oracle® Rack Universal Power Distribution Unit User's Guide

Exit Print View

Updated: May 2019
 
 

Automatically Starting or Stopping a Lua Script

If you created or loaded a Lua script file into the HPDU, you can have that script automatically run or stop in response to a specific event.

  1. Select Device Settings → Event Rules → + New Action.
  2. Select Start/stop Lua script from the Action list.
  3. In the Operation field, select Start Script or Stop Script.
  4. In the Script field, select the script that you want it to be started or stopped when an event occurs.

    Note -  If you did not create or load a script into the HPDU, a script does not appear in the Script list.
  5. To apply different arguments other than the default, perform these steps.
    1. Click + Add argument
    2. Type the key and value.
    3. If you need to enter additional arguments, repeat Steps 6a-6b.

      Note -  The new arguments override the Lua script default arguments.
  6. To remove an argument, click the - (Minus button) next to the argument.