Ju
ne
20
18
228 Legrand PDU User Guide
To return to the scripts list:
Click "Lua Scripts" on the top of the page.
Or click "Lua Scripts" in the
Menu
(on page 84).
Checking Lua Scripts States
Choose Device Settings > Lua Scripts to show the scripts list, which indicates the current state and settings
of each script.
State:
Four script states are available.
State
Description
New
The script is never executed since the device boot.
Running
The script is currently being executed.
Terminated
The script was once executed, but stops now.
Restarting
The script will be executed. Only the scripts with the
"Restart" column set to "yes" will show this state.
Autostart:
This column indicates whether the checkbox labeled "Start automatically at system boot" is enabled. See
Writing or Loading a Lua Script
(on page 225).
Restart:
This column indicates whether the checkbox labeled "Restart after termination" is enabled. See
Writing or
Loading a Lua Script
(on page 225).
Modifying or Deleting a Script
You can edit an existing script's codes or even replace it with a new script. Or you can simply remove a
unnecessary script from the Legrand PDU.
To modify or replace a script:
1. Choose Device Settings > Lua Scripts.
2. Click the desired one in the scripts list.
3. Click
> Edit Script.
4. Make changes to the information shown, except for the script's name, which cannot be revised.