Inspecting Your Ratio1 Edge Node: Essential docker exec Commands

For Node Operators

Education

Inspecting Your Ratio1 Edge Node: Essential docker exec Commands
Inspecting Your Ratio1 Edge Node: Essential docker exec Commands

In the decentralized world of Ratio1, understanding and managing your Edge Node is crucial. Whether you're a developer, researcher, or enthusiast, having the right tools to inspect your node ensures optimal performance and integration within the Ratio1 network. This guide delves into the essential docker exec commands that provide insights into your node's status and performance.​

Prerequisites

Before diving into the commands, ensure that you have a running Ratio1 Edge Node on your machine. There's no need for additional installations or configurations. The Edge Node operates within a Docker container, and all interactions can be performed using Docker commands. If you haven't set up your Edge Node yet, refer to our Getting Started Guide for detailed instructions.​

Categorized Command Reference

Below is a comprehensive table detailing each available docker exec command for the Ratio1 Edge Node, including their descriptions and parameters:​

Category

Command

Description

Parameter

Information Retrieval

get_node_info

Retrieves the node's address, alias, Ethereum address, and version information.

None


get_node_history

Provides performance metrics such as CPU load, memory usage, and GPU statistics.

None


get_startup_config

Displays the initial configuration parameters of the node.

None


get_config_app

Retrieves the current application configuration of the node.

None


get_allowed

Lists all addresses currently allowed to send tasks to the node.

None


get_e2_pem_file

Outputs the node's E2 PEM file content.

None

Configuration Management

add_allowed

Adds a specific address to the node's whitelist, allowing it to send computation tasks.

<address> (required), <alias> (optional)


update_allowed_batch

Updates the whitelist with a batch of addresses.

<addresses> (required)


change_alias

Updates the node's alias (friendly name). Requires a container restart to take effect.

<new_alias> (required)

Reset and Maintenance

reset_address

Generates a new address for the node.

None


reset_node_keys

Resets the node's cryptographic keys and generates a new address. Requires a container restart.

None


reset_supervisor

Resets the node's supervisor process.

None


🛠️ Example Usage

Here are some practical examples of how to use these commands:​

Retrieve Node Information:

docker exec r1node get_node_info

You will get the following output:

{
  "address": "0xai_AnwwPTsZj5St9klv2C-AGUXQxxxxxxxxxxxxxxx",
  "alias": "smart-node",
  "eth_address": "0x9c007B6921241cD3a0eBb0eAxxxxxxxxxxxxxxx",
  "version_long": "v2.8.256 | core v7.7.64 | SDK 3.3.56",
  "version_short": "v2.8.256",
  "info": {
    "whitelist": [
      "0xai_A74xZKZJa4LekjvJ6oJz29qxOxxxxxxxxxxxxxxx",
      "0xai_AuVgpMpPrkkHFmASCO_FE41aqxxxxxxxxxxxxxxx",
      "0xai_AhIQz47-2dpbncDTODXcP7_cBxxxxxxxxxxxxxxx",
      "0xai_A9GWvmq3m-cyEMUyOaTTeyMSTxxxxxxxxxxxxxxx",
      "0xai_AyFBvrwxWhtqosqkJJLa3xylGxxxxxxxxxxxxxxx",
      "0xai_AgnygSlY8BwnmaCj6mItg36JHxxxxxxxxxxxxxxx",
      "0xai_A1ToOssJsbIKml9WSXsivGxl9wxxxxxxxxxxxxxxx",
      "0xai_Amfnbt3N-qg2-qGtywZIPQBTVxxxxxxxxxxxxxxx",
      "0xai_A4Kj_ii5ZMdRdYYZOi1A_EYHfxxxxxxxxxxxxxxx",
      "0xai_ApLV_6TFO7uJ5m9nUCy_tRxPCxxxxxxxxxxxxxxx",
      "0xai_AsQkS6VdjJb7EY2vo6Vhs73uzxxxxxxxxxxxxxxx",
      "0xai_AleLPKqUHV-iPc-76-rUvDkRWxxxxxxxxxxxxxxx",
      "0xai_A-Bn9grkqH1GUMTZUqHNzpX5DAxxxxxxxxxxxxxxx",
      "0xai_A-TEw0kO3USyFBjyCaHP99trg3xxxxxxxxxxxxxxx",
      "0xai_AwTD0PEqh_dmW3vH_h8N6CyNwxxxxxxxxxxxxxxx",
      "0xai_AjcIThkOqrPlp35-S8czHUOV-yxxxxxxxxxxxxxxx",
      "0xai_AjhINpfmWLsCFdqn3qy8OT2Mlfxxxxxxxxxxxxxxx",
      "0xai_AlOT0PB7v70x8A-hS4JtH57DGxxxxxxxxxxxxxxx",
      "0xai_A5crKSUwjFytmqJcYflaUz_s3Ixxxxxxxxxxxxxxx",
      "0xai_A336zD75-fW5OYaFJFCV8ACRvaxxxxxxxxxxxxxxx"
    ],
    "current_epoch": 1461,
    "current_epoch_avail": 0.0096,
    "last_epochs": {
      "1456": 0,
      "1457": 0,
      "1458": 0,
      "1459": 0,
      "1460": 0
    },
    "evm_network": "devnet",
    "r1fs_id": "12D3KooWPGLSsnXdwPhtZvEpMcATpmqU6FB3Yxxxxxxxxxxxxxxx",
    "r1fs_online": true,
    "comm_last_active": "2025-04-14 13:17:11"
  }
}

Add an Allowed Address:

docker exec r1node add_allowed 0xai_AthDPWc_k3BKJLLYTQMw--Rjhe3B6_7w76jlRpT6nDeX some-node-alias

Change Node Alias:

docker exec r1node change_alias new-alias
docker restart r1node

And running get_node_info afterwards returns us the new name.


Petrica Butusina
Petrica Butusina

Petrica Butusina

May 20, 2025

The Ultimate AI OS Powered by Blockchain Technology

©Ratio1 2025. All rights reserved.

The Ultimate AI OS Powered by Blockchain Technology

©Ratio1 2025. All rights reserved.

The Ultimate AI OS Powered by Blockchain Technology

©Ratio1 2025. All rights reserved.