#author("2018-01-10T11:26:09+09:00","default:yakumo_murakami","yakumo_murakami")
[[FrontPage]]

lxc-lsがあって、lxc list とか使えない環境でノード情報をしるには?

* ノード一覧 [#e1b010a3]

 sudo lxc-ls

* 動いているノード一覧 [#v13350fe]

 sudo lxc-ls --running 

* ノードの情報(IP含む) [#fe105dc0]

 hachikun@nuc02:~$ sudo lxc-info -n isetta6

 Name:           isetta6
 State:          RUNNING
 PID:            32099
 IP:             192.168.122.35
 CPU use:        0.10 seconds
 BlkIO use:      1.73 MiB
 Link:           vethKTL97V
  TX bytes:      152.06 MiB
  RX bytes:      989.20 MiB
  Total bytes:   1.11 GiB

 hachikun@nuc02:~$ sudo lxc-info -n isetta10

 Name:           isetta10
 State:          RUNNING
 PID:            26241
 IP:             192.168.122.6
 CPU use:        519.91 seconds
 BlkIO use:      8.66 MiB
 Link:           vethNKGTY2
  TX bytes:      12.90 GiB
  RX bytes:      40.17 GiB
  Total bytes:   53.08 GiB

 hachikun@nuc02:~$ sudo lxc-ls

 crawl20160802  diary02        isetta5        lovecraft2     rubytest1      testg1         
 utest1604
 crawlone       gameserver     isetta6        netscan        stretch01      
 userver1604    wheezy1
 dejma          isetta10       isetta7        news20160805   stretch02      utest01
 diary01        isetta4        jnethack9      nike           test1          utest02

 hachikun@nuc02:~$ sudo lxc-info -n jnethack9

 Name:           jnethack9
 State:          RUNNING
 PID:            1957
 IP:             192.168.1.44
 IP:             2408:210:84:5100:ac6c:28ff:fe16:8f28
 CPU use:        0.12 seconds
 BlkIO use:      10.41 MiB

ふむ。

あ。止まってる子はこう出ますよ。

 hachikun@nuc02:~$ sudo lxc-info -n utest02

 Name:           utest02
 State:          STOPPED

 hachikun@nuc02:~$

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS