Updated on 2024-09-05 GMT+08:00

Checking Network Connectivity

Function

This command is used to check whether a node can communicate with IEF cloud endpoints.

Syntax

edgectl check network [params]

network can be abbreviated as net, that is:

edgectl check net [params]

Parameters

Table 1 Parameter description

Parameter

Mandatory

Shorthand

Description

--edge-hub-url

No

None

Endpoint address of IEF. It is used to check the connectivity between a node and IEF.

--project-id

No

None

Project ID. The default value is fake-project-id.

--node-id

No

None

Node ID. The default value is fake-node-id.

Example

Check the network connectivity of the node.

edgectl check network

The following is an example of the command output:

In the preceding example, the IEF cloud endpoint returns response code 401 because the request does not carry correct node ID, project ID, and node certificate. This is not a network problem, which does not affect the communication between the node and the IEF cloud endpoint.