Help Center/ Intelligent EdgeFabric/ Edgectl User Guide/ Example: Using edgectl to Run Commands
Updated on 2022-02-21 GMT+08:00

Example: Using edgectl to Run Commands

edgectl provides the functions of preliminarily diagnosing edge node faults, migrating nodes, and collecting data in typical scenarios.

Prerequisites

edgectl has been installed. If not, install edgectl by referring to Installing edgectl.

Checking Whether IEF Edge Software Can Be Installed on a Node

The IEF edge software is required for performing IEF functions at the edge.

You can run the following command to check whether your edge node meets the requirements for installing the IEF edge software:

edgectl diagnose installation

Identify the cause of a node fault.

When a user uses the IEF function at the edge, the node may be disconnected from the cloud due to the environment of the edge node.

The following example shows how to check whether the IEF edge software is faulty.

edgectl diagnose node-fault

Collecting Node Data

If a fault that cannot be rectified occurs on a node and needs to be handled by IEF O&M personnel, you can run the following command to collect IEF-related data of the edge node in one-click mode and then send the data to IEF O&M personnel:

edgectl collect -p /tmp/data/