The commands LoadFirmware, LoadConfig, LoadScript and LoadFile

Inserted or changed with LCOS 8.50

Various applications, such as loading configurations, firmware versions, scripts, and verifying server identity with certificates, require files to be stored to a device. You can to upload these files to a device with LANconfig or WEBconfig. Alternatively, you can use Telnet or SSH to issue a command from the command line to download the files directly from a server (TFTP, HTTP or HTTPS) and into the device. This process simplifies device administration in larger installations that rely on regular updates to the firmware and/or configurations.

The following commands are used to upload different file types to the device:

The following descriptions use 'LoadCommand' to describe the upload commands in general.

The upload commands can use the protocols TFTP, HTTP and HTTPS to upload the selected file. A TFTP server is identical to an FTP server in terms of functionality, but uses a different protocol for data transmission. When using an HTTPS server, a certificate used to check the identity of the server can be stored on the device.

Anmerkung: The LoadFile command in LCOS version 8.50 supports the protocols HTTP and HTTPS only.

The load commands are invoked from the command line interface with the following syntax:

LoadCommand <parameters>

The parameters are used to control the behavior of the commands. The parameters can be used in any combination. The only requirement is for a URL to be specified.

Values for condition, URL, or minimum version entered at the command line overwrite (once only) the values set under /Setup/Autoload/Network. Conversely, the values defined in the setup act to supplement the command-line commands if no parameters are entered manually.

General parameters for the load commands:

If the parameters <URL> or -s and -f are not specified, the device executes the commands LoadFirmware, LoadConfig or LoadScript with the default values for the URL as defined under /Setup/Autoload/:

Use these default values if the latest configurations, scripts and firmware versions are always stored under the same name in the same location. If this is the case, the commands LoadConfig, LoadFirmware and LoadScript can be used very easily to load the relevant files automatically.

The following parameters are of particular importance for automatic uploading:

-Cn: This parameter checks if the file referenced by the LoadFirmware command is newer than the firmware on the device.

Anmerkung: The default setting for the conditions under /Setup/Autoload/Network are "Unconditionally". In the default setting, no version checking is carried out when the commands LoadFirmware and LoadConfig upload firmware, or when LoadScript executes a script file.
Anmerkung: The parameter -u always has priority over other parameters entered in a command.

When transferring files from an HTTPS server to a client device, the network components check the identity of the remote site by using certificates. For the automatic loading from HTTPS servers, additional parameters are available for downloading and subsequently checking the certificates:

Use one of the two following notations to specify a file in the file system of the device:

In file names that include the path, you can use the following general variables:

Anmerkung: You can use these variables in the load commands, but you cannot change the values for the variables.

In addition to these general variables, you can also use the following environment variables that relate to the device for more flexibility when executing the load commands. All predefined environment variables begin with two underscores: When entering commands on the command line, the variables are preceded by a dollar sign.

Anmerkung: If you have already used a name from the environment variables as a user-defined variable in a section of the configuration, then both the configuration and the commands on the command line work primarily with the values of the user-defined variables.

Use the following commands in the CLI to display or modify the environment variables:

Examples of load commands: