Configure Edge View via ZEDEDA CLI

This document details the steps involved in configuring Edge View via ZEDEDA CLI.

  • First, you need to run the docker zcli container and connect.
docker run -it zededa/zcli:latest
zcli configure
zcli login
zcli project show
zcli project show <your project>
zcli project show <your project> --edgeview

Note: You should see 'edgeviewAllow': false

  • Create a new JSON file to enable Edgeview.
}
vi enable-edgeview.json
{
   "type": "POLICY_TYPE_EDGEVIEW",
   "edgeviewPolicy": {
       "edgeviewAllow": true
   }
}
zcli project update <your project> --policy-config=edgeview:enable-edgeview.json
zcli project show <your project> --edgeview
  • Enable Edgeview on Edge Node to create a remote session.
zcli edge-node show 
zcli edge-node show <node name> --edgeview
zcli edge-node show <node name>
zcli edge-node start-edgeview <node name>
zcli edge-node show <node name> --edgeview
zcli edge-node show <node name>
  • Download the run script.

The following are some of the example commands you can execute

./run.<node name>.1671135536.edgeview.sh
./run.<node name>.1671135536.edgeview.sh route
./run.<node name>.edgeview.sh top
./run.<node name>.edgeview.sh app
./run.<node name>.1671135536.edgeview.sh tcp/localhost:5901/localhost:5901

You can find a full list of commands here
You can terminate a session with the following command:

zcli edge-node stop-edgeview Zededa-NUC11-MatS
Was this article helpful?
0 out of 0 found this helpful

Articles in this section