タグ

parallelに関するhibomaのブックマーク (3)

  • GNU Parallel いいかもね

    GNU Parallelがすごすぎて生きるのがつらいを見て使ってみました。 そもそも複数のサーバのaccess_logをtail -fで一括で見たかったからです。 GNU Parallelからダウンロードして % ./configure % make % make install でインストールは終了。簡単! Perlで書かれてるんでコンパイルとか必要ないっす。 インストールしたら目的のサーバ群に対して tail -f /path/to/access_log を発行するだけ。 % parallel -u ssh {} 'tail -f /path/to/access_log' :::: /path/to/server_list.txt こうするとserver_list.txtに列挙されてるサーバに対してtail -f /path/to/access_logが実行されます。 -u っていうオ

    hiboma
    hiboma 2011/05/17
    tail -f
  • Marionette Collective | Puppet

    Why PuppetPuppet is the industry standard for IT automation. Manage and automate more infrastructure and complex workflows in a simple, yet powerful way.

    Marionette Collective | Puppet
  • GNU Parallelがすごすぎて生きるのがつらい

    皆さん今日もたくさんのサーバを相手にされていることかと思いますが、いくつかのサーバにアクセスして 1 秒間の統計情報(例えばvmstat 1 2)を集めてパッと表示したい時ってどうやってますかね?shell script を学びはじめたばっかりの僕はこんな感じで書いてました。 $ for i in host1 host2 host3; do ssh $i "vmstat 1 2 | tail -1"; done 0 0 0 329004 210836 14275360 0 0 0 2424 1410 1828 0 0 100 0 0 0 0 0 3716112 587704 25921684 0 0 0 488 1643 2026 0 0 100 0 0 1 0 0 555440 265560 14015548 0 0 0 4204 1534 2392 1 0 99 0 0 vmstatと

    GNU Parallelがすごすぎて生きるのがつらい
  • 1