Technical Tip: How to download VM image using CLI if the FortiSandbox use proxy connection
| Description | This article describes how to download VM image using CLI if the FortiSandbox is using proxy connection. |
| Scope | FortiSandbox v4.4.3 and above. |
| Solution | FortiSandbox is configured to use proxy connection for the VM Image download in FortiGuard page. When download VM image using GUI is successful but it will failed if using the CLI to download VM image.
Execute the command: 'test-network vm_downloadable' to show success.
FSA1> test-network vm_downloadable Testing connection to remote guest VM server ++++++++++++++++++++++++++++++++++++++++
When trying to download the VM image using CLI using the command 'fw-upgrade -v -sfsavm.fortinet.net -thttps -f/test/WIN10O21V1_1.pkg' , the download will be failed as per the below error.
This is because the 'fw-upgrade' command will not use the setting on the System -> FortiGuard -> VM Image Download Proxy Settings.
To download the VM image from the CLI, use the CLI syntax for proxy.
Example for the command as per below:
fw-upgrade -v -sfsavm.fortinet.net -thttps -f/test/WIN10O21V1_1.pkg -xthttp -xs192.184.30.210 -xp8080 -xuadmin -xwpassword |


