Ju
ne
20
18
406 Legrand PDU User Guide
switch_outlets=1,2,3:on;4-9:off;10:on
Turn on all outlets.
switch_outlets=all:on
tls_cert_file
Specify the filename of the wanted TLS server certificate. The filename can contain a single placeholder
${SERIAL} that is replaced with the serial number of the Legrand PDU.
This option should be used with
tls_key_file
listed below.
This option is NOT supported by bulk configuration or backup/restore via DHCP/TFTP.
tls_key_file
Specify the filename of the wanted TLS server key. The filename can contain a single placeholder
${SERIAL} that is replaced with the serial number of the Legrand PDU.
This option should be used with
tls_cert_file
listed above.
This option is NOT supported by bulk configuration or backup/restore via DHCP/TFTP.
execute_lua_script
Specify a Lua script file. For example:
execute_lua_script=my_script.lua
Script output will be recorded to a log file -- <BASENAME_OF_SCRIPT>.<SERIAL_NUMBER>.log. Note
this log file's size is limited on DHCP/TFTP.
A DHCP/TFTP-located script has a timeout of 60 seconds. After that duration the script will be removed.
This feature can be used to manage LuaService, such as upload, start, get output, and so on.
If you unplug the USB drive while the Lua script is still running, the script will be removed.
An exit handler can be used but the execution time is limited to three seconds. Note that this is not
implemented on DHCP/TFTP yet.
config.txt
To perform device configuration using a USB drive, you must:
Copy the device configuration file "config.txt" to the root directory of the USB drive.
Reference the "config.txt" file in the
config
option of the "fwupdate.cfg" file. See
fwupdate.cfg
(on page
404).
The file,
config.txt
, is a text file containing a number of configuration keys and values to configure or update.
This section only introduces the device configuration file in brief, and does not document all configuration
keys, which vary according to the firmware version and your Legrand PDU model.
You can use Legrand's Mass Deployment Utility to create this file by yourself, or contact Legrand to get a
device configuration file specific to your Legrand PDU model and firmware version.
Tip: You can choose to encrypt important data in the "config.txt" file so that people cannot easily recognize it,
such as the SNMP write community string. See
Data Encryption in 'config.txt'
(on page 409).
Regular configuration key syntax:
Each configuration key and value pair is in a single line as shown below:
key=value
Note: Each value in the file must be separated by an equal sign (=), without any surrounding spaces.
Multi-line values are supported by using the
Here Document Syntax
with a user-chosen delimiter.
The following illustration declares a value in two lines. You can replace the delimiter
EOF
with other
delimiter strings.
key<<EOF