mirror of
https://github.com/cwinfo/yggdrasil-network.github.io.git
synced 2025-02-28 21:01:33 +00:00
Update admin.md
This commit is contained in:
parent
1819675b41
commit
1e1602fc04
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
|
||||
|
||||
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:
|
||||
```
|
||||
yggdrasilctl getDHT
|
||||
yggdrasilctl addPeer uri=tcp://a.b.c.d:e
|
||||
yggdrasilctl getPeers
|
||||
yggdrasilctl removePeer port=4
|
||||
yggdrasilctl setTunTap name=auto mtu=65535 tap_mode=false
|
||||
````
|
||||
|
||||
@ -121,7 +123,7 @@ Returns:
|
||||
#### `removePeer`
|
||||
|
||||
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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user