Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NOTE: Environmental variables can be added to ~/.bashrc file to it will be set automatically at startup.


Run commands from How to use Open Horizon on both HUB and Agent to check configuration. Sample output is as follows.

Code Block
titleHUB hzn version
ubuntu@ubun2:~$ hzn version
Horizon CLI version: 2.29.0-515
Horizon Agent version: 2.29.0-515
ubuntu@ubun2:~$


Code Block
titleHUB hzn node list
ubuntu@ubun2:~$ hzn node list
{
  "id": "node1",
  "organization": "myorg",
  "pattern": "",
  "name": "node1",
  "nodeType": "device",
  "token_last_valid_time": "2021-07-29 23:00:54 +0000 UTC",
  "token_valid": true,
  "ha": false,
  "configstate": {
    "state": "configured",
    "last_update_time": "2021-07-29 23:00:54 +0000 UTC"
  },
  "configuration": {
    "exchange_api": "http://127.0.0.1:3090/v1/",
    "exchange_version": "2.78.0",
    "required_minimum_exchange_version": "2.44.0",
    "preferred_exchange_version": "2.76.0",
    "mms_api": "http://127.0.0.1:9443",
    "architecture": "amd64",
    "horizon_version": "2.29.0-515"
  }
}
ubuntu@ubun2:~$


Code Block
titleHUB hzn agreement list
ubuntu@ubun2:~$ hzn agreement list
[
  {
    "name": "Policy for myorg/node1 merged with myorg/policy-ibm.helloworld_1.0.0",
    "current_agreement_id": "faf1ba0cfc9ec7344d985b23856427c54841d773f75a9ffa8a90db5a1db9ceca",
    "consumer_id": "IBM/agbot",
    "agreement_creation_time": "2021-07-29 23:01:06 +0000 UTC",
    "agreement_accepted_time": "2021-07-29 23:01:09 +0000 UTC",
    "agreement_finalized_time": "2021-07-29 23:01:22 +0000 UTC",
    "agreement_execution_start_time": "2021-07-29 23:01:12 +0000 UTC",
    "agreement_data_received_time": "",
    "agreement_protocol": "Basic",
    "workload_to_run": {
      "url": "ibm.helloworld",
      "org": "IBM",
      "version": "1.0.0",
      "arch": "amd64"
    }
  }
]
ubuntu@ubun2:~$














Check whether exchange container is accessible outside on HUB and agent site

...

Sample output

Code Block
2.78.0

How to use Open Horizon

...




Trying to configure agent

...