mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2024-11-08 21:10:26 +00:00
Update getSelf, getPeers, getSwitchPeers, getSessions
This commit is contained in:
parent
08b5ad5579
commit
0fe0d46e8f
20
admin.md
20
admin.md
@ -10,7 +10,7 @@ The admin socket provides an interface to query and configure Yggdrasil during r
|
||||
|
||||
The `yggdrasilctl` utility provides a human-friendly CLI interface to the Yggdrasil admin socket. It can connect to both local and remote Yggdrasil instances, and accepts the same verbs as below. Every field is specified in the `field=value` format.
|
||||
|
||||
Examples:
|
||||
Examples include:
|
||||
```
|
||||
yggdrasilctl getDHT
|
||||
yggdrasilctl addPeer uri=tcp://a.b.c.d:e
|
||||
@ -19,6 +19,11 @@ yggdrasilctl removePeer port=4
|
||||
yggdrasilctl setTunTap name=auto mtu=65535 tap_mode=false
|
||||
````
|
||||
|
||||
To get a list of supported commands:
|
||||
```
|
||||
yggdrasilctl list
|
||||
```
|
||||
|
||||
To perform an action on a remote Yggdrasil node, specify the `-endpoint` parameter:
|
||||
```
|
||||
yggdrasilctl -endpoint=tcp://10.0.0.1:9001 getPeers
|
||||
@ -109,8 +114,10 @@ Expects no additional request fields.
|
||||
Returns one or more records containing information about active peer sessions. The first record typically refers to the current node.
|
||||
|
||||
For each IPv6 address:
|
||||
- `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the remote node
|
||||
- `bytes_sent` (`uint64`) contains the number of bytes sent to that peer
|
||||
- `bytes_recvd` (`uint64`) contains the number of bytes received from that peer
|
||||
- `endpoint` (`string`) contains the connected IPv4/IPv6 address and port of the peering
|
||||
- `port` (`uint8`) contains the local switch port number for that peer
|
||||
- `uptime` (`uint32`) contains the number of seconds since the peer connection was established
|
||||
|
||||
@ -143,8 +150,12 @@ Expects no additional request fields.
|
||||
Returns zero or more records containing information about switch peers.
|
||||
|
||||
For each port number:
|
||||
- `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the remote node
|
||||
- `bytes_sent` (`uint64`) contains the number of bytes sent to the remote node
|
||||
- `bytes_recvd` (`uint64`) contains the number of bytes received from the remote node
|
||||
- `coords` (`string`) contains the coordinates of the node on the spanning tree
|
||||
- `ip` (`string`) contains the IPv6 address of the node
|
||||
- `endpoint` (`string`) contains the connected IPv4/IPv6 address and port of the peering
|
||||
- `ip` (`string`) contains the IPv6 address of the remote node
|
||||
|
||||
#### `getSelf`
|
||||
|
||||
@ -153,7 +164,11 @@ Expects no additional request fields.
|
||||
Returns exactly one record containing information about the current Yggdrasil node.
|
||||
|
||||
For the current IPv6 address:
|
||||
- `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the current node
|
||||
- `build_name` (`string`) contains the build name, if available (e.g. `yggdrasil`, `yggdrasil-develop`)
|
||||
- `build_version` (`string`) contains the build version, if available (e.g. `0.3.0`, `0.2.7-0091`)
|
||||
- `coords` (`string`) contains the coordinates of the node on the spanning tree
|
||||
- `subnet` (`string`) contains the routed IPv6 subnet for this host
|
||||
|
||||
#### `getSessions`
|
||||
|
||||
@ -162,6 +177,7 @@ Expects no additional request fields.
|
||||
Returns zero or more records containing information about open sessions between the current Yggdrasil node and other nodes. Open sessions indicate that traffic has been exchanged with the remote node recently.
|
||||
|
||||
For each IPv6 address:
|
||||
- `box_pub_key` (`string`) contains the `EncryptionPublicKey` of the remote node
|
||||
- `bytes_sent` (`uint64`) contains the number of bytes sent across that session
|
||||
- `bytes_recvd` (`uint64`) contains the number of bytes received across that session
|
||||
- `coords` (`string`) contains the coordinates of the remote node on the spanning tree
|
||||
|
Loading…
Reference in New Issue
Block a user