Regularly updating configuration and firmware

This scenario describes how to use the CLI to configure the device to update the firmware and/or configuration at a specific time. The firmware and configuration are downloaded from an external server (see File download from a TFTP or HTTP(S) server) using the ‘LoadFirmware’ and ‘LoadConfig’ commands in combination with fixed file names. The scheduling is organized with cron jobs.

  1. Specify the URL that the 'LoadFirmware' command uses to source the upload if no other parameters are available. For example, to upload the firmware from an HTTP server, the command would resemble the following:
    set /Setup/Autoload/Network/Firmware/URL http://www.mycompany.de/firmware/LCOS.upx
  2. Set the conditions for loading the firmware such that only firmware that is newer than that in the device is loaded:
    set /Setup/Autoload/Network/Firmware/Condition if-newer 
  3. Specify the path that the 'LoadConfig' command uses to source the upload if no other parameters are available. For example, to upload the configuration from an HTTP server, the command would look similar to the following:
    set /Setup/Autoload/Network/Firmware/URL http://www.mycompany.de/configuration/LCOS.lcf 
  4. Set the conditions for loading the configuration such that only a configuration that is different from that in the device is loaded:
    set /Setup/Autoload/Network/Config/Condition if-different
  5. Create a cron job that regularly runs the command 'LoadFirmware' at 23:55h:
    cd /Setup/Config/Cron-Tabelle
    set 1 * * * 55 23 * * * LoadFirmware
  6. Create a cron job that regularly runs the command 'LoadConfig' at 23:59h:
    set 2 * * * 59 23 * * * LoadConfig

That's it! The firmware and configuration will now be updated automatically.

Note: The sequence (first the firmware, then the configuration) ensures that the configuration also contains any menu items that first appeared in the new firmware.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo