LoginSignup
0
0

More than 5 years have passed since last update.

手っ取り早くetcdの中を見る方法

Posted at

手作業

etcdctllsgetを繰り返す

lsでディレクトリの中身を見る

$ etcdctl ls -p
/hoge/
$ etcdctl ls -p /hoge
/hoge/fuga/
/hoge/piyo

getで中身を見る

$ etcdctl get /hoge/piyo
test

etcddumperを使う

手作業だと大変なのでツールを使います

インストール

Installation

You can install etcddump from sources by cloning this repository and run

$ sudo python setup.py install

Alternatively you may use pip:

$ sudo pip install etcddump

pipが使える

ダンプを取る

JSON形式で出力されるのでjqにパイプします

$ etcdumper dump http://localhost:4001 | jq .
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0