Automatic Firmware Upgrade

Please find below steps to configure in Vega to upgrade the firmware from remote server. 

We can use TFTP, FTP or HTTP/HTTPS any kind of server to communicate and to fetch the firmware.

Autoexec 

Vega has feature called "Auto Execution" aka "Autoexec" which will allows a Vega to automatically upgrade its firmware and configuration on power up and reboot.

Contents of autoexec script file defines the exact operations that the Vega will make. 

Script is downloaded as a file from any of the configured server (e.g tftp, ftp, http or https) and executed.

Autoexec Configuration 

1) Configure Server  -

GUI→LAN/Wan section - specify the file transfer method.

GUI→LAN/Wan section - configure the server (e.g. FTP, TFTP or HTTP/HTTPS) as per your requirement.

 

 

2) Enable "AutoExe" and specify the script - 

GUI→System then Autoexe settings, enable the autoexec. 

GUI→System then Autoexe settings, specify the filename which Vega will fetch to execute the instructions.

 

3) Create "Autoexec" file and place into server - 

We need to put "autoexec" script file to configured remote server which Vega will fetch and execute the instructions as mentioned in file.

Autoexec script file will contains Vega CLI commands which vega will execute.

Example of script - 

upgrade
download enable
download firmware <vega-firmware-name> reboot ifnew exit
get config2.txt save reboot ifdiff 

Above will download the <vega-firmware-name> firmware if its different then existing and then will download "config2.txt" file.

 

Reference  

"Autoexec Script" section in Vega Admin Guide.

Return to Documentation Home I Return to Sangoma Support