Documentation: write-out=table for v3 commands

This commit is contained in:
Gyu-Ho Lee 2016-05-17 10:39:23 -07:00
parent 3c8301358c
commit 6a0148e214
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ To interact with the started cluster by using etcdctl:
# use API version 3 # use API version 3
$ export ETCDCTL_API=3 $ export ETCDCTL_API=3
$ etcdctl --endpoints=localhost:12379 member list $ etcdctl --write-out=table --endpoints=localhost:12379 member list
+------------------+---------+--------+------------------------+------------------------+ +------------------+---------+--------+------------------------+------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+---------+--------+------------------------+------------------------+ +------------------+---------+--------+------------------------+------------------------+

View File

@ -66,7 +66,7 @@ $ while [ 1 ]; do dd if=/dev/urandom bs=1024 count=1024 | etcdctl put key || b
... ...
Error: rpc error: code = 8 desc = etcdserver: mvcc: database space exceeded Error: rpc error: code = 8 desc = etcdserver: mvcc: database space exceeded
# confirm quota space is exceeded # confirm quota space is exceeded
$ etcdctl endpoint status $ etcdctl --write-out=table endpoint status
+----------------+------------------+-----------+---------+-----------+-----------+------------+ +----------------+------------------+-----------+---------+-----------+-----------+------------+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX | | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX |
+----------------+------------------+-----------+---------+-----------+-----------+------------+ +----------------+------------------+-----------+---------+-----------+-----------+------------+
@ -105,7 +105,7 @@ A snapshot is taken with `etcdctl`:
```sh ```sh
$ etcdctl snapshot save backup.db $ etcdctl snapshot save backup.db
$ etcdctl snapshot status backup.db $ etcdctl --write-out=table snapshot status backup.db
+----------+----------+------------+------------+ +----------+----------+------------+------------+
| HASH | REVISION | TOTAL KEYS | TOTAL SIZE | | HASH | REVISION | TOTAL KEYS | TOTAL SIZE |
+----------+----------+------------+------------+ +----------+----------+------------+------------+