mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2025-06-26 19:59:25 +00:00
Update admin.md
This commit is contained in:
6
admin.md
6
admin.md
@ -4,12 +4,14 @@ The admin socket provides an interface to query and configure Yggdrasil during r
|
|||||||
|
|
||||||
## Control Utility
|
## Control Utility
|
||||||
|
|
||||||
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. Each field is specified in the `field=value` format.
|
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:
|
||||||
```
|
```
|
||||||
yggdrasilctl getDHT
|
yggdrasilctl getDHT
|
||||||
yggdrasilctl addPeer uri=tcp://a.b.c.d:e
|
yggdrasilctl addPeer uri=tcp://a.b.c.d:e
|
||||||
|
yggdrasilctl getPeers
|
||||||
|
yggdrasilctl removePeer port=4
|
||||||
yggdrasilctl setTunTap name=auto mtu=65535 tap_mode=false
|
yggdrasilctl setTunTap name=auto mtu=65535 tap_mode=false
|
||||||
````
|
````
|
||||||
|
|
||||||
@ -121,7 +123,7 @@ Returns:
|
|||||||
#### `removePeer`
|
#### `removePeer`
|
||||||
|
|
||||||
Expects:
|
Expects:
|
||||||
- `port` (`uint8`) for the port of the peer to remove
|
- `port` (`uint8`) for the port of the peer to remove, this can be looked up using `getPeers` or `getSwitchPorts`
|
||||||
|
|
||||||
Removes an existing peer.
|
Removes an existing peer.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user