Unix Shell Command for Node Status

Dear Networks Players,
Is there any unix shell command for displaying node status? The “uns status” command displays the following information.

{
  "height": 3411642,
  "network": "livenet",
  "totalTokenSupply": 22741982,
  "tokenSymbol": "UNS",
  "NFTs": [
    {
      "nftName": "UNIK",
      "individual": "6947",
      "organization": "44",
      "network": "6"
    }
  ],
  "activeDelegates": 23,
  "lastBlockUrl": "https://explorer.uns.network/block/3411642"
}

I am trying to find a command for checking the local node status. Thank you for your help :slight_smile:

No such command exists … yet :slight_smile:

How to check the state of your node?

You can try the UNS crawler:

Then you can use it to get the state of the whole UNS.network through your node:

npm run start http://<public_ip_of_uns_node>:4001

You’ll get errors if your node is not running, or the list of IP addresses will be empty.

If it succeeds, you will get something like that:

... discovering network peers
... scanning network
Error when calling p2p.peer.getStatus on 10.69.20.81: BadConnectionError: Event 'p2p.peer.getStatus' was aborted due to a bad connection
Error when calling p2p.peer.getStatus on 172.20.0.1: BadConnectionError: Event 'p2p.peer.getStatus' was aborted due to a bad connection
Error when calling p2p.peer.getStatus on 172.19.0.1: BadConnectionError: Event 'p2p.peer.getStatus' was aborted due to a bad connection
... disconnecting from all peers
===========================================
All nodes: 32
Nodes online: 29
Nodes offline: 3

Height and block stats:
  3429264 with 29 nodes. Block hashes:
    - 5b11dd82765b44e6ac2865f0c07d1ef9060a2807370de4b5de9ef8f687efe23d (29 nodes - ["135.181.193.77","151.80.37.145","159.8.73.73","167.172.62.245","178.233.241.140","212.47.247.38","212.47.251.108","212.47.252.15","212.47.252.24","213.136.91.13","35.228.166.101","35.233.95.180","40.89.177.64","46.226.107.88","51.15.141.36","51.15.209.236","51.15.231.136","51.158.102.224","51.158.115.177","51.158.121.113","51.158.124.57","51.158.99.6","51.68.199.89","62.171.131.209","82.64.214.110","91.151.70.122","91.151.70.59","95.111.229.243","95.217.166.71"])

Version stats:
  - 5.5.2 on 28 nodes - ["135.181.193.77","151.80.37.145","159.8.73.73","167.172.62.245","178.233.241.140","212.47.247.38","212.47.251.108","212.47.252.15","212.47.252.24","213.136.91.13","35.228.166.101","40.89.177.64","46.226.107.88","51.15.141.36","51.15.209.236","51.15.231.136","51.158.102.224","51.158.115.177","51.158.121.113","51.158.124.57","51.158.99.6","51.68.199.89","62.171.131.209","82.64.214.110","91.151.70.122","91.151.70.59","95.111.229.243","95.217.166.71"]
  - 5.5.1 on 1 nodes - ["35.233.95.180"]

Delay
  Avg: 192.75ms
  Min: 5ms
  Max: 614ms
32 IPs:
  ["10.69.20.81","135.181.193.77","151.80.37.145","159.8.73.73","167.172.62.245","172.19.0.1","172.20.0.1","178.233.241.140","212.47.247.38","212.47.251.108","212.47.252.15","212.47.252.24","213.136.91.13","35.228.166.101","35.233.95.180","40.89.177.64","46.226.107.88","51.15.141.36","51.15.209.236","51.15.231.136","51.158.102.224","51.158.115.177","51.158.121.113","51.158.124.57","51.158.99.6","51.68.199.89","62.171.131.209","82.64.214.110","91.151.70.122","91.151.70.59","95.111.229.243","95.217.166.71"]

So you can “grep” your IP address in the list to check if your node is synchronized with the UNS.network.

If you want, we can help you to contribute to the UNS CLI to add a dedicated command to check the local state of a UNS Node :slight_smile:

1 Like

Thank you very much. Your message is very good starting point for me :+1:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.