Using the CLI
MEF Edge allows users to manually import the upgrade software package to an edge device for offline upgrade. The upgrade procedure is as follows.
Procedure
- Log in to the background environment as the root user.
- Upload the obtained MEF Edge software package to any path.
The owner of the path must be root, the owner group and other users cannot write the path, and the path does not contain soft links.
- Go to the installation directory. The default installation path is /usr/local/mindx.
cd MEFEdge_installation_path/MEFEdge/software/
- Upgrade MEF Edge.
If you upgrade MEF Edge through the CLI, you can upgrade it by uploading decompressed files.
- Upload the files after the decompression of the MEF Edge software package.
./run.sh upgrade -file=MEFEdge_upgrade_package tar.gz -cms=Digital_signature_certificate -crl =CRL [-delay= true]
- If MEF Edge is upgraded with a delay (delay is set to true), the upgrade takes effect after the following command is executed:
./run.sh effect
If the following information is displayed, the upgrade is successful.Execute [upgrade] command success!
Table 1 upgrade parameters Parameter
Description
-file
Path for uploading the tar.gz upgrade package of MEF Edge. The software package name must be specified, and only an absolute path is supported.
-cms
Digital signature certificate file of the MEF Edge tar.gz package. The file name must be specified, and only an absolute path is supported.
-crl
CRL file of the MEF Edge tar.gz package. The file name must be specified, and only an absolute path is supported.
-delay
Optional. Specifies whether to delay the upgrade when MEF Edge is upgraded using the tar.gz package. The value can be true or false (default). The value true indicates that the upgrade takes effect after the ./run.sh effect command is executed.
- Upload the files after the decompression of the MEF Edge software package.
- Upgrade logs are stored in /Log path/MEFEdge_log/edge_installer, where edge_installer_run.log is the run log and edge_installer_operate.log is the operation log.
- During the upgrade, the system automatically verifies and decompresses the software package. The decompression path is /home/data/mefedge/unpack/edge_installer.
- If MEF Edge is running, the system automatically restarts MEF Edge after the upgrade is successful. In this case, the interconnection between the MEF Edge and MEF Center is interrupted.
- After the upgrade is successful, you can run other run.sh commands as required. In this case, run cd MEFEdge installation path/MEFEdge/software again to access the software installation path and then perform operations.