Device Activation
Last Updated:2020-08-18
Deployment and Activation
-
Get the installation method
- Click the button in the picture to get the installation method
- You can select online installation (not supported for Darwin system platform at present) or offline installation.
-
Deploy
- For online installation, copy the command in the box and execute it in the system console. After the execution, proceed to step 4.
- For offline installation, copy the downloaded zip installation package to the edge core host, decompress it, and go to step 3.
-
Execute a script
- Execute the setup.sh script in the installation package. baetyl is installed in the system’s /usr/local directory, and it mainly contains bin, etc, and var three directories.
-
Create a file to store fingerprints in the specified directory
- Create a file according to the name of {ID save file} entered during Create a model. Save the device registration ID in the cloud to this file.
- Create this directory under the /usr/local/ directory according to the name of {host directory} entered during Create a model. The full path is /usr/local/{host directory}. Copy {ID save file} here.
-
Activation
- Execute the command
systemctl start baetyl
, the device is automatically activated, and baetyl supports powerboot. - You can view logs related to the master program during the activation process in var/log/baetyl/baetyl.log and activation logs in var/db/baetyl/activation-log/service.log
- Execute the command
-
View the status
- After it is activated successfully, you can see [Activated] in the status of the corresponding registration ID on the model registration details page in the cloud.
- You can search and view the core details on the core list page according to the core name.
Note: The above steps 1 to 5 are also the process to pre-install baetyl.
Example for Operation
-
Create a model/batch number
- Click Create a model/batch.
- Fill in Model/Batch, and select Application platform.
- Click to enter the details page to continue editing.
-
Add a registration record
- In this demo, click Add in baches and Auto generated.
-
.Get the installation method
- Click the button in the picture to get the installation method. Here, online installation is selected.
-
Deploy
- Execute the installation command
-
Create a file to store fingerprints
- Create a file according to the name entered in Host directory and ID save file during the creation process, and write a Registration ID to be activated in the file.
-
Activation
- Start the program systemctl start baetyl, and the device is automatically activated.
- You can view logs related to the master program during the activation process in var/log/baetyl/baetyl.log and activation logs in var/db/baetyl/activation-log/service.log
-
View the status
- After it is activated successfully, you can see [Activated] in the status of the corresponding registration ID on the model registration details page in the cloud.
- You can search and view the core details on the core list page according to the core name.